Get Started
The Pay4it API is customisable and its functionality can be tailored to user's needs and request.
Pay4it API is designed based on REST API. Our API is prepared with understandable resource-oriented URLs, welcomes form-encoded request bodies, sends back JSON-encoded responses, and utilizes standard HTTP response codes, authentication, and verbs.
We offer an easy, comfortable and secure payment flow for web applications. Putting into consideration ease of use, the Pay4it Inline code ensures that users start and finish making payment on the same page by just simply copying the code in the embeded section and add to your page.
Before you begin
Create a free merchant account here
Choose an Integration method
Setup your integration
Request a payment
Authentication
To make API calls on Pay4it you’ll have to pass a Bearer Token To generate a token you simply
Pass your public key and secret key.
You'll be authenticated and receive a token to process further API calls.
Authorization: Bearer {token}Basic authentication is a simple authentication scheme built into the HTTP protocol. The client sends HTTP requests with the Authorization header that contains the word Basic followed by a space and a base64-encoded string publicKey:privateKey.
The token is gotten like this, base64Encode(publicKey:privateKey);
Last updated