@grabjs/superapp-sdk 1.7.10 → 1.7.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -15,7 +15,6 @@ Provides APIs to trigger native checkout flow from web.
15
15
  | Name | Type | Description |
16
16
  | -------------- | ------ | -------------------------------------------------------------------------- |
17
17
  | responseParams | String | The response params that partners get when charge init endpoint is called |
18
- | channel | String | The channel of triggering the transaction. In this case, it is `MiniApp` |
19
18
 
20
19
  **Return type**
21
20
 
@@ -37,10 +36,8 @@ const checkoutModule = new checkoutModule();
37
36
  // Get responseParams from chargeInit endpoint
38
37
  const responseParams = chargeInit() // This is a dummy function
39
38
 
40
- const channel = "MiniApp"
41
-
42
39
  checkoutModule
43
- .triggerCheckout({ responseParams, channel })
40
+ .triggerCheckout(responseParams)
44
41
  .then(({ result, error }) => {
45
42
  if (result) {
46
43
  // There is a valid result.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grabjs/superapp-sdk",
3
- "version": "1.7.10",
3
+ "version": "1.7.12",
4
4
  "description": "SDK for Grab SuperApp WebView.",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {