Payments
The Payments API allows you to create and manage payments on your integration.
Initialize Transaction - POST
POSTInitialize a transaction from your backend
Headers
Content-Type
application/json
DPPRIVATEKEY
PRIVATE_KEY
Body Parameters
public_key
string
Public key of the customer.
customer_email
number
email of the customer
customer_name
string
Name of the customer
order_id
string
order_Id of the transaction
items
array
aray of items and split group payments (see example)
fee_bearer
string
bearer of the transaction charges.
curl --location 'https://api.backend.dotapay.ng/api/v1/payment/request' \
--header 'DPPRIVATEKEY: PDBDMOsdsldjsljdldjsljdsldjldjldsjljd' \
--header 'Content-Type: application/json' \
--data-raw '{
"public_key": "PUB_DP_DEMOQTD9839ZV0DAP27VKEGUHZJDE3A1JZNWCQIH",
"items": [
{
"unit_cost": 500,
"quantity": 2,
"split_group_id": "SG_DEMO_8OFOA9O4"
},
{
"unit_cost": 1000,
"quantity": 1,
"split_group_id": null
}
],
"customer_email": "[email protected]",
"customer_name": "Alice Johnson",
"order_id": "ORD202250d9s2s3X3s3113",
"fee_bearer": "merchant"
}
'Initialize Customer Transaction - POST
POSTInitialize a transaction for a customer from your backend.
Headers
Content-Type
application/json
DPPRIVATEKEY
PRIVATE_KEY
Body Parameters
public_key
string
Public key of the customer.
customer_email
number
email of the customer
customer_name
string
Name of the customer
order_id
string
order_Id of the transaction
items
array
aray of items and split group payments (see example)
fee_bearer
string
bearer of the transaction charges.
Verify Customer Transaction - POST
POSTVerify customer transaction using the identifier.
Headers
Content-Type
application/json
DPPRIVATEKEY
PRIVATE_KEY
Body Parameters
identifier
string
Identifier for the transaction.
Sample Request
Verify Transaction - GET
GETConfirm the status of a transaction
Headers
Content-Type
application/json
DPPRIVATEKEY
PRIVATE_KEY
Body Parameters
identifier
string
Reference of the transaction
Sample Request
Transaction Status - GET
GETConfirm the status of a transaction
Headers
Content-Type
application/json
DPPRIVATEKEY
PRIVATE_KEY
Path Parameters
identifier String
The identifier is used to check the transaction status.
Transactions List - GET
GETGet the list of all transactions using the private key.
Headers
Content-Type
application/json
DPPRIVATEKEY
PRIVATE_KEY
Last updated