Deposit
Initiating a Deposit via Payment Method API
To initiate a deposit for a user, you need to send a POST request to the following endpoint. The request body must be in JSON format and include the following parameters:
Create Deposit
POST
/api/v3/paymentmethod/deposit
Headers
Name | Value |
---|---|
Content-Type |
|
x-api-key |
|
Body
Name | Type | Description |
---|---|---|
| string | The user's unique username. It should be dynamically generated or retrieved from your user database. |
| string | The user's first name. |
| string | The user's last name. |
| decimal | The deposit amount in the smallest currency unit (e.g., cents, pence). |
| string | The currency of the deposit amount (e.g., TRY, USD, EUR, GBP). |
| string | A unique identifier for the transaction, typically a UUID or your unique transaction Id. |
| integer | The identifier number for the selected payment method. |
Response
Instructions
Collect the necessary user information and the deposit amount.
Construct the JSON request payload with the appropriate values.
Send the POST request with the payload to the provided endpoint.
On receipt of the response, extract the
paymentPageUrl
and redirect the user to this URL to proceed with the payment.
Note: Always validate the paymentPageUrl
before redirecting the user to ensure it is a valid and secure link.
If a user sends a new request before their previous request is completed, they will receive a "pending transaction" warning. To avoid this warning, save the paymentPageUrl
information for the ongoing transaction. Keep this URL until the user completes their transaction. If the user tries to make another request before the first one is completed, instead of creating a new request, redirect them to the saved paymentPageUrl
.
Last updated