zesty.io

Product

Use Cases

Integrations

Learn

Stripe Checkout Integration

Integrate Stripe and Zesty.io to easily collect fees or donations.

Stripe Checkout makes collecting a fee or donation easier than ever.

First, make sure you set up your API Keys in the Stripe Settings.

Once you've set up your API keys, you can add the necessary code.

You should see a button that looks like this:

Stripe Button Example

When clicked it will bring a modal that looks like this:

Stripe Checkout Modal Example

Note: Zesty will automatically use your test Stripe API key if you are on the development preview URL (the one that looks like abcdef-dev.preview.zestyio.com).

After the card details are submitted the user will be redirected to the URL you specify in the success_redirect value (if successful), or to the failure_redirect URL if unsuccessful.

Example #2: Variable Amount Donation Form

Example #3: Subscribe to a Recurring Stripe Plan

Note that the endpoint for the form action is slightly different (/-api/stripe/subscribe).

Example #4: Subscribe to a Plan with a Custom Amount

This is a workaround for Stripe having set plan prices. If you submit a new subscription (via Zesty) with a interval of month and a price of 999. It will check if a plan monthly-9.99 exsits. If it doesn't, it will create it. Either way, it will create a new subscription to that plan. See the below the code example below. Note: the endpoint for this is also slightly different (/-api/stripe/subscribe-custom).

Connect with Content Experts

Book a free 15-minute consultation with a content expert. Discuss your application, pain points and requirements. Understand how Zesty's lower total cost of ownership, features, functionality can elevate your business by creating extraordinary digital experiences.

Trusted By

zesty customer logo Sonyzesty customer logo Rocket Leaguezesty customer logo Singlifezesty customer logo Acornszesty customer logo Phoenix Sunszesty customer logo Wattpadzesty customer logo Corner Shopzesty customer logo Bjs

Enter your details to connect with a Content Expert

First Name

Last Name

Email

Phone (optional)

Company

Please tell us about your project (optional)

G2 MOMENTUM LEADER

zesty customer logo zesty customer logo zesty customer logo zesty customer logo