Originate a push transaction
In this tutorial, you'll learn how to:
✅ Sign up a card
✅ Send a push payment
This tutorial assumes you have a knowledge of APIs and how they work. Refer to the API overview page for more details.
The tutorial uses these API endpoints:
API | Description |
Signs up a card | |
Sends a payment |
The tutorial uses these webhooks:
Webhook | Description |
CardAuthorized |
|
Transaction | Reports a transaction |
Make sure you have:
- requestId - your unique reference ID
- cardToken - the token you received when you registered the card
- The dollar amount to send
- Enough funds in your account
- The name of the person or organization originating the push transaction
Use this endpoint, POST /api/WebhookRegistrations, to sign up to receive the webhooks available for P2C. These webhooks report relevant events back to your system in real-time. This keeps you up to date on each transaction.
To start a transaction you must first register a card. We use different endpoints to be able to secure your customer's debit card numbers. To register a card, send Cross River the card number. The card number is instantly converted into a token. Cross River doesn't save any card number information. Doing this asynchronously allows Cross River to store your customer's card information. This ensures that you don't need to retrieve the card information again. It also keeps your customer's data secure.
- When a card is registered, Cross River validates the card with the relevant card network. This makes sure the card is a valid card and that it is allowed to receive payments.
- The CardAuthorized webhook is triggered.
When you send funds directly to a debit card, we call this a push payment, or a push-to-card (P2C) transaction.
- Authenticate into the Cross River system. This returns a token to you.
- Use the token to call POST /api/transaction.
- Cross River sends this request to the card networks. The networks direct the transaction to the right bank.
- The issuing bank (of the registered debit card) receives the transaction.
- The issuing bank either authorizes or declines the transaction.
- If the bank authorizes the transaction, your payee will receive the funds.
After we receive a successful authorization from the card network, we will respond to your API call. The response looks like this.