Welcome To Unique Seba Pay Docs Last updated: 2024-06-06
Unique Seba Pay is a simple and secure payment automation tool designed to use personal accounts as a payment gateway. This documentation provides a complete overview of how Unique Seba Pay works and how you can integrate its API into your website.
API Introduction
Unique Seba Pay Payment Gateway enables merchants to receive money from their customers by temporarily redirecting them to the payment gateway. After payment is completed, the customer can be returned to the merchant website and the merchant can verify the transaction using the available API.
API Operation
REST APIs are supported for payment creation and payment verification. During development, use your testing credentials where available, then use your live credentials for production processing.
Live API Endpoint — Create Payment https://pay.unique-seba.xyz/api/payment/create
Payment Verify API https://pay.unique-seba.xyz/api/payment/verify
Parameter Details
Variables required to initialize payment
Field Name
Description
Required
Example Values
cus_name
Customer full name.
Yes
John Doe
cus_email
Customer email address.
Yes
john@gmail.com
amount
Total amount payable. Avoid unnecessary trailing zeros for natural numbers.
Yes
10 / 10.50 / 10.6
success_url
URL where the customer will be returned after successful payment.
Yes
https://yourdomain.com/success.php
cancel_url
URL where the customer will be returned if the payment is cancelled.
Yes
https://yourdomain.com/cancel.php
meta_data
Optional JSON formatted data.
No
JSON formatted
Variables required for payment verification
Field Name
Description
Required
Example Values
transaction_id
Transaction ID received from the success URL.
Yes
OVKPXW165414
Headers Details
Header Name
Value
Content-Type
application/json
API-KEY
App key from API credentials
SECRET-KEY
Secret key from API credentials
BRAND-KEY
Brand key from Brands
Integration
Integrate the payment gateway into PHP, Laravel, WordPress, WooCommerce and other supported platforms.
Payment Link (where customers will complete their payment)
Error Response
status
bool
FALSE
message
String
Message associated with the error response
Completing Payment Page task you will be redirected to success or cancel page based on transaction status with the following Query Parameters: yourdomain.com/(success/cancel)?transactionId=******&paymentMethod=***&paymentAmount=**.**&paymentFee=**.**&status=pending or success or failed