Payment Gateways: Stripe, Razorpay and PayPal
Accept payments for WooCommerce orders in your app with Stripe's payment sheet, Razorpay checkout or PayPal, plus test mode, webhooks and App Store rules.
Overview
Payment gateways let shoppers pay WooCommerce orders natively in your app:
| Gateway | How it works in the app |
|---|---|
| Stripe | Stripe's native payment sheet, including Apple Pay and Google Pay |
| Razorpay | Razorpay's native checkout, including UPI apps |
| PayPal | PayPal in a secure in-app browser window |
Shopify stores do not need a gateway: they always pay in Shopify Checkout. See Shopify integration.
Set up a gateway
- Open Integrations › E-commerce › Payments.
- Add your gateway keys, starting in Test mode. Going Live needs live keys.
- Add the webhook shown (recommended), so payments are confirmed even if a shopper closes the app during payment.
- Save.
Adding Stripe or Razorpay for the first time needs a new build, because their native SDKs are compiled into the app. PayPal and settings changes do not.
App Store rules for digital goods
Under App Store guidelines 3.1.1 and 3.1.5(a), Stripe, Razorpay and PayPal may only sell physical goods and services used outside the app. Digital content, memberships or in-app features must use Apple's In-App Purchase, or the iOS app will be rejected. See In-app purchases.
Test payments
- Use test keys and Test mode.
- Install a build that includes the gateway and place a test order.
- Check that the order turns paid in WooCommerce. Switch to live keys only when everything works.