Paystack
Payment initialization using paystack
STAGING_URL: https://switchapi3.azurewebsites.net
LIVE_URL: https://switchapi.azurewebsites.net
Initialize Transaction
POST
https://switchapi3.azurewebsites.net/user/paystack/initialize_transaction
This endpoint allows you to make payment.
Headers
SWI-CS
string
Payload checksum
SWI-CID
string
Client ID
Authorization
string
The format for Authorization is Bearer token
Request Body
amount_kobo
string
Amount in kobo.
{
"message": "Payment initiated successfully on paystack",
"data": {
"access_code": "1tdk40hy7b2xk9",
"reference": "5c3a424b-e521-4ab6-bdb8-paystack-4d38aea110ab"
}
}
Initialize Transaction (Payment-link)
POST
https://switchapi3.azurewebsites.net/user/paystack/initialize_payment_link_transaction
This endpoint initializes transactions for payment-link specifically.
Headers
SWI-CS
string
Payload checksum
SWI-CID
string
Client ID
Request Body
amount_kobo
string
Amount in kobo.
string
The payer's email.
payment_link_token
string
The payment-link token.
Fund user wallet/account
POST
https://switchapi3.azurewebsites.net/user/paystack/fund
This endpoint funds the user's switch wallet or account.
Headers
SWI-CS
string
Payload checksum
SWI-CID
string
Client ID
Request Body
save_card
string
Boolean flag for saving card. Defaults to false.
funding_destination
string
wallet or account. Defaults to wallet.
amount_kobo
string
Amount in kobo
reference
string
Paystack reference.
{
"message": "Funding successful"
}
Last updated
Was this helpful?