Cash App Pay payments
Learn how to accept Cash App Pay, a digital wallet popular with US customers.
Caution
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. Otherwise, update your integration to configure payment methods in the Dashboard.
This guides you through enabling Cash App Pay on Checkout, our hosted checkout form, and shows the differences between accepting a card payment and a Cash App Pay payment.
Determine compatibility
A Checkout Session must satisfy all of the following conditions to support Cash App Pay payments:
- Prices for all line items must be expressed in USD.
Set up StripeServer-side
First, you need a Stripe account. Register now.
Use our official libraries for access to the Stripe API from your application:
Accept a payment
Note
This guide builds on the foundational accept a payment Checkout integration.
Enable Cash App Pay as a payment method
When creating a new Checkout Session, you need to:
- Add
cashapp
to the list ofpayment_
method_ types - Make sure all your
line_
use theitems usd
currency
Stripe::Checkout::Session.create({ mode: 'payment', payment_method_types: ['card'], payment_method_types: ['card', 'cashapp'], line_items: [{ price_data: { currency: 'usd', product_data: { name: 'T-shirt', }, unit_amount: 2000, }, quantity: 1, }], success_url: 'https://example.com/success', cancel_url: 'https://example.com/cancel', })
Fulfill your orders
After accepting a payment, learn how to fulfill orders.
Test your integration
To test your integration, choose Cash App Pay as the payment method and tap Pay. In test mode, this redirects you to a test payment page where you can approve or decline the payment.
In live mode, tapping Pay redirects you to the Cash App mobile application—you don’t have the option to approve or decline the payment within Cash App. The payment is automatically approved after the redirect.