1. Documentation

Bohudur Curl


Create Request

curl -X POST https://request.bohudur.one/create/ \
-H "Content-Type: application/json" \
-H "AH-BOHUDUR-API-KEY: YOUR_API_KEY" \
-d '{
  "fullname": "User Name",
  "email": "[email protected]",
  "amount": 10,
  "return_type": "POST",
  "currency": "USD",
  "currency_value": 120,
  "redirect_url": "http://example.com/redirect.php",
  "cancelled_url": "http://example.com/cancelles.php",
  "metadata": {
    "data1": "value1",
    "data2": "value2"
  },
  "webhook": {
    "success": "https://example.com/success.php",
    "cancel": "https://example.com/cancel.php"
  }
}'

Execute Payment

curl -X POST https://request.bohudur.one/execute/ \
-H "Content-Type: application/json" \
-H "AH-BOHUDUR-API-KEY: YOUR_API_KEY" \
-d '{
  "paymentkey": "HERE_PAYMENT_KEY"
}'

Verify Payment

curl -X POST https://request.bohudur.one/verify/ \
-H "Content-Type: application/json" \
-H "AH-BOHUDUR-API-KEY: YOUR_API_KEY" \
-d '{
  "paymentkey": "HERE_PAYMENT_KEY"
}'