You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| settlementMethod | string | mixin | 'mixin' or 'mixpay', settle to your Mixin Wallet or MixPay Account |
91
+
| clientId | string | MixPay.newUUID() | UUID of client of the payment |
92
+
| expireSeconds | number | 60 | 60-172800, expiration date of the payment |
93
+
| remark | string | '' | Payees leave a message to payers |
94
+
| onReady | function | null | This event fires when quote assets and payment assets are loaded |
95
+
| onClose | function | null | This event fires when the modal is closed |
96
+
| onPaymentCreate | function | null | This event fires when a payment is created |
97
+
| onPaymentSuccess | function | null | This event fires when a payment is successful |
98
+
| onPaymentFail | function | null | This event fires when a payment is failed |
153
99
154
100
## Instance Methods
155
101
@@ -176,24 +122,28 @@ create a random UUID for `clientId` and `traceId`
176
122
177
123
### getQuoteAssets()
178
124
179
-
Get quote assets support cryptocurrency and fiat currency.
125
+
Get quote assets support cryptocurrency and fiat currency. See the [Quote Assets](https://developers.mixpay.me/docs/api/assets/quote-assets) section in guide.
180
126
181
127
### getPaymentAssets()
182
128
183
-
Get payment assets only support cryptocurrency.
129
+
Get payment assets only support cryptocurrency. See the [Payment Assets](https://developers.mixpay.me/docs/api/assets/payment-assets) section in guide.
184
130
185
131
### getSettlementAssets()
186
132
187
-
Get settlement assets support cryptocurrency and fiat currency.
133
+
Get settlement assets support cryptocurrency and fiat currency. See the [Settlement Assets](https://developers.mixpay.me/docs/api/assets/settlement-assets) section in guide.
188
134
189
135
### createPayment(options)
190
136
191
-
Create a payment
137
+
Create a payment. See the [Accepting Payments](https://developers.mixpay.me/docs/api/payments/accepting-payments) section and the [On-chain Payments](https://developers.mixpay.me/docs/api/payments/onchain-payments) section in guide.
192
138
193
139
### getPaymentDetail(traceId)
194
140
195
-
The details of the payment
141
+
The details of the payment. See the [Payments Results](https://developers.mixpay.me/docs/api/payments/payments-results) section in guide.
196
142
197
143
### getEstPaymentAmount(options)
198
144
199
-
Get the estimated price and the estimated amount of the transaction.
145
+
Get the estimated price and the estimated amount of the transaction. See the [Payments Estimated](https://developers.mixpay.me/docs/api/payments/payments-estimated) section in guide.
0 commit comments