1. Payments
Freedom Pay
  • Overview
  • Gateway API
    • Overview
    • Sync API
      • Overview
      • Card data encryption
      • Payments
        • Overview
        • Pay by card
          POST
        • Pay by card: complete 3DS
          POST
        • Pay with Apple Pay
          POST
        • Pay with Google Pay
          POST
        • Pay by recurring profile
          POST
        • Create payment page
          POST
        • Create payment page with any amount
          POST
        • Capture payment (clearing)
          POST
        • Cancel payment
          POST
        • Refund payment
          POST
        • Get payment status
          POST
      • 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
      • Create payment with a payment page template
      • Create payment in a payment frame
      • Create payment with any amount
      • Create recurring payment
      • Capture payment (clearing)
      • Cancel payment
      • Refund payment
      • Get payment status
    • 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

Card payments: by card details on your side, with Apple Pay or Google Pay, by a saved card or a recurring profile, or on the Freedom Pay payment page.
Sign every request with the secret key: see Sync API Overview.

Methods#

TaskMethod
Accept a payment with card data on your sidePay by card; if 3DS is required, then Pay by card: complete 3DS
Accept a payment with Apple Pay or Google PayPay with Apple Pay, Pay with Google Pay
Charge a card saved by the client earlierPay by card token: see «Saved cards»
Charge a card saved in a recurring profilePay by recurring profile
Redirect the client to the Freedom Pay payment pageCreate payment page, or Create payment page with any amount if the client enters the amount
Capture a two-step paymentCapture payment (clearing)
Release a two-step payment before the captureCancel payment
Return money for a captured paymentRefund payment
Get the result and the details of a paymentGet payment status

One-step and two-step payments#

One-step payment (pg_auto_clearing = 1): the amount is captured at authorization. To return the money, call Refund payment.
Two-step 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.
If pg_auto_clearing is not passed, the scheme from the merchant settings is used.

Apple Pay and Google Pay#

The client confirms the payment in Apple Pay or Google Pay; the merchant receives the encrypted payment data and decrypts it.
Pass the card number, the expiry date, the cryptogram and the ECI from the decrypted data, and set pg_payment_method. The CVC is not needed.
If 3DS authentication is required, complete the payment as for a card payment: see «3DS authentication» in Pay by card.
Test cards do not work for Apple Pay and Google Pay.

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 (payment page).
processThe payment is being processed, including 3DS authentication.
successThe payment is authorized. A cancelled or refunded payment keeps this status.
errorThe payment is declined: see pg_error_code.
LabelMeaning
authorizedThe payment is approved in response to Pay by card or Pay by recurring profile.
3DSThe client must pass 3DS authentication, then Pay by card: complete 3DS is called.
payment pageThe payment is created by Create payment page and waits for the client.
declinedThe payment is declined.
A two-step payment keeps success after authorization with pg_captured = 0; the capture sets pg_captured = 1.
A cancel or a refund is not shown in the status: see pg_captured, pg_refund_amount and the lists of operations.
Previous
Card data encryption
Next
Pay by card