Create a payment session
Creates a new payment session.
Authorizations
API Key authentication. Use "Bearer YOUR_API_KEY".
Body
The amount to charge. Should be a positive integer in the smallest currency unit (e.g. 100 for £1.00).
100 <= x <= 99999900Three-letter ISO currency code, in lowercase. Must be a supported currency.
gbp, eur, usd The ID of the customer the transaction is for.
The mode of the payment session.
payment The payment method types allowed for this session.
1autogiro, bacs_debit, card, card_present, bank_transfer, direct_transfer, gbp_credit_transfer, pay_by_bank, sepa_debit An arbitrary string attached to the object. Often useful for displaying to users.
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
Payment method configuration options.
The reporting type of the transaction.
advance_rent, charge, deposit, holding_fee, rent, null The URL to redirect the user to after the transaction is complete.
Send the URL to the customer email address.
The statement descriptor that will appear on customers bank statement.
A subset of parameters to be passed to transaction creation.
Response
Returns the payment session object if the request succeeded.
Unique identifier for the object.
Time at which the object was created. Measured in seconds since the Unix epoch.
payment_session The amount of the payment session, in the smallest currency unit.
Three-letter ISO currency code, in lowercase. Must be a supported currency.
The customer the payment session is for.
An arbitrary string attached to the object. Often useful for displaying to users.
The mode of the payment session.
payment The payment method types allowed for this session.
The reporting type used to categorize this payment session.
The URL to redirect to after the payment session is complete.
The status of the payment session.
paid, unpaid, canceled The transaction created for this payment session.
The hosted URL of the payment session.
The account that the object belongs to. Only returned if the request is made with a valid Yorlet-Context header.
Only returned if the object has been deleted.
Information about the merchant operating the payment session.
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.