v1

latestOpenAPI 3.1.02026-08-04303.9 KB

Create Charge

post/checkout-v2

Headers

RT-UDDOKTAPAY-API-KEYstring required

API KEY

Request body

full_namestring required

User's full name.

emailstring required

User's email address.

amountstring required

The payment amount.

metadatastring json required

Additional project-specific data in JSON format. For example: { "order_id": "10", "product_id": "5"}

redirect_urlstring required

The URL where the user will be redirected after a successful payment. Additionally, an invoice_id will be sent via POST data, which you must validate using the Verify Payment API.

return_typestring required

Specifies how the invoice_id is returned to the success page. It can be either "GET" or "POST."

cancel_urlstring required

The URL where the user will be redirected when they click the cancel button during the payment process.

webhook_urlstring

A backend response URL where payment information is sent when an admin initiates a "SEND WEBHOOK REQUEST" from the admin panel.

Response

200

object required