Payment
Payment Gateway For Marvelly App
This endpoint initiates a payment transaction in the live environment.
The amount to be paid in the lowest currency unit (e.g., kobo for NGN).
500000The URL to redirect to after the transaction is complete.
https://your-domain.com/payment/callbackCustomer's first name.
JohnCustomer's last name.
DoeCustomer's phone number.
08012345678If set to 'true', the user will be automatically redirected to the payment page.
falsePayment initialized successfully.
Redirecting to Paystack's payment page (occurs when red query parameter is 'true').
Payment initialization failed.
GET /live/paystack/init?email=user%40example.com&amount=500000&callback_url=https%3A%2F%2Fyour-domain.com%2Fpayment%2Fcallback HTTP/1.1
Host: pay.marvelly.com.ng
Accept: */*
{
"status": true,
"message": "Authorization URL created",
"data": {
"authorization_url": "https://checkout.paystack.com/...",
"access_code": "a1b2c3d4e5",
"reference": "T123456789012345"
}
}This endpoint verifies the status of a transaction in the live environment using the transaction reference.
The transaction reference obtained after initialization.
T123456789012345Transaction verified successfully.
Bad request, such as a missing reference or failed verification.
Internal server error, including database issues.
GET /live/paystack/verify?reference=T123456789012345 HTTP/1.1
Host: pay.marvelly.com.ng
Accept: */*
{
"status": true,
"message": "Transaction verified and logged",
"data": {
"email": "[email protected]",
"amount": 5000,
"reference": "T123456789012345",
"status": "success",
"fees": 75,
"paid_at": "2025-08-18T14:30:00.000Z",
"channel": "card",
"currency": "NGN",
"ip_address": "192.168.1.1",
"service": "paystack"
}
}This endpoint initiates a payment transaction in the test environment.
The amount to be paid in the lowest currency unit (e.g., kobo for NGN).
500000The URL to redirect to after the transaction is complete.
https://your-domain.com/payment/callbackCustomer's first name.
JohnCustomer's last name.
DoeCustomer's phone number.
08012345678If set to 'true', the user will be automatically redirected to the payment page.
falsePayment initialized successfully.
Redirecting to Paystack's payment page (occurs when red query parameter is 'true').
Payment initialization failed.
GET /test/paystack/init?email=user%40example.com&amount=500000&callback_url=https%3A%2F%2Fyour-domain.com%2Fpayment%2Fcallback HTTP/1.1
Host: pay.marvelly.com.ng
Accept: */*
{
"status": true,
"message": "Authorization URL created",
"data": {
"authorization_url": "https://checkout.paystack.com/...",
"access_code": "a1b2c3d4e5",
"reference": "T123456789012345"
}
}This endpoint verifies the status of a transaction in the test environment using the transaction reference.
The transaction reference obtained after initialization.
T123456789012345Transaction verified successfully.
Bad request, such as a missing reference or failed verification.
Internal server error, including database issues.
GET /test/paystack/verify?reference=T123456789012345 HTTP/1.1
Host: pay.marvelly.com.ng
Accept: */*
{
"status": true,
"message": "Transaction verified and logged",
"data": {
"email": "[email protected]",
"amount": 5000,
"reference": "T123456789012345",
"status": "success",
"fees": 75,
"paid_at": "2025-08-18T14:30:00.000Z",
"channel": "card",
"currency": "NGN",
"ip_address": "192.168.1.1",
"service": "paystack"
}
}Last updated
Was this helpful?