Payments

The Payments API allows you to create and manage payments on your integration.

Initialize Transaction - POST

Initialize a transaction from your backend

Headers

Name
Value

Content-Type

application/json

DPPRIVATEKEY

PRIVATE_KEY

Body Parameters

Name
Type
Description

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

Initialize a transaction for a customer from your backend.

Headers

Name
Value

Content-Type

application/json

DPPRIVATEKEY

PRIVATE_KEY

Body Parameters

Name
Type
Description

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

Verify customer transaction using the identifier.

Headers

Name
Value

Content-Type

application/json

DPPRIVATEKEY

PRIVATE_KEY

Body Parameters

Name
Type
Description

identifier

string

Identifier for the transaction.

Sample Request

Verify Transaction - GET

Confirm the status of a transaction

Headers

Name
Value

Content-Type

application/json

DPPRIVATEKEY

PRIVATE_KEY

Body Parameters

Name
Type
Description

identifier

string

Reference of the transaction

Sample Request

Transaction Status - GET

Confirm the status of a transaction

Headers

Name
Value

Content-Type

application/json

DPPRIVATEKEY

PRIVATE_KEY

Path Parameters

identifier String

The identifier is used to check the transaction status.

Transactions List - GET

Get the list of all transactions using the private key.

Headers

Name
Value

Content-Type

application/json

DPPRIVATEKEY

PRIVATE_KEY

Last updated