A Flow payment session contains the information required to display relevant payment methods and handle the payment flow.
To enable access to Flow, contact your solutions engineer or request support.
Creates a payment session.
The values you provide in the request will be used to determine the payment methods available to Flow. Some payment methods may require you to provide specific values for certain fields. Refer to our documentation for more information.
You must supply the unmodified response body when you initialize Flow.
| amount required | integer >= 0 The payment amount. Provide a value of The amount must be provided in the minor currency unit. |
| currency required | string = 3 characters The three-letter ISO currency code. |
required | object The billing details. |
| success_url required | string <uri> <= 1024 characters Overrides the default success redirect URL configured on your account, for payment methods that require a redirect. |
| failure_url required | string <uri> <= 1024 characters Overrides the default failure redirect URL configured on your account, for payment methods that require a redirect. |
| payment_type | string Default: "Regular" Must be specified for card-not-present (CNP) payments. For example, a recurring mail order / telephone order (MOTO) payment. |
object A description of the purchase, which is displayed on the customer's statement. | |
| reference | string <= 50 characters A reference you can use to identify the payment. For example, an order number.
|
| description | string <= 100 characters A description for the payment. |
object The customer's details. Required if | |
object The shipping details | |
object Information about the recipient of the payment's funds. Applies to Account Funding Transactions, and VISA or Mastercard domestic UK transactions processed by financial institutions. | |
object Use the processing object to influence or override the data sent during card processing | |
object Details about the payment instruction. | |
| processing_channel_id | string^(pc)_(\w{26})$ The processing channel to use for the payment. |
Array of objects [ 1 .. 1000 ] items The line items in the order. | |
Array of objects [ 1 .. 50 ] items The sub-entities that the payment is being processed on behalf of. | |
object Configures the risk assessment performed during payment processing. | |
| display_name | string <= 255 characters The merchant's display name. |
| metadata | object <= 18 properties Allows you to store additional information about a transaction with custom fields and up to five user-defined fields, which can be used for reporting purposes. You can supply fields of type You can provide up to 18 metadata fields per API call, but the value of each field must not exceed 255 characters in length. You can also reference |
| locale | string Default: "en-GB" Creates a translated version of the page in the specified language. |
Integrated authentication (object) or Third party authentication (object) Information required for 3D Secure authentication payments. | |
object The sender of the payment. | |
| capture | boolean Default: true Specifies whether to capture the payment, if applicable. |
| capture_on | string <date-time> A timestamp specifying when to capture the payment, as an ISO 8601 code. If a value is provided, |
| expires_on | string <date-time> A timestamp specifying when the |
| enabled_payment_methods | Array of strings Specifies which payment method options to present to the customer. The values in this field override any equivalent values in |
| disabled_payment_methods | Array of strings Specifies which payment method options to not present to the customer. If you specify the same payment method in this field and in Any payment method options not explicitly specified in this field will be presented to the customer by default. |
object Configurations for payment method-specific settings. | |
object Configuration for asynchronous retries. | |
| ip_address | string <ipv4> <= 45 characters Deprecated The Customers IP address. Only IPv4 and IPv6 addresses are accepted. |
A Payment Session.
Unauthorized (Empty Response).
Invalid data was sent.
Too many requests.
Bad gateway.
{- "amount": 1000,
- "currency": "USD",
- "payment_type": "Regular",
- "billing": {
- "address": {
- "address_line1": "123 High St.",
- "address_line2": "Flat 456",
- "city": "London",
- "state": "str",
- "zip": "SW1A 1AA",
- "country": "GB"
}, - "phone": {
- "country_code": "+1",
- "number": "415 555 2671"
}
}, - "billing_descriptor": {
- "name": "string",
- "city": "string",
- "reference": "string"
}, - "reference": "ORD-123A",
- "description": "Payment for gold necklace",
- "customer": {
- "email": "jia.tsang@example.com",
- "name": "Jia Tsang",
- "id": "string",
- "phone": {
- "country_code": "+1",
- "number": "415 555 2671"
}, - "tax_number": "string",
- "summary": {
- "registration_date": "2023-05-01",
- "first_transaction_date": "2023-07-01",
- "last_payment_date": "2023-08-01",
- "total_order_count": 15,
- "last_payment_amount": 500,
- "is_premium_customer": true,
- "is_returning_customer": true,
- "lifetime_value": 500
}
}, - "shipping": {
- "address": {
- "address_line1": "123 High St.",
- "address_line2": "Flat 456",
- "city": "London",
- "state": "str",
- "zip": "SW1A 1AA",
- "country": "GB"
}, - "phone": {
- "country_code": "+1",
- "number": "415 555 2671"
}
}, - "recipient": {
- "dob": "1985-05-15",
- "account_number": "5555554444",
- "address": {
- "address_line1": "123 High St.",
- "address_line2": "Flat 456",
- "city": "London",
- "state": "str",
- "zip": "SW1A 1AA",
- "country": "GB"
}, - "first_name": "Jia",
- "last_name": "Tsang"
}, - "processing": {
- "aft": true,
- "discount_amount": 0,
- "shipping_amount": 300,
- "tax_amount": 3000,
- "invoice_id": "string",
- "brand_name": "string",
- "locale": "en-US",
- "partner_customer_risk_data": {
- "key": "string",
- "value": "string"
}, - "custom_payment_method_ids": [
- "string"
], - "airline_data": [
- {
- "ticket": {
- "number": "045-21351455613",
- "issue_date": "2023-05-20",
- "issuing_carrier_code": "AI",
- "travel_package_indicator": "B",
- "travel_agency_name": "World Tours",
- "travel_agency_code": "01"
}, - "passenger": [
- {
- "first_name": "John",
- "last_name": "White",
- "date_of_birth": "1990-05-26",
- "address": {
- "country": "US"
}
}
], - "flight_leg_details": [
- {
- "flight_number": "101",
- "carrier_code": "BA",
- "class_of_travelling": "J",
- "departure_airport": "LHR",
- "departure_date": "2023-06-19",
- "departure_time": "15:30",
- "arrival_airport": "LAX",
- "stop_over_code": "x",
- "fare_basis_code": "SPRSVR"
}
]
}
], - "accommodation_data": [
- {
- "name": "The Sea View Hotel",
- "booking_reference": "HOTEL123",
- "check_in_date": "2023-06-20",
- "check_out_date": "2023-06-23",
- "address": {
- "address_line1": "123 Beach Road",
- "zip": "10001"
}, - "state": "FL",
- "country": "USA",
- "city": "Los Angeles",
- "number_of_rooms": 2,
- "guests": [
- {
- "first_name": "Jane",
- "last_name": "Doe",
- "date_of_birth": "1985-07-14"
}
], - "room": [
- {
- "rate": "70",
- "number_of_nights_at_room_rate": "3"
}
]
}
], - "order_id": "123456789",
- "surcharge_amount": 200,
- "duty_amount": 0,
- "shipping_tax_amount": 100,
- "affiliate_id": "string",
- "affiliate_url": "www.mycrypto.com",
- "purchase_country": "string",
- "merchant_initiated_reason": "Delayed_charge",
- "campaign_id": 0,
- "original_order_amount": 10,
- "receipt_id": "10",
- "merchant_callback_url": "string",
- "line_of_business": "Flights",
- "pan_preference": "fpan",
- "provision_network_token": true,
- "reconciliation_id": "4123495123",
- "aggregator": {
- "sub_merchant_id": "9cf70789ba90123",
- "aggregator_id_visa": "10012345",
- "aggregator_id_mc": "00000123456"
}
}, - "instruction": {
- "purpose": "donations"
}, - "processing_channel_id": "string",
- "items": [
- {
- "reference": "string",
- "commodity_code": "string",
- "unit_of_measure": "string",
- "total_amount": 1000,
- "tax_amount": 1000,
- "discount_amount": 1000,
- "url": "string",
- "image_url": "string",
- "name": "Gold Necklace",
- "quantity": 1,
- "unit_price": 1000
}
], - "amount_allocations": [
- {
- "id": "string",
- "amount": 1,
- "reference": "ORD-123A",
- "commission": {
- "amount": 10,
- "percentage": 12.5
}
}
], - "risk": {
- "enabled": false
}, - "display_name": "string",
- "metadata": {
- "coupon_code": "NY2018"
}, - "locale": "ar",
- "3ds": {
- "enabled": true,
- "challenge_indicator": "no_preference"
}, - "sender": {
- "type": "instrument",
- "reference": "8285282045818"
}, - "capture": true,
- "capture_on": "2024-01-01T09:15:30Z",
- "expires_on": "2024-01-01T09:15:30Z",
- "enabled_payment_methods": [
- "card",
- "applepay",
- "googlepay"
], - "disabled_payment_methods": [
- "eps",
- "ideal",
- "knet"
], - "payment_method_configuration": {
- "applepay": {
- "store_payment_details": "disabled",
- "account_holder": {
- "type": "individual"
}, - "total_type": "pending"
}, - "card": {
- "store_payment_details": "disabled",
- "account_holder": {
- "type": "individual"
}
}, - "googlepay": {
- "store_payment_details": "disabled",
- "account_holder": {
- "type": "individual"
}, - "total_price_status": "estimated"
}, - "stored_card": {
- "customer_id": "string",
- "instrument_ids": [
- "string"
], - "default_instrument_id": "string"
}
}, - "customer_retry": {
- "max_attempts": 2
}, - "ip_address": "90.197.169.245"
}{- "id": "ps_2Un6I6lRpIAiIEwQIyxWVnV9CqQ",
- "payment_session_token": "string",
- "payment_session_secret": "pss_9823241e-2cec-4c98-b23d-7b29ow4e2e34",
- "_links": {
}
}Submit a payment attempt for a payment session.
This request works with the Flow handleSubmit callback, where you can perform a customized payment submission.
You must send the unmodified response body as the response of the handleSubmit callback.
| session_data required | string A unique token representing the additional customer data captured by Flow, as received from the handleSubmit callback. Do not log or store this value. |
| amount | integer >= 0 The payment amount. Provide a value of The amount must be provided in the minor currency unit. |
| currency | string = 3 characters The three-letter ISO currency code. |
object The billing details. | |
| success_url | string <uri> <= 1024 characters Overrides the default success redirect URL configured on your account, for payment methods that require a redirect. |
| failure_url | string <uri> <= 1024 characters Overrides the default failure redirect URL configured on your account, for payment methods that require a redirect. |
| payment_type | string Default: "Regular" Must be specified for card-not-present (CNP) payments. For example, a recurring mail order / telephone order (MOTO) payment. |
object A description of the purchase, which is displayed on the customer's statement. | |
| reference | string <= 50 characters A reference you can use to identify the payment. For example, an order number.
|
object The customer's details. | |
object The shipping details | |
Array of objects [ 1 .. 1000 ] items The line items in the order. | |
Integrated authentication (object) or Third party authentication (object) Information required for 3D Secure authentication payments. | |
| ip_address | string <ipv4> <= 45 characters Deprecated The Customer's IP address. Only IPv4 and IPv6 addresses are accepted. |
object Configurations for payment method-specific settings. | |
object Information about the recipient of the payment's funds. Applies to Account Funding Transactions, and VISA or Mastercard domestic UK transactions processed by financial institutions. | |
object Details about the payment instruction. | |
| processing_channel_id | string^(pc)_(\w{26})$ The processing channel to use for the payment. |
| metadata | object <= 18 properties Allows you to store additional information about a transaction with custom fields and up to five user-defined fields, which can be used for reporting purposes. You can supply fields of type You can provide up to 18 metadata fields per API call, but the value of each field must not exceed 255 characters in length. You can also reference |
object The sender of the payment. | |
| capture | boolean Default: true Specifies whether to capture the payment, if applicable. |
| capture_on | string <date-time> A timestamp specifying when to capture the payment, as an ISO 8601 code. If a value is provided, |
Payment processed successfully.
Payment asynchronous or further action required.
Unauthorized (Empty Response).
Invalid data was sent.
Too many requests or duplicate request detected.
Bad gateway.
{- "session_data": "string",
- "amount": 1000,
- "currency": "USD",
- "billing": {
- "address": {
- "address_line1": "123 High St.",
- "address_line2": "Flat 456",
- "city": "London",
- "state": "str",
- "zip": "SW1A 1AA",
- "country": "GB"
}, - "phone": {
- "country_code": "+1",
- "number": "415 555 2671"
}
}, - "payment_type": "Regular",
- "billing_descriptor": {
- "name": "string",
- "city": "string",
- "reference": "string"
}, - "reference": "ORD-123A",
- "customer": {
- "email": "jia.tsang@example.com",
- "name": "Jia Tsang",
- "id": "string",
- "phone": {
- "country_code": "+1",
- "number": "415 555 2671"
}, - "tax_number": "string",
- "summary": {
- "registration_date": "2023-05-01",
- "first_transaction_date": "2023-07-01",
- "last_payment_date": "2023-08-01",
- "total_order_count": 15,
- "last_payment_amount": 500,
- "is_premium_customer": true,
- "is_returning_customer": true,
- "lifetime_value": 500
}
}, - "shipping": {
- "address": {
- "address_line1": "123 High St.",
- "address_line2": "Flat 456",
- "city": "London",
- "state": "str",
- "zip": "SW1A 1AA",
- "country": "GB"
}, - "phone": {
- "country_code": "+1",
- "number": "415 555 2671"
}
}, - "items": [
- {
- "reference": "string",
- "commodity_code": "string",
- "unit_of_measure": "string",
- "total_amount": 1000,
- "tax_amount": 1000,
- "discount_amount": 1000,
- "url": "string",
- "image_url": "string",
- "name": "Gold Necklace",
- "quantity": 1,
- "unit_price": 1000
}
], - "3ds": {
- "enabled": true,
- "challenge_indicator": "no_preference"
}, - "ip_address": "90.197.169.245",
- "payment_method_configuration": {
- "applepay": {
- "store_payment_details": "disabled"
}, - "card": {
- "store_payment_details": "disabled"
}, - "googlepay": {
- "store_payment_details": "disabled"
}
}, - "recipient": {
- "dob": "1985-05-15",
- "account_number": "5555554444",
- "address": {
- "address_line1": "123 High St.",
- "address_line2": "Flat 456",
- "city": "London",
- "state": "str",
- "zip": "SW1A 1AA",
- "country": "GB"
}, - "first_name": "Jia",
- "last_name": "Tsang"
}, - "instruction": {
- "purpose": "donations"
}, - "processing_channel_id": "string",
- "metadata": {
- "coupon_code": "NY2018"
}, - "sender": {
- "type": "instrument",
- "reference": "8285282045818"
}, - "capture": true,
- "capture_on": "2024-01-01T09:15:30Z"
}{- "id": "pay_mbabizu24mvu3mela5njyhpit4",
- "status": "Approved",
- "type": "alipay_cn"
}Create a payment session and submit a payment attempt for it.
The values you provide in the request will be used to determine the payment methods available to Flow. Some payment methods may require you to provide specific values for certain fields. Refer to our documentation for more information.
This request works with the advanced Flow integration, where you do not need to create a payment session for initializing Flow. You must send the unmodified response body as the response of the handleSubmit callback.
| session_data required | string A unique token representing the additional customer data captured by Flow, as received from the handleSubmit callback. Do not log or store this value. |
| amount required | integer >= 0 The payment amount. Provide a value of The amount must be provided in the minor currency unit. |
| currency required | string = 3 characters The three-letter ISO currency code. |
required | object The billing details. |
| success_url required | string <uri> <= 1024 characters Overrides the default success redirect URL configured on your account, for payment methods that require a redirect. |
| failure_url required | string <uri> <= 1024 characters Overrides the default failure redirect URL configured on your account, for payment methods that require a redirect. |
| payment_type | string Default: "Regular" Must be specified for card-not-present (CNP) payments. For example, a recurring mail order / telephone order (MOTO) payment. |
object A description of the purchase, which is displayed on the customer's statement. | |
| reference | string <= 50 characters A reference you can use to identify the payment. For example, an order number.
|
| description | string <= 100 characters A description for the payment. |
object The customer's details. Required if | |
object The shipping details | |
object Information about the recipient of the payment's funds. Applies to Account Funding Transactions, and VISA or Mastercard domestic UK transactions processed by financial institutions. | |
object Use the processing object to influence or override the data sent during card processing | |
object Details about the payment instruction. | |
| processing_channel_id | string^(pc)_(\w{26})$ The processing channel to use for the payment. |
Array of objects [ 1 .. 1000 ] items The line items in the order. | |
Array of objects [ 1 .. 50 ] items The sub-entities that the payment is being processed on behalf of. | |
object Configures the risk assessment performed during payment processing. | |
| display_name | string <= 255 characters The merchant's display name. |
| metadata | object <= 18 properties Allows you to store additional information about a transaction with custom fields and up to five user-defined fields, which can be used for reporting purposes. You can supply fields of type You can provide up to 18 metadata fields per API call, but the value of each field must not exceed 255 characters in length. You can also reference |
| locale | string Default: "en-GB" Creates a translated version of the page in the specified language. |
Integrated authentication (object) or Third party authentication (object) Information required for 3D Secure authentication payments. | |
object The sender of the payment. | |
| capture | boolean Default: true Specifies whether to capture the payment, if applicable. |
| capture_on | string <date-time> A timestamp specifying when to capture the payment, as an ISO 8601 code. If a value is provided, |
Payment processed successfully.
Payment asynchronous or further action required.
Unauthorized (Empty Response).
Invalid data was sent.
Too many requests or duplicate request detected.
Bad gateway.
{- "session_data": "string",
- "amount": 1000,
- "currency": "USD",
- "payment_type": "Regular",
- "billing": {
- "address": {
- "address_line1": "123 High St.",
- "address_line2": "Flat 456",
- "city": "London",
- "state": "str",
- "zip": "SW1A 1AA",
- "country": "GB"
}, - "phone": {
- "country_code": "+1",
- "number": "415 555 2671"
}
}, - "billing_descriptor": {
- "name": "string",
- "city": "string",
- "reference": "string"
}, - "reference": "ORD-123A",
- "description": "Payment for gold necklace",
- "customer": {
- "email": "jia.tsang@example.com",
- "name": "Jia Tsang",
- "id": "string",
- "phone": {
- "country_code": "+1",
- "number": "415 555 2671"
}, - "tax_number": "string",
- "summary": {
- "registration_date": "2023-05-01",
- "first_transaction_date": "2023-07-01",
- "last_payment_date": "2023-08-01",
- "total_order_count": 15,
- "last_payment_amount": 500,
- "is_premium_customer": true,
- "is_returning_customer": true,
- "lifetime_value": 500
}
}, - "shipping": {
- "address": {
- "address_line1": "123 High St.",
- "address_line2": "Flat 456",
- "city": "London",
- "state": "str",
- "zip": "SW1A 1AA",
- "country": "GB"
}, - "phone": {
- "country_code": "+1",
- "number": "415 555 2671"
}
}, - "recipient": {
- "dob": "1985-05-15",
- "account_number": "5555554444",
- "address": {
- "address_line1": "123 High St.",
- "address_line2": "Flat 456",
- "city": "London",
- "state": "str",
- "zip": "SW1A 1AA",
- "country": "GB"
}, - "first_name": "Jia",
- "last_name": "Tsang"
}, - "processing": {
- "aft": true,
- "discount_amount": 0,
- "shipping_amount": 300,
- "tax_amount": 3000,
- "invoice_id": "string",
- "brand_name": "string",
- "locale": "en-US",
- "partner_customer_risk_data": {
- "key": "string",
- "value": "string"
}, - "custom_payment_method_ids": [
- "string"
], - "airline_data": [
- {
- "ticket": {
- "number": "045-21351455613",
- "issue_date": "2023-05-20",
- "issuing_carrier_code": "AI",
- "travel_package_indicator": "B",
- "travel_agency_name": "World Tours",
- "travel_agency_code": "01"
}, - "passenger": [
- {
- "first_name": "John",
- "last_name": "White",
- "date_of_birth": "1990-05-26",
- "address": {
- "country": "US"
}
}
], - "flight_leg_details": [
- {
- "flight_number": "101",
- "carrier_code": "BA",
- "class_of_travelling": "J",
- "departure_airport": "LHR",
- "departure_date": "2023-06-19",
- "departure_time": "15:30",
- "arrival_airport": "LAX",
- "stop_over_code": "x",
- "fare_basis_code": "SPRSVR"
}
]
}
], - "accommodation_data": [
- {
- "name": "The Sea View Hotel",
- "booking_reference": "HOTEL123",
- "check_in_date": "2023-06-20",
- "check_out_date": "2023-06-23",
- "address": {
- "address_line1": "123 Beach Road",
- "zip": "10001"
}, - "state": "FL",
- "country": "USA",
- "city": "Los Angeles",
- "number_of_rooms": 2,
- "guests": [
- {
- "first_name": "Jane",
- "last_name": "Doe",
- "date_of_birth": "1985-07-14"
}
], - "room": [
- {
- "rate": "70",
- "number_of_nights_at_room_rate": "3"
}
]
}
], - "order_id": "123456789",
- "surcharge_amount": 200,
- "duty_amount": 0,
- "shipping_tax_amount": 100,
- "affiliate_id": "string",
- "affiliate_url": "www.mycrypto.com",
- "purchase_country": "string",
- "merchant_initiated_reason": "Delayed_charge",
- "campaign_id": 0,
- "original_order_amount": 10,
- "receipt_id": "10",
- "merchant_callback_url": "string",
- "line_of_business": "Flights",
- "pan_preference": "fpan",
- "provision_network_token": true,
- "reconciliation_id": "4123495123",
- "aggregator": {
- "sub_merchant_id": "9cf70789ba90123",
- "aggregator_id_visa": "10012345",
- "aggregator_id_mc": "00000123456"
}
}, - "instruction": {
- "purpose": "donations"
}, - "processing_channel_id": "string",
- "items": [
- {
- "reference": "string",
- "commodity_code": "string",
- "unit_of_measure": "string",
- "total_amount": 1000,
- "tax_amount": 1000,
- "discount_amount": 1000,
- "url": "string",
- "image_url": "string",
- "name": "Gold Necklace",
- "quantity": 1,
- "unit_price": 1000
}
], - "amount_allocations": [
- {
- "id": "string",
- "amount": 1,
- "reference": "ORD-123A",
- "commission": {
- "amount": 10,
- "percentage": 12.5
}
}
], - "risk": {
- "enabled": false
}, - "display_name": "string",
- "metadata": {
- "coupon_code": "NY2018"
}, - "locale": "ar",
- "3ds": {
- "enabled": true,
- "challenge_indicator": "no_preference"
}, - "sender": {
- "type": "instrument",
- "reference": "8285282045818"
}, - "capture": true,
- "capture_on": "2024-01-01T09:15:30Z"
}{- "id": "pay_mbabizu24mvu3mela5njyhpit4",
- "status": "Approved",
- "type": "alipay_cn",
- "payment_session_id": "ps_2Un6I6lRpIAiIEwQIyxWVnV9CqQ",
- "payment_session_secret": "pss_9823241e-2cec-4c98-b23d-7b29ow4e2e34"
}