Quickstart
Overview
Time to complete: < 10 minutes
This guide walks you through the basic steps to create an API key and process a simulated payment using Push. To learn how to build a complete integration, head over to the Integration Guide.
1. Create an API key
In order to securely access the API, you must first exchange a temporary code for a durable API key. You can request your temporary code in the dedicated slack channel setup for your organization or by reaching out to hello@pushcash.com.
Once you have received your code, exchange it for an API key by making a request to the keys/exchange
endpoint.
The response should contain your API key which you can use to authenticate your requests to the Push API.
Then, export your API key as an environment variable in your terminal
Finally, verify that your API key is set correctly by making a request to the keys/verify
endpoint.
The API will respond with a status code of 200
(OK) and the name of your organization
2. Process a payment
In order to process a payment, you need to register a user.
The response contains the ID for your registered user.
Now you can submit a request to create a payment intent, replacing “Your user ID” with the id
from the previous step.
Running the command will open the URL for the payment session in your browser. You should see something like
Enter the test card information for sandbox
Field | Value |
---|---|
Number | 5555 5555 5555 4444 |
Exp | Any future date (e.g. 12-34 ) |
CVV | Any value |
Click “Deposit” to confirm the payment and display the payment confirmation pane. You should see something like
Finally, click “Back to …” to return here.
Congratulations on completing the quickstart 🎉 To learn how to build a complete integration to the Push platform, head over to the Integration Guide.