DoniaPay is a simple and Secure payment automation tool which is designed to use personal account as a payment gateway so that you can accept payments from your customer through your website where you will find a complete overview on how DoniaPay works and how you can integrate DoniaPay API in your website
Parameter Details
Variables Need to POST to Initialize Payment Process in gateway URL
The total amount payable. Please note that you should skip the the trailing zeros in case the amount is a natural number.
Yes
10 or 10.50 or 10.6
success_url
URL to which the customer will be returned when the payment is made successfully. The customer will be returned to the last page on the Merchant's website where he should be notify the payment successful.
Yes
https://yourdomain.com/sucess.php
cancel_url
URL to return customer to your product page or home page.
Yes
https://yourdomain.com/cancel.php
webhook_url
IPN callback URL
No
https://yourdomain.com/webhook.php
meta_data
IPN callback URL
No
Json Formated
Variables Needs For Payment Verify
Field Name
Description
Required
Example Values
transaction_id
Transaction id received as a query parameter from the success URL provided during payment creation.
Yes
OVKPXW165414
Headers Details
Header Name
Value
Content-Type
application/json
donia-apikey
App key From Brands
Integration
You can integrate our payment gateway into your PHP Laravel WordPress WooCommerce sites.
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