Initiate a transaction

Creates a payment session and returns the URL of the hosted payment page to redirect the customer to. This page describes the request and response after the change below.

🚧

Change to the responses of /payment/init, /payment/applepay_init and /payment/googlepay_init

We will inform you before this change applies to your account.

After the change:

  • The responses to your requests to /payment/init, /payment/applepay_init and /payment/googlepay_init no longer contain transactionid. They contain orderid instead.
  • Always send orderid. Until a transaction exists, it is your reference for the payment. If you do not send it, it is returned empty.
  • The INIT step is no longer recorded. It no longer appears in the transaction history in p.one or in extracts. A transaction is first created when the customer submits the payment, so a customer who opens the payment page but does not pay leaves no transaction. This also applies to Apple Pay and Google Pay.

If you read transactionid from these responses, or rely on INIT entries in p.one or extracts (for example to count steps or track opened payment pages), update that logic before the change.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Form Data
string
required
^[a-zA-Z0-9\-_]{1,40}$
Defaults to gateway_test

The merchant identification number issued during account creation. Letters, digits, - and _, max. 40 characters.

string
required
^\d{1,8}(\.\d{1,3})?$
Defaults to 8.23

The transaction's total amount. Digits with up to 3 decimal places, using . as separator (e.g. 8, 8.50, 8.125).

string
required
^[a-zA-Z]{3}$
Defaults to EUR

Alpha-3 currency code according to ISO 4217, e.g. EUR, USD, GBP.

string
required
^[a-fA-F0-9]{40}$
Defaults to ddf0659438b91981376169d8a77fd80f39fbfd08

40-character hexadecimal checksum that protects your account from unauthorized access. See Signature Calculation.

string
length ≤ 40
Defaults to API-Iframe-Test1

Your order reference, max. 40 characters. Strongly recommended: until a transaction exists, it is your reference for the payment. Used for CE3.0.

string
^\d{1,5}$

Payment method ID to preselect, e.g. 1 = Credit Card. If enabled for your account, the customer skips the payment method selection. See payment method IDs.

string
^[a-zA-Z]{2}$
Defaults to en

Language of the payment page, ISO 639-1 alpha-2 (e.g. en, de). If the language is not enabled for your account, your default language is used.

string
Defaults to https://payabl.com/results

URL the customer is redirected to after the payment. If omitted, the URL configured for your account is used. Must start with http:// or https://, max. 500 characters after the scheme.

string

URL the customer is redirected to after a successful payment. If omitted, the URL configured for your account is used. Must start with http:// or https://, max. 500 characters after the scheme.

string

URL the customer is redirected to after a failed payment. If omitted, the URL configured for your account is used. Must start with http:// or https://, max. 500 characters after the scheme.

string

URL the customer is redirected to after cancelling the payment. If omitted, the URL configured for your account is used. Must start with http:// or https://, max. 500 characters after the scheme.

string

Overrides the notification URL configured for your account. Must start with http:// or https://, max. 500 characters after the scheme.

string

URL of your shop. Must start with http:// or https://, max. 254 characters after the scheme.

string
length ≤ 40

Name of your shop, max. 40 characters.

string
^\d{3}$

Numeric country code, ISO 3166-1 numeric (3 digits, e.g. 276 for Germany).

string

Only needed for recurring transactions. The first transaction needs to be classified with INIT. In that transaction the cvc_code is mandatory.

string
enum

Credential-on-file initiator: cit (customer-initiated) or mit (merchant-initiated).

Allowed:
string
length ≤ 255

SEPA Direct Debit mandate reference, max. 255 characters. If omitted, orderid is used.

Allowed:
string
length ≤ 10

Salutation, max. 10 characters, e.g. Mr., Mrs.

string
length ≤ 20

Title, max. 20 characters, e.g. Dr., Prof.

string
enum

M – male, F – female.

Allowed:
string
Defaults to George

First name of the customer. Mandatory for Credit Cards, Apple Pay and Google Pay.

string
Defaults to Giraffe

Last name of the customer. Mandatory for Credit Cards, Apple Pay and Google Pay.

string
^\d{8}$

Date of birth, format ddmmyyyy. Mandatory for AFT.

string

Street. Mandatory for AFT.

string
length ≤ 10

House number, max. 10 characters.

string
length ≤ 20

Post office box, max. 20 characters.

string

Postal code. Mandatory for AFT.

string

City. Mandatory for AFT.

string
length ≤ 30

State/province (USA and Canada only), max. 30 characters.

string

Country, ISO 3166 alpha-3. Mandatory for AFT.

string
length ≤ 50
Defaults to [email protected]

Customer email address, max. 50 characters.

string

Phone number.

string
length ≤ 20

Fax number, max. 20 characters.

string
length ≤ 20

Mobile number, max. 20 characters.

string
length ≤ 40

Company, max. 40 characters.

string
length ≤ 64

Customer ID in your shop system, max. 64 characters.

string
Defaults to 192.168.2.2

Customer IP address (IPv4 or IPv6).

string
length ≤ 150

Billing first name, max. 150 characters.

string
length ≤ 150

Billing last name, max. 150 characters.

string
length ≤ 300

Billing address line 1, max. 300 characters.

string
length ≤ 300

Billing address line 2, max. 300 characters.

string
length ≤ 120

Billing city, max. 120 characters.

string
length ≤ 300

Billing state, max. 300 characters.

string
length ≤ 60

Billing postal code, max. 60 characters.

string
^([A-Z]{2,3}|C2)$

Billing country code, ISO 3166 alpha-2 or alpha-3 (uppercase).

string

Custom field for your own use.

string

Custom field for your own use.

string

Custom field for your own use.

string

3 characters. ISO 3166-1 Numeric Country code. Used for CE3.0.

string

max 3 characters, ISO 3166-2. Used for CE3.0. (Canada, USA)

string

max 50 characters. Used for CE3.0.

string

max 50 characters. Used for CE3.0.

string

max 50 characters. Used for CE3.0.

string

max 50 characters. Used for CE3.0.

string

max 16 characters. Used for CE3.0.

string

max 64 characters. Used for CE3.0. User’s device.

Response

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/x-www-form-urlencoded