Skip to Content
Docs

Cash App payouts

Save a recipient's Cash App account with Pay.com.js, then pay out to it.

Pay out to a recipient's Cash App account, by their $Cashtag. See Cash App Pay in Payout connections for the providers that pay out to it.

Pay out to a saved Cash App account

When the customer already saved their Cash App account with you, pay out to it without asking for their details again. It can be a payment method saved when they paid, or in a setup session. Read its ID from payment_method on the charge or payment session, or list the customer's payment methods with GET /v1/customers/{reference_id}/payment_methods. Then pass the ID as destination in POST /v1/payouts.

{
  "amount": 10000,
  "currency": "usd",
  "destination": "pm_cashapp_750042760773370880",
  "customer_reference_id": "cust-001",
  "reference": "payout-12345"
}

Pay out only to a payment method whose flow_directions.payout is true. Pay.com sends the payout to any saved method you name, so one that can't receive payouts comes back declined, with 400 and payment_method_error. When you send customer_reference_id, the payment method must belong to that customer.

Save the recipient's details with Pay.com.js

The recipient enters their Cash App details in Pay.com.js, Pay.com saves them as a payment method, and you pay out to it. Cash App payouts require a saved Cash App Pay payment method. To verify the recipient's name or phone number when saving the account, set payment_method_options.cashapp on the setup session.

  1. 1

    Create a payout setup session

    On your server, send POST /v1/sessions/setup with payout set to true and "cashapp" in payment_method_types. Pay.com verifies that Cash App payouts are enabled on your account. customer_reference_id is required. Return the session's client_secret to your page.

    {
      "customer_reference_id": "cust-001",
      "payment_method_types": ["cashapp"],
      "payout": true
    }
  2. 2

    Collect the details

    Initialize Pay.com.js with the client_secret, and call checkout.headless() when the recipient selects Cash App. Pay.com.js opens the Cash App form in a window over your page or in a new tab, depending on your account configuration.

    The recipient fills in these fields.

    FieldSetup form labelRequiredFormat
    aliasCash App $CashtagYesText matching ^\$?(?=.*[A-Za-z])\w{1,20}$
    try {
      await checkout.headless('cashapp', { alias: '$janesmith' })
    } catch (error) {
      // onFailure receives the error details too.
    }
  3. 3

    Pay out to the saved method

    When Pay.com.js calls onSuccess, retrieve the setup session with GET /v1/sessions/setup/{id}. Read the saved payment method ID from payment_method and pass it as destination in POST /v1/payouts for this and future payouts.

Next steps

Was this page helpful?