Checkout Form Configs

Checkout Form Configuration Options

Required Configs

email

{
    email: "example@google.com"
}

customer_id

{
        customer_id: "cus_FtWXI6U0YxebLd"
}

hash

{
    hash: "0709c7f107ed6326aaeaa3810330834870591f3924943e7bce66a826ac532045"
}

Available Configs

theme.stripeElement

{
   "billing_page_id":"YOUR_BILLING_PAGE_ID",
   ...
   ...
   "theme":{
      "stripeElement":{
         "style":{
            "base":{
               "fontSize":"14px",
               "lineHeight":"40px",
               "color":"white",
               "fontFamily":"-apple-system",
               "borderRadius":"4px",
               "::placeholder":{
                  "color":"white"
               }
            }
         }
      }
   }
}

handleResponse

{
    handleResponse: async function(payload) {
      console.log("Event ", payload.event);
      console.log("Response Object ", payload.response);
    }
}

coupon

{
    coupon: "coupon_id"
}

service

{
    service: "Your Service"
}

tier

{
    tier: "Basic"
}

interval

{
    interval: "month"
}

interval_count

{
    interval_count: 6
}

Options

options.metadata

{
    options: {
        metadata: {
            key1: "Value 1",
            key2: "Value 2"
        }
    }
}

options.default_tax_rates

{
    options: {
        default_tax_rates: [
            "txr_1HZfxhEGJvDU3rtbcukgdicw"
        ]
    }
}

options.quantity

{
  options: {
      quantity: {
        super_user: 3,
        user: 5,
      },
  }
}

Last updated