Checkout Session

Checkout session for processing payments

  • Unique identifier for the checkout session

  • Opaque client-side capability for continuing this custom Checkout Session through a supported Paypercut client SDK. In a JavaScript integration, pass it to paypercut.confirmPayment().

    Return it only to the untrusted client instance and customer that own the payment attempt. Do not parse it, log it, embed it in UI markup, place it in a URL or analytics, persist it in client-side storage, or expose it to another customer or payment attempt. This value is not a secret API key and does not authorize server-side API operations.

  • Three-letter ISO currency code

    Properties: 2
  • A free-form reference that describes the checkout.

  • The mode of the Checkout Session.

    values
    • payment

      Standard one-time payment.

    • setup

      Set up a payment method for future use.

    • subscription

      Create a subscription checkout that collects the first payment and stores a reusable payment method for renewal billing.

  • The UI mode of the Session.

  • Total of all items after discounts and taxes are applied.

  • Subtotal of all items before shipping, discounts, and taxes are applied.

  • Properties: 3
  • Shipping options available for the Checkout Session.

    Properties: 1
  • Properties: 5
  • URL where the customer can complete the payment.

  • URL customers can return to if they cancel payment.

  • URL customers are sent to when payment or setup is complete.

  • URL customers return to after redirect-based authentication.

  • Payment method types this Checkout Session can accept.

  • Submit button text behavior used for Checkout Sessions in payment mode.

    values
    autobookdonatepaysubscribe
  • Properties: 2
  • A free-form reference from the merchant's system.

  • An identifier of the customer in the merchant's system.

  • Expiry time for the checkout.

  • Details about the products sold or services provided.

    Properties: 4
  • Properties: 3
  • Payment-method-specific options captured for this Checkout Session.

    Properties: 1
  • 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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to metadata.

    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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to metadata.

  • After completion behavior for the Checkout Session.

    Properties: 3
  • The IETF language tag of the locale Checkout is displayed in.

  • Customer associated with the Checkout Session, if one exists.

    • Customer associated with the Checkout Session, if one exists.

  • Email address associated with the Checkout Session.

  • Customer creation behavior used during Session confirmation.

  • The PaymentIntent for Checkout Sessions in payment mode. It may be returned as an ID unless expanded.

    • The PaymentIntent for Checkout Sessions in payment mode. It may be returned as an ID unless expanded.

  • The SetupIntent for Checkout Sessions in setup mode.

    • The SetupIntent for Checkout Sessions in setup mode.

  • The Subscription for Checkout Sessions in subscription mode. It may be returned as an ID unless expanded.

    • Subscription ID.

  • The Payment Link that created this Session, if applicable.

    • The Payment Link that created this Session, if applicable.

  • The payment status of the Checkout Session, one of paid, unpaid, or no_payment_required.

    values
    no_payment_requiredprocessingpaidunpaid
  • The status of the Checkout Session.

  • Properties: 3
  • Has the value true if the object exists in live mode or the value false if the object exists in test mode.

  • Specify whether Checkout should collect the customer's billing address. Defaults to auto.

    values
    • auto

      Checkout will only collect the billing address when necessary.

    • required

      Checkout will always collect the customer's billing address.