| Task | Method |
|---|---|
| Open the payment page in a pop-up window over your site | Checkout |
| Charge a saved card, with the CVC or without the client | Pay by saved card |
| Accept a payment on the Freedom Pay payment page | Create payment |
| Accept a payment on a page made by your template | Create payment with a payment page template |
| Show the payment form in a frame on your page | Create payment in a payment frame |
| Let the client enter the amount, for example a donation | Create payment with any amount |
| Charge a card regularly by a recurring profile | Create recurring payment |
| Capture a two-step payment | Capture payment (clearing) |
| Cancel a payment in full | Cancel payment |
| Return all or part of the money | Refund payment |
| Get the state of a payment | Get payment status |
pg_auto_clearing in Create payment; if it is not passed, the value from the merchant settings is used.pg_auto_clearing | Scheme | What happens |
|---|---|---|
1 | One-step | The amount is captured right after authorization. |
0 | Two-step | The amount is blocked on the card. Capture it with Capture payment (clearing) or release it with Cancel payment. If neither is requested within 5 days (the period can be changed for the merchant), the payment is captured or cancelled automatically, depending on the merchant settings. |
| Payment | What you can do |
|---|---|
| Two-step, not captured yet | Capture all or part of the amount, or cancel it: the blocked amount is released. |
| Captured (one-step, or two-step after clearing) | Refund all or part of the amount with Refund payment, or refund it in full with Cancel payment. |
pg_payment_status in Get payment status.| Status | Meaning |
|---|---|
new | The payment is created, the client has not paid yet. |
waiting | The payment waits for the client. |
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. |
success and error are final. The result of the payment also comes to pg_result_url: see Result notify.