Make payment optional

Created on 23 April 2016, about 8 years ago
Updated 16 January 2024, 5 months ago

It would be wonderful if there was a way to make the payment optional, ideally leveraging the built-in Webform conditionals functionality.

Or, we could add a configurable option to add a "Submit without payment" button, which admins could enable. Then they could change the label to something like, "Pay by check" and when this button is clicked, no Stripe Checkout modal would appear, but the form would simply submit.

Though, the first idea is better if we can pull it off.

✨ Feature request
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States joelstein

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States laryn

    I'm working on something similar for the Stripe module for Backdrop CMS (which has incorporated this module's functionality into it). The direction I'm going is that if there is a zero/empty value for the payment amount, then it skips the credit card popup and just submits the webform normally. (This zero value could be provided by one option in a selection, the results of custom processing in the provided hook, etc. and makes an optional "pay what you can/want" functionality possible.)

    I have a PR that is working in early testing on Backdrop. @joelstein, if you are interested I can probably submit a substantially similar patch here. Take a look and let me know if you think it's a good direction:

    - https://github.com/backdrop-contrib/stripe/pull/30/files

Production build 0.69.0 2024