Run a card sale
A merchant can use their POS to run card sales.
Integration steps
- Run a sale.
Before you begin
Authenticate your requests before making API calls. If your request fails, see Errors.
Run a sale
To run a sale, send a POST request to our Payments endpoint.
Important: This method includes the following functions:
- Tokenization
- Pre-authorization
- Currency conversion
- Offline processing
We don’t describe how to integrate with these functions in this guide.
Request parameters
To create the body of your request, use the following parameters:
Request
Example request
Response fields
If your request is successful, our gateway uses the card details to run a sale. The response contains the following fields:
Response
Example response
Test cases
Before you run test cases, read the Payments page in Test Your Integration.
Run a card sale without a surcharge
Send a POST request to the following endpoint:
POST https://api.uat.payroc.com/v1/payments
Example response
Run a card sale with a surcharge
Send a POST request to the following endpoint:
POST https://api.uat.payroc.com/v1/payments
Note: If you are unsure whether your account supports surcharges, email our Integration team at [email protected].
Example response