bn.requestPayment
▸ requestPayment(options
): Promise
<PaymentResult
>
Initiates a request for payment via Binance Pay.
example
Parameters
Name | Type |
---|---|
options | PaymentOptions |
Returns
Promise
<PaymentResult
>
Payment result
#
Interface: PaymentOptionsName | Type | Description |
---|---|---|
certSn | string | API identity key issued by Binance payment system |
nonceStr | string | nonceStr for the sign |
merchantId | string | The merchant account id, issued when merchant been created at Binance |
package | string | The value of the prepay_id parameter returned by the unified order placement API |
paySign | string | Signature. For specific signature schemes, see Binance Pay API Documentation |
timeStamp | string | timestamp of the sign |
signType | "MD5" | "HMAC-SHA256" | "RSA" | sign algorithm |
#
Interface: PaymentResultName | Type | Description |
---|---|---|
status | number | 0: pay success; others: pay failed |