Create a payment method session
Create a new payment method session.
Authorizations
API Key authentication. Use "Bearer YOUR_API_KEY".
Body
The ID of the customer the payment method session is for.
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 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.
The URL to return to after the session is complete.
Whether to send an email to the customer with a link to the payment method session.
The ID of the subscription to associate the payment method with.
Response
Returns the payment method 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_method_session The customer the payment method session is for.
The payment method created or selected during the session.
The payment method types allowed for this session.
autogiro, bacs_debit, card, card_present, bank_transfer, direct_transfer, gbp_credit_transfer, pay_by_bank, sepa_debit The URL to return to after the session is complete.
The current status of the payment method session.
requires_payment_method, succeeded The subscription associated with the payment method session, if any.
The hosted URL of the payment method 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 method 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.