Payment Methods
Direct API is a single integration to let your customers pay with a number of alternative payment methods directly. For that reason the API call for each payment method is slightly different: it has to consider the local personal ID or e-wallet payer identity, whichever is being used by a certain payment solution.
Below you can find several examples of how the invocation differs depending on the payment method chosen.
Payment Request DATA fields for EWallet #1
Variable | Type | Description |
---|---|---|
data_email | varchar(50) | Required. An e-wallet login email to identify the payer. |
Below is an example of the APM-specific data being populated in the request.
curl -X POST \ https://gw.praxisgate.com/api/direct \
-H 'Content-Type: application/json' \
-d '{
"amount": "100",
"application_key": "Sandbox",
"country": "GB",
"currency": "USD",
"data_email": "[email protected]",
"gateway": "s-pTSZyK23E1Ee5KZpcNbX_aFl0HuhQ0",
"merchant_id": "Test-Integration-Merchant",
"notification_url": "https:\/\/api.merchant.com\/v1\/deposits\/tx-1560610955",
"order_id": "test-1560610955",
"pin": "1",
"return_url": "https:\/\/merchant.com\/payment_result\/tx-1560610955",
"timestamp": 1589315309,
"transaction_type": "sale",
"version": "1.2",
"signature": "7ffa33b1d199b03925854c31e65fda740f6042d9d024b4ed3e146e0abd0875683607abaa4fe8deee24e2709d09b4f455"
}'
Withdrawal Request DATA fields for EWallet #1
Variable | Type | Description |
---|---|---|
data_email | varchar(50) | Required. An e-wallet login email to identify the payer. |
Below is an example of the APM-specific data being populated in the request.
curl -X POST \ https://gw.praxisgate.com/api/direct \
-H 'Content-Type: application/json' \
-d '{
"amount": "100",
"application_key": "Sandbox",
"country": "GB",
"currency": "USD",
"data_email": "[email protected]",
"gateway": "s-pTSZyK23E1Ee5KZpcNbX_aFl0HuhQ0",
"merchant_id": "Test-Integration-Merchant",
"notification_url": "https:\/\/api.merchant.com\/v1\/deposits\/tx-1560610955",
"order_id": "test-1560610955",
"pin": "1",
"return_url": "https:\/\/merchant.com\/payment_result\/tx-1560610955",
"timestamp": 1589322875,
"transaction_type": "payout",
"version": "1.2",
"signature": "392e70a549c5d8fd6f7e7c851dc5394780ee32d93a2a867f74e5ca464e4fa183f6b8712930eeef34b921c19b023a1107"
}'
Payment Request DATA fields for EWallet #2
Variable | Type | Description |
---|---|---|
data_full_name | varchar(50) | Required. Payer's full name. |
data_phone_number | int(13) | Required. Payer's phone number (login). |
Below is an example of the APM-specific data being populated in the request.
curl -X POST \ https://gw.praxisgate.com/api/direct \
-H 'Content-Type: application/json' \
-d '{
"amount": "100",
"application_key": "Sandbox",
"country": "GB",
"currency": "USD",
"data_full_name": "John Doe",
"data_phone_number": "447491945309",
"gateway": "s-pTSZyK23E1Ee5KZpcNbX_aFl0HuhQ0",
"merchant_id": "Test-Integration-Merchant",
"notification_url": "https:\/\/api.merchant.com\/v1\/deposits\/tx-1560610955",
"order_id": "test-1560610955",
"pin": "1",
"return_url": "https:\/\/merchant.com\/payment_result\/tx-1560610955",
"timestamp": 1589315756,
"transaction_type": "sale",
"version": "1.2",
"signature": "58334d26f74d530afdedec3e32615ee094e23ec3e9783628c968b58c774cbb9c57a72bf7a97fa1faca143c7ea9129959"
}'
Withdrawal for EWallet #2 - NOT SUPPORTED
You are currently viewing version 3.4 Latest version here