confirmWeChatPayPayment

fun confirmWeChatPayPayment(confirmPaymentIntentParams: ConfirmPaymentIntentParams, stripeAccountId: String? = this.stripeAccountId, callback: ApiResultCallback<WeChatPayNextAction>)

Deprecated

Use the WeChat Pay module instead.

Confirm a PaymentIntent for WeChat Pay. Extract params from WeChatPayNextAction to pass to WeChat Pay SDK.

Parameters

confirmPaymentIntentParams
stripeAccountId

Optional, the Connect account to associate with this request. By default, will use the Connect account that was used to instantiate the Stripe object, if specified.

callback

a ApiResultCallback to receive the result or error

Possible callback errors: AuthenticationException failure to properly authenticate yourself (check your key) InvalidRequestException your request has invalid parameters APIConnectionException failure to connect to Stripe's API APIException any other type of problem (for instance, a temporary issue with Stripe's servers) InvalidRequestException if the payment intent's next action data is not for WeChat Pay

To avoid interacting with WeChat Pay SDK directly, use WeChatPay module.

See also