| Task | Method |
|---|---|
| Accept a payment with card data on your side | Pay by card; if 3DS is required, then Pay by card: complete 3DS |
| Accept a payment with Apple Pay or Google Pay | Pay with Apple Pay, Pay with Google Pay |
| Charge a card saved by the client earlier | Pay by card token: see «Saved cards» |
| Charge a card saved in a recurring profile | Pay by recurring profile |
| Redirect the client to the Freedom Pay payment page | Create payment page, or Create payment page with any amount if the client enters the amount |
| Capture a two-step payment | Capture payment (clearing) |
| Release a two-step payment before the capture | Cancel payment |
| Return money for a captured payment | Refund payment |
| Get the result and the details of a payment | Get payment status |
pg_auto_clearing = 1): the amount is captured at authorization. To return the money, call Refund payment.pg_auto_clearing = 0): the amount is only blocked at authorization. Then capture it with Capture payment (clearing) or release it with Cancel payment. After the capture, the money is returned with Refund payment.pg_auto_clearing is not passed, the scheme from the merchant settings is used.pg_payment_method. The CVC is not needed.pg_payment_status in Get payment status.| Status | Meaning |
|---|---|
new | The payment is created, the client has not paid yet (payment page). |
process | The payment is being processed, including 3DS authentication. |
success | The payment is authorized. A cancelled or refunded payment keeps this status. |
error | The payment is declined: see pg_error_code. |
| Label | Meaning |
|---|---|
| authorized | The payment is approved in response to Pay by card or Pay by recurring profile. |
| 3DS | The client must pass 3DS authentication, then Pay by card: complete 3DS is called. |
| payment page | The payment is created by Create payment page and waits for the client. |
| declined | The payment is declined. |
success after authorization with pg_captured = 0; the capture sets pg_captured = 1.pg_captured, pg_refund_amount and the lists of operations.