Type Alias CheckoutSessionRequest

CheckoutSessionRequest: {
    crypto?: boolean;
    email?: string;
    failUrl?: string;
    firstName?: string;
    lastName?: string;
    metadata?: CheckoutSessionMetadata;
    parameters?: CheckoutSessionParameters;
    price?: string;
    productId: number;
    successUrl?: string;
    userAddress: UserAddress;
}

Type declaration

  • Optionalcrypto?: boolean

    Instead of using a fiat PSP, use crypto for payments

  • Optionalemail?: string

    Email address of the user making the purchase

  • OptionalfailUrl?: string

    URL where to redirect users to after a failed purchase

  • OptionalfirstName?: string

    First name of the buyer

  • OptionallastName?: string

    Last name of the buyer

  • Optionalmetadata?: CheckoutSessionMetadata

    Extra parameters given back as-is

  • Optionalparameters?: CheckoutSessionParameters

    Parameters required for the smart-contract call

  • Optionalprice?: string

    An optional price overriding the product one, only for this transaction, that can only be specified when using the secret key.

    A positive integer representing how much to charge in the smallest currency.
    For example:

    • $12.34 would be 1234
    • 12.34 USDC (6 decimals) would be 12340000
    • ETH amounts (18 decimals) would be stored in wei
  • productId: number

    ID of a previously created product

  • OptionalsuccessUrl?: string

    URL where to redirect users to after a successful purchase

  • userAddress: UserAddress

    Wallet which would receive the purchased NFT