Tutorials

Originate a push transaction

7min

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

  • Reports when a card authorization attempt is completed
  • Shows you the status of the card

Transaction

Reports a transaction

Before you begin

Make sure you have:

  • Successfully registered to receive webhook event notifications
  • Signed up the card you are pushing funds to
  • 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

Register the relevant webhook events

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.

Sign up a card

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.

  1. 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.
  2. The CardAuthorized webhook is triggered.
Sample request POST /api/Card


Start a payment

When you send funds directly to a debit card, we call this a push payment, or a push-to-card (P2C) transaction.

  1. Authenticate into the Cross River system. This returns a token to you.
  2. Use the token to call POST /api/transaction.
  3. Cross River sends this request to the card networks. The networks direct the transaction to the right bank.
  4. The issuing bank (of the registered debit card) receives the transaction.
  5. The issuing bank either authorizes or declines the transaction.
  6. If the bank authorizes the transaction, your payee will receive the funds.
Sample request POST /api/transaction


After we receive a successful authorization from the card network, we will respond to your API call. The response looks like this.

Sample response POST /api/transaction




🤔
Have a question?
Our super-smart AI, knowledgeable support team and an awesome community will get you an answer in a flash.
To ask a question or participate in discussions, you'll need to authenticate first.



Updated 30 Sep 2024
Doc contributor
Doc contributor
Did this page help you?