STRIPE WE CHAT PAY
stripe.confirmWechatPayPayment(
'{PAYMENT_INTENT_CLIENT_SECRET}',
{
payment_method: {
billing_details: {
name: '{NAME}',
email: '{EMAIL}'
},
wechat_pay: {},
},
}
).then(function({error, paymentIntent}) {
if (error) {
// Inform the customer that there was an error.
} else if (paymentIntent.status === 'succeeded') {
// Inform the customer that the payment was successful
} else if (paymentIntent.status === 'requires_action') {
// Inform the customer that the payment did not go through
}
});