Pricing Page Configs

Pricing Page Configuration Options

Available Configs

email

Type

Required

Description

String

No

The customer's email address. Pass this in so customers do not need to enter in their email on signup.

{
email: "example@google.com"
}

customer_id

Type

Required

Description

String

No

The customer's Stripe Customer ID. Pass this in to checkout an existing customer. You must have already created the Stripe Customer object to use this.

{
customer_id: "cus_FtWXI6U0YxebLd"
}

handleResponse

Type

Required

Description

Function

No

Function that is called when users signup, change plan (upgrade/downgrade), resubscribe, or update Credit Card. Used to update user data, do redirects, or provide notifications. Payload contains an event name and a response object. Learn More.

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