#策划-wechat
1 messages · Page 1 of 1 (latest)
yes
"message": "The app_id can only be provided if payment_method_options[wechat_pay][client]=android or payment_method_options[wechat_pay][client]=ios.",
we have iOS Androird and web 3 ends
when you created this payment intent, you set payment_method_options.wechat_pay.client to web. so in that case you shouldn't pass an app_id
The app ID registered with WeChat Pay. Only required when client is ios or android.
https://stripe.com/docs/api/payment_intents/create#create_payment_intent-payment_method_options-wechat_pay-app_id
So you should either change the client, or remove the app_id when creating the PaymentIntent
ok ty let me check