Custom Merchant
Navigation
How It Works
Using a custom merchant for processing incoming payments, you can connect an unlimited number of your own merchants to pay for order.
Setup
To set up a custom merchant, go to "Application Settings" - "Custom (API) Merchant". You can enter a secret key that will be used to generate a signature.
Request Example
curl -X POST 'ВАШ.ХОСТ' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'amount=15000.00' \
--data-urlencode 'currency_code=UAH' \
--data-urlencode 'currency=CARDUAH' \
--data-urlencode 'order_id=5cd36708f57f8801ad466a43d2175758' \
--data-urlencode 'sign=e494b3de8cdeaf8a55fb2175095468896049b7b563897bc3dade761523f35277'
Parameter | Description |
---|---|
amount | Amount |
currency_code | Currency Code |
currency | Currency Slug |
order_id | Order Token |
sign | Sign SHA256(amount:currency_code:currency:order_id:SECRET_KEY) |
Response Example
After processing the payment, it is necessary to send a POST request to the URL of the exchanger "YOUR.DOMAIN/merchant-process/custom" in order to change the status of the order to "Paid".
curl -X POST 'https://demo.exchanger-cms.com/merchant-process/custom' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'amount=15000.00' \
--data-urlencode 'currency_code=UAH' \
--data-urlencode 'currency=CARDUAH' \
--data-urlencode 'order_id=5cd36708f57f8801ad466a43d2175758' \
--data-urlencode 'txn=bill_1601622066' \
--data-urlencode 'sign=2d12bd8be66d1814b6d4809870d07d2e7fd9709888500f5c7ec0132dbdfc5ac4'
Parameter | Description |
---|---|
amount | Amount |
currency_code | Currency Code |
currency | Currency Slug |
order_id | Order Token |
txn | Transaction ID |
sign | Sign SHA256(amount:currency_code:currency:order_id:txn:SECRET_KEY) |
Work Documentation
For Developers
We work without days off 10:00 - 20:00 (GMT+3)
© 2018 - 2023 Made with Exchanger CMS