1. Payments
Freedom Pay
  • Overview
  • Gateway API
    • Overview
    • Sync API
      • Overview
      • Card data encryption
      • Payments
        • Overview
        • Pay by card
        • Pay by card: complete 3DS
        • Pay with Apple Pay
        • Pay with Google Pay
        • Pay by recurring profile
        • Create payment page
        • Create payment page with any amount
        • Capture payment (clearing)
        • Cancel payment
        • Refund payment
        • Get payment status
      • Payouts
        • Overview
        • Pay out to card
        • Pay out to IBAN
        • Get payout balance
        • Get payout status
      • Transfers
        • Overview
        • Transfer from card to card
        • Transfer from card to card: complete 3DS
        • Get exchange rates
        • Get transfer status
      • Saved cards
        • Overview
        • Save card
        • Save card: complete 3DS
        • List saved cards
        • Remove saved card
        • Pay by card token
        • Pay out to card token
        • Get payment status
    • Async API
      • Overview
      • Create
        • Create payment
        • Save card without a charge
      • Read
        • Get payment status
        • Get request result
      • Edit
        • Capture payment (clearing)
        • Cancel payment (reverse)
        • Refund payment
  • Merchant API
    • Overview
    • Payments
      • Overview
      • Checkout
      • Pay by saved card
        • Overview
        • Create payment
        • Confirm payment with CVC
        • Confirm payment without the client
      • Create payment
        POST
      • Create payment with a payment page template
        POST
      • Create payment in a payment frame
        POST
      • Create payment with any amount
        POST
      • Create recurring payment
        POST
      • Capture payment (clearing)
        POST
      • Cancel payment
        POST
      • Refund payment
        POST
      • Get payment status
        POST
    • Payouts
      • Overview
      • Create payout page
      • Pay out to saved card
      • Pay out to IBAN
      • Get payout status
      • Get payout balance
    • Saved cards
      • Get saved cards
      • Save card
      • Save card for payouts
      • Delete saved card
      • Save card without a charge
    • Mobile balance
      • Overview
      • Create mobile balance payment
      • Charge mobile balance
      • Get mobile balance payment status
      • Confirm payment with SMS code
      • Resend SMS code
    • Invoices
      • Overview
      • Recurring payments
        • Overview
        • Create recurring profile
        • Get recurring profile
        • Charge by recurring profile
        • Cancel recurring profile
        • Recurring profile notification
      • Tips
        • Overview
        • Create
      • Create invoice
      • Get invoice status
      • Get invoice details
      • Cancel invoice
      • Refund invoice
    • SDK
      • JS SDK
      • Merchant SDK
        • Android
        • iOS
        • Migration guide
    • CMS
      • Overview
      • Get Merchant ID and key
      • WordPress
        • Overview
        • Installation
        • Configuration
        • Test
        • Live payments
        • Update
      • Tilda
        • Overview
        • Installation
        • Configuration
        • Test
        • Live payments
      • InSales
        • Overview
        • Installation
        • Configuration
        • Test
        • Live payments
      • Ecwid
        • Overview
        • Installation
        • Configuration
        • Test
        • Live payments
      • Bitrix
        • Overview
        • Installation
        • Configuration
        • Test
        • Live payments
      • PrestaShop
        • Overview
        • Installation
        • Configuration
        • Test
        • Live payments
      • OpenCart
        • Overview
        • Installation
        • Configuration
        • Test
        • Live payments
      • CS-Cart
        • Overview
        • Installation
        • Configuration
        • Test
        • Live payments
    • Installment
      • Overview
      • Status
        • Get application status
        • Application status notification
        • Change application status
      • Get partners
      • Create application
    • Callbacks
      • Overview
      • Result notify
      • Check request
      • Payout notify
      • Redirect back
  • Partner API
    • Overview
    • Rates
      • Overview
      • Rates
    • Products
      • Overview
      • Dictionaries
      • Add client with product
      • Client request status
      • Create terminal
      • Update terminal limits
      • Product request status
    • E-Money
      • Overview
      • Add
      • Owner identification
      • Info
      • Close
      • Block
      • Balance
      • Statement
      • Request Status
    • Device ID
      • Android SDK
      • iOS SDK
    • Implement SuperApp
      • Overview
      • Pay
      • Refund
      • Status
    • Account
      • Overview
      • Create payment
      • Payment status
      • Batch statuses
      • Statement
      • Statement status
      • Balance
      • Balance status
    • Invoices
      • Info
  1. Payments

Overview

Payment methods accept payments from clients: on the Freedom Pay payment page, in a frame or a widget on your site, or without the client by a saved card or a recurring profile.
Signature, hosts, request and response formats, test cards: see Merchant API Overview.

Payment flow#

The main scenario: the client pays on the Freedom Pay payment page.

Which method to use#

TaskMethod
Open the payment page in a pop-up window over your siteCheckout
Charge a saved card, with the CVC or without the clientPay by saved card
Accept a payment on the Freedom Pay payment pageCreate payment
Accept a payment on a page made by your templateCreate payment with a payment page template
Show the payment form in a frame on your pageCreate payment in a payment frame
Let the client enter the amount, for example a donationCreate payment with any amount
Charge a card regularly by a recurring profileCreate recurring payment
Capture a two-step paymentCapture payment (clearing)
Cancel a payment in fullCancel payment
Return all or part of the moneyRefund payment
Get the state of a paymentGet payment status

One-step and two-step payments#

The scheme is set by pg_auto_clearing in Create payment; if it is not passed, the value from the merchant settings is used.
pg_auto_clearingSchemeWhat happens
1One-stepThe amount is captured right after authorization.
0Two-stepThe 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.

After the payment#

PaymentWhat you can do
Two-step, not captured yetCapture 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.

Payment statuses#

Statuses are the values of pg_payment_status in Get payment status.
StatusMeaning
newThe payment is created, the client has not paid yet.
waitingThe payment waits for the client.
processThe payment is being processed, including 3DS authentication.
successThe payment is authorized. A cancelled or refunded payment keeps this status.
errorThe payment is declined.
success and error are final. The result of the payment also comes to pg_result_url: see Result notify.
Previous
Overview
Next
Checkout