Generating the Payment Form (Make Deposit Form)

Request Parameters

  • Currency: The currency for the transaction

  • Amount: The amount to be paid

  • Description: A brief description of the payment

  • Order ID: A unique identifier for the order or transaction

  • Success URL: https://e-gates.io/success The URL where the customer will be redirected upon successful payment

  • Failure URL: https://e-gates.io/error The URL where the customer will be redirected if the payment fails

  • Callback URL: https://webhook.site/9a41d19f-01a3 A URL where payment status notifications and data can be sent

  • User Email: The email address of the user initiating the payment

  • User ID: A unique identifier for the user initiating the payment

  • Payment Method: The selected payment method, in this case, a card payment

Example :

{
    "currency": "EUR",
    "amount": 1,
    "description": "payment",
    "order_id": 5,
    "success_url": "https://e-gates.io/success",
    "failure_url": "https://e-gates.io/error",
    "callback_url": "https://webhook.site/9a41d19f-01a3",
    "user_email": "email@gmail.com",
    "user_id": 1,
    "payment_method": "CARD_PAYMENT"
}

Creating a Payment Form

Request

  • Method: POST

  • URL: {{base_url}}/api/external/v1/fiat-gateway/mercuryo/make-deposit-form

The client initiates a POST request to create a payment form. In response, the client receives a link to a form that can be used for payment.

Response

{
    "success": true,
    "status": null,
    "response": {
        "redirectLink": "https://pay.mercuryo.io/pay/17735734-f71cfbaa96db650446a4ef01e02a80f4bcad8b339a6b6e9ac84e842b3f10",
        "uid": "2f7e6790-24a3-4333-8080-fbd318ef9905"
    },
    "errors": null
}

These documents provide a description of the processes for generating a payment form and a withdrawal form via the API. Please refer to them when working with these functions. If you have any questions or need additional information, don't hesitate to contact our support team.

Last updated