🚧 This project is currently in active development. A sandbox environment will be made available soon for testing and exploration. Stay tuned!
session_id is passed to the SDK's configure() method.curl --location --globoff 'https://sandbox-payments-{{account-name}}.datmanpay.com/create-session' \
--header 'api_key: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"host": "https://www.example.com",
"merchant_id": 663207634,
"order_id": 501534948,
"customer_id": "4891715",
"provider": "FH",
"email": "customer@example.com",
"phoneNumber": "07123456789",
"name": "John Doe",
"Amount": "20.89",
"AvsHouseNumber": "7",
"AvsPostcode": "SW1A 1AA",
"MerchantReference": "MerchantReference4463679085",
"RedirectUrl": "https://www.example.com/success",
"CancelUrl": "https://www.example.com/cancel",
"WebhookUrl": "https://webhook.site/your-webhook-id",
"backurl": "https://www.example.com/back",
"firstname": "John",
"lastname": "Doe",
"flat": "70",
"address1": "High Street",
"address2": "Garden District",
"SplitFee": [
{
"partner_merchant_id": 663208111,
"type_id": 1,
"value": 0.5,
"value_type": "amount"
}
]
}'{
"session_id": "1e0eaf52159a71318fbc4a3fef7f71d3"
}