Use the Payment Intents and Payment Methods APIs to accept WeChat Pay, a digital wallet popular with customers from China.
Stripe automatically presents your customers payment method options by evaluating their currency, payment method restrictions, and other parameters. We recommend that you configure your payment methods from the Stripe Dashboard using the instructions in Accept a payment.
If you want to continue manually configuring the payment methods you present to your customers with Checkout, use this guide (for example, to accept payments in Subscription mode). Otherwise, migrate to the dashboard.
WeChat Pay is a single-use payment method. Customers pay with WeChat Pay by scanning the QR code that they see during Checkout. Completing the payment redirects customers back to your website.
Add wechat_pay to the list of payment_method_types
Pass the client as 'web' in the payment_method_options.wechat_pay hash
Make sure all your line_items use the same currency
payment_method_types:['wechat_pay'],# or you can take multiple payment methods with# payment_method_types: ['card', 'wechat_pay', ...]# Specify the client (currently, Checkout only supports a client value of "web")
Welcome to the Stripe Shell!
Stripe Shell is a browser-based shell with the Stripe CLI pre-installed. Login to Stripe
docs and press Control + Backtick on your keyboard to start managing your Stripe resources
in test mode.
- View supported commands:
- Find webhook events:
- Listen for webhook events:
- Call Stripe APIs: stripe [api resource] [operation] (e.g. )