Skrape Standard
This guide will demonstrate how to integrate Skrape Standard
Last updated
This guide will demonstrate how to integrate Skrape Standard
Last updated
On your server, use our create payment endpoint to submit payment details.
We'll return a link to a payment page.
Your customer will be redirected to this link to complete the payment.
After the transaction is completed, the customer will be redirected back to your website.
Key | Type | Required | Description |
---|---|---|---|
This is a command-line cURL command for making a POST request to the Skrape payment API.
The command does the following:
It uses the curl
command to make a POST request to the https://api.skrape.io/standard/payment
endpoint.
It sends a Authorization
header with the request, containing an access token that authenticates the request. The token is stored in the SECRET
environment variable.
It sends a Content-Type
header with the request, set to application/json
, indicating that the body of the request contains JSON-encoded data.
It sends a JSON-encoded payload in the body of the request, containing the following fields:
api_key:
API key for the Skrape service, which authenticates the website to interact with the Skrape service
tx_ref
: A unique reference for the transaction
amount
: The amount of the payment
redirect_url
: A redirect url for the user after successfull payment
customer
: An object that contains the customer's first name, last name, email, phone_number
customization
: An object that contains title and description of the checkout page
callback_url
: A callback URL that will be called after successful payment
After successful execution of the request , the API will process the payment and returns the response accordingly.
Please note that the command is given is just an example and you would need to replace the url, headers, and body contents with your own information accordingly.
api_key
string
Yes
API key provided by Skrape to identify the merchant.
amount
string
Yes
Amount to be paid
tx_ref
string
No
A unique reference number for the transaction.
token_name
string
Yes
The name of the token or currency to be used for the transaction.
customer
object
Yes
It holds the customer email, first name, last name
customer.email
string
Yes
The email of the customer.
customer.first_name
string
No
The first name of the customer.
customer.last_name
string
No
The last name of the customer.
customization
object
Yes
It holds the transaction title, description
customization.title
string
Yes
Customization title
customization.description
string
No
Customization description