M10
Payment flow
The M10 payment flow contains the following steps:
- You initiate a payment request.
- You redirect your customer to the URL received in the response to your payment request.
- Your customer completes the payment on the provider's payment page.
- You get a webhook notification about a payment status, if you send
notification_url
in the payment request.
This integration option supports the following operations:
Payment
Request
Send a payment request with the following additional parameters:
Parameter | Type | Description |
---|---|---|
amount * required |
integer | Specify the parameter value as 0 |
method | object | A section of the payment method. |
type * required |
string | m_10 |
user_id * required |
string | The customer's ID. |
user_name * required |
string | The customer's name. |
customer | object | A section of the customer's details. |
first_name * required |
string | The customer's first name. |
last_name * required |
string | The customer's last name. |
Response
The payment response additionally contains the m_10
section with the name of the payment method, as well as the form
section with the URL of the provider's payment page. Redirect your customer to the URL received as a value of the form.action
parameter.
Warning
The amount
parameter value in the webhook notification and in the response to the transaction status query will be different from the value sent in the request and will equal the amount of the transaction that the customer made on the provider's payment page.
Payout
Request
Send a payout request with the following additional parameters:
Parameter | Type | Description |
---|---|---|
method | object | A section of the payment method. |
type * required |
string | m_10 |
user_id * required |
string | The customer's ID. |
user_name * required |
string | The customer's name. |
account_number * required |
string | The customer's account number. |
customer | object | A section of the customer's details. |
first_name * required |
string | The customer's first name. |
last_name * required |
string | The customer's last name. |
Response
The payout response will contain the same parameters as the request. The payout result will be sent to the merchant in the webhook notification.
Payment status query
To check a status of the payment, send a transaction status query.