Prepaid card payouts
Pay out to a prepaid card issued to the recipient.
Pay out to a prepaid card that Pay.com issues to the recipient. See Prepaid card in Payout connections for the providers that pay out to it.
Pay out with the API
When you have the recipient's details, send POST /v1/payouts with destination_data.type set to "prepaid_card" and a unique idempotency-key header. Amounts are in minor units, so 10000 is $100.00. Send type alone, with the recipient's name, email, and phone in billing_details.
{
"amount": 10000,
"currency": "usd",
"destination_data": {
"type": "prepaid_card",
"billing_details": {
"name": "Jane Smith",
"email": "jane.smith@example.com",
"phone": "+12025551234"
}
},
"reference": "payout-12345"
}{
"id": "po_687092287729042432",
"resource": "payout",
"amount": 10000,
"currency": "usd",
"status": "pending",
"payment_method_details": {
"type": "prepaid_card"
},
"reference": "payout-12345",
"test_mode": true
}See Create a payout for common payout fields, and Track and manage payouts for payout statuses and webhook events.
Pay out to a saved prepaid card
When the customer already saved their prepaid card 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_prepaid_card_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 Prepaid card details in Pay.com.js, Pay.com saves them as a payment method, and you pay out to it.
- 1
Create a payout setup session
On your server, send
POST /v1/sessions/setupwithpayoutset totrueand"prepaid_card"inpayment_method_types. Pay.com verifies that Prepaid card payouts are enabled on your account.customer_reference_idis required. Return the session'sclient_secretto your page.{ "customer_reference_id": "cust-001", "payment_method_types": ["prepaid_card"], "payout": true } - 2
Collect the details
Initialize Pay.com.js with the
client_secret, and callcheckout.headless()when the recipient selects Prepaid card. Pay.com.js opens the Prepaid card form in a window over your page.The recipient fills in these fields.
Field Setup form label Required Format emailEmail (optional) No Text try { await checkout.headless('prepaid_card') } catch (error) { // onFailure receives the error details too. } - 3
Pay out to the saved method
When Pay.com.js calls
onSuccess, retrieve the setup session withGET /v1/sessions/setup/{id}. Read the saved payment method ID frompayment_methodand pass it asdestinationinPOST /v1/payoutsfor this and future payouts.
Prepaid card payout options
Set these in payout_method_options.prepaid_card on the payout. They override the defaults on your account.
| Option | Type | Description |
|---|---|---|
product | string | The prepaid card product to issue. |
verification_type | string | The verification type for the prepaid card. |
distribution_method | string | How the prepaid card is distributed to the recipient. |
Next steps
- Track and manage payouts: Follow payout statuses, webhook events, cancellations, and returns.
- Test and go live: Test sandbox outcomes and complete the go-live checklist.