بازگشت به Somonly — درگاه پرداخت: بیش از ۲۶ روش پرداخت در یک API
Creating a payment — Somonly — درگاه پرداخت: بیش از ۲۶ روش پرداخت در یک API

Creating a payment

The documentation section about the main API method.

وب‌سایت پروژه:somonly.com

Architecture and functionality: Creating a payment

The documentation section about the main API method.

1. Parameters

A table describes the POST /payments request fields: order_id, amount, description, return_url, the payer's name and phone, bank_id for a deeplink, the invoice lifetime and meta.

2. Code samples

Ready examples in cURL, PHP (Laravel), Node.js and a 201 response, with a copy button.

3. Responses

Notes on status codes: 201 means the payment was created, 200 is a repeat with the same order_id, 422 is a parameter error and 502 means SmartPay did not create the invoice.