العودة إلى Somonly — بوابة دفع: أكثر من 26 طريقة دفع في واجهة API واحدة
Creating a payment — Somonly — بوابة دفع: أكثر من 26 طريقة دفع في واجهة 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.