createAlipaySingleUseParams
fun createAlipaySingleUseParams(@IntRange(from = 0) amount: Long, currency: String, name: String? = null, email: String? = null, returnUrl: String): SourceParams
Create single-use Alipay Source params.
Return
a SourceParams that can be used to create an Alipay single-use source
Parameters
amount
A positive integer in the smallest currency unit representing the amount to charge the customer (e.g., 1099 for a $10.99 payment).
currency
The currency of the payment. Must be the default currency for your country. Can be aud, cad, eur, gbp, hkd, jpy, nzd, sgd, or usd. Users in Denmark, Norway, Sweden, or Switzerland must use eur.
name
The name of the account holder (optional).
email
The email address of the account holder (optional).
returnUrl
The URL the customer should be redirected to after the authorization process.