@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.
- package/docs/CheckoutModule.md +1 -4
- package/package.json +1 -1
package/docs/CheckoutModule.md
CHANGED
|
@@ -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(
|
|
40
|
+
.triggerCheckout(responseParams)
|
|
44
41
|
.then(({ result, error }) => {
|
|
45
42
|
if (result) {
|
|
46
43
|
// There is a valid result.
|