Custom Payment amount entered on form

Created on 29 February 2024, 4 months ago
Updated 20 March 2024, 3 months ago

Problem/Motivation

On Custom Payments, the amount is a required field webform element build. I have a use case where clients are paying invoices mailed to them. In addition to their payment info, they need to enter a custom amount to be charged. Is this possible?

πŸ’¬ Support request
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States boinkster

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

Comments & Activities

  • Issue created by @boinkster
  • πŸ‡ΈπŸ‡ΎSyria hodba Dubai

    If I understood it correctly, you are emailing the invoices to clients with a link and you want to set the amount automatically when they press the link.
    If this is the case, you can use the prepopulated value of the amount in the link which is related to the webform module. What you need to do in this case is:
    - Activate the prepopulate option in the webform configurations
    - Construct the link to include the prepopulated value
    - The only requirement is to have the prepopulated filed in a webform page and the Stripe field in one the following pages (not in the same page)

    By doing this, it should be working fine.

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

    Is it possible to populate the amount with a token from another form element?
    - the user enters an amount in a number field
    - a computed field adds a 3% markup
    - this value is passed to the Stripe amount to make the charge

Production build 0.69.0 2024