Payment

Payment Gateway For Marvelly App

Initialize a Live Payment

get

This endpoint initiates a payment transaction in the live environment.

Query parameters
emailstring · emailRequired

Customer's email address.

Example: [email protected]
amountintegerRequired

The amount to be paid in the lowest currency unit (e.g., kobo for NGN).

Example: 500000
callback_urlstring · urlRequired

The URL to redirect to after the transaction is complete.

Example: https://your-domain.com/payment/callback
first_namestringOptional

Customer's first name.

Example: John
last_namestringOptional

Customer's last name.

Example: Doe
phonestringOptional

Customer's phone number.

Example: 08012345678
redbooleanOptional

If set to 'true', the user will be automatically redirected to the payment page.

Example: false
Responses
chevron-right
200

Payment initialized successfully.

application/json
get
/live/paystack/init

Verify a Live Payment

get

This endpoint verifies the status of a transaction in the live environment using the transaction reference.

Query parameters
referencestringRequired

The transaction reference obtained after initialization.

Example: T123456789012345
Responses
chevron-right
200

Transaction verified successfully.

application/json
get
/live/paystack/verify

Initialize a Test Payment

get

This endpoint initiates a payment transaction in the test environment.

Query parameters
emailstring · emailRequired

Customer's email address.

Example: [email protected]
amountintegerRequired

The amount to be paid in the lowest currency unit (e.g., kobo for NGN).

Example: 500000
callback_urlstring · urlRequired

The URL to redirect to after the transaction is complete.

Example: https://your-domain.com/payment/callback
first_namestringOptional

Customer's first name.

Example: John
last_namestringOptional

Customer's last name.

Example: Doe
phonestringOptional

Customer's phone number.

Example: 08012345678
redbooleanOptional

If set to 'true', the user will be automatically redirected to the payment page.

Example: false
Responses
chevron-right
200

Payment initialized successfully.

application/json
get
/test/paystack/init

Verify a Test Payment

get

This endpoint verifies the status of a transaction in the test environment using the transaction reference.

Query parameters
referencestringRequired

The transaction reference obtained after initialization.

Example: T123456789012345
Responses
chevron-right
200

Transaction verified successfully.

application/json
get
/test/paystack/verify

Last updated