#cz-alipay
1 messages · Page 1 of 1 (latest)
hi, so I wanted to integrate the feature to allow customer pay with alipay
but I am receiving "This payment method (alipay) is not activated for the account specified in on_behalf_of"
I wonder what went wrong
FYI Alipay is "Active" in /settings/payments -> Eligible
Here's my code:
const params: Stripe.PaymentIntentCreateParams = {
amount: orderAmount,
application_fee_amount: applicationFeeAmount,
currency,
customer: customer.id,
payment_method_options: {
card: {
request_three_d_secure: request_three_d_secure || 'automatic',
},
sofort: {
preferred_language: 'en',
},
},
payment_method_types: payment_method_types,
on_behalf_of: chefConnectedAccountId,
transfer_data: { destination: chefConnectedAccountId },
};
const paymentIntent: Stripe.PaymentIntent = await stripe.paymentIntents.create(
params
);
iirc, using alipay with on_behalf_of is a private beta feature - are you in the beta for that? https://stripe.com/docs/payments/alipay
oh, I don't think I am in any beta
so you mean my customer cannot use alipay if I am not in beta testing? or I can still make it to work without using on_behalf_of
you'd need to either ask support about getting added to the beta, or not use on_behalf_of for alipay payments
not use on_behalf_of for alipay payments => does it work for connect account?
if so, how can I make the change upon my current request form?
you'd drop the on_behalf_of param, and leave the transfer_data
okay, thank you I will try that in a bit