Skrape Standard
This guide will demonstrate how to integrate Skrape Standard
Roadmap
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.
API Payload
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
Integration Guide
This is a command-line cURL command for making a POST request to the Skrape payment API.
Sample Response
The command does the following:
It uses the
curl
command to make a POST request to thehttps://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 theSECRET
environment variable.It sends a
Content-Type
header with the request, set toapplication/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 servicetx_ref
: A unique reference for the transactionamount
: The amount of the paymentredirect_url
: A redirect url for the user after successfull paymentcustomer
: An object that contains the customer's first name, last name, email, phone_numbercustomization
: An object that contains title and description of the checkout pagecallback_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.
Last updated