Paystack
Payment initialization using paystack
Initialize Transaction
POST
https://switchapi3.azurewebsites.net/user/paystack/initialize_transaction
This endpoint allows you to make payment.
Headers
Name | Type | Description |
---|---|---|
SWI-CS | string | Payload checksum |
SWI-CID | string | Client ID |
Authorization | string | The format for Authorization is Bearer token |
Request Body
Name | Type | Description |
---|---|---|
amount_kobo | string | Amount in kobo. |
Initialize Transaction (Payment-link)
POST
https://switchapi3.azurewebsites.net/user/paystack/initialize_payment_link_transaction
This endpoint initializes transactions for payment-link specifically.
Headers
Name | Type | Description |
---|---|---|
SWI-CS | string | Payload checksum |
SWI-CID | string | Client ID |
Request Body
Name | Type | Description |
---|---|---|
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
Name | Type | Description |
---|---|---|
SWI-CS | string | Payload checksum |
SWI-CID | string | Client ID |
Request Body
Name | Type | Description |
---|---|---|
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. |
Last updated