Stripe integration sends email before payment is completed

Hello,

I am currently using Balbooa Forms together with Stripe to sell a digital product (PDF download) on my Joomla website.

The form is set up as follows:

Submit button is configured with Stripe as the payment gateway
A product (radio button) is added and correctly displayed in the cart
Stripe API keys (test mode) are configured correctly
A return URL is set and working

The issue I am facing:

When the user clicks the submit button, the form is submitted and the customer email notification is sent immediately — before the Stripe payment is completed.

This means:

Even if the user cancels the payment on Stripe,
they still receive the email (which would contain the download link)

This makes it impossible to securely deliver a paid digital product.

My expectation:
The email notification (especially the customer email) should only be sent after a successful Stripe payment, not immediately on form submission.

My questions:

Is there a way to trigger the email only after a successful payment?
Is there a setting or workflow to distinguish between successful payments and cancelled payments?
Is there support for different return URLs (success / cancel)?

Thank you very much for your help.

Best regards
Benjamin

Replies are visible only to logged in members with an active subscription.