• Resolved tinnic

    (@tinnic)


    Hi,
    We implemented a simple Stripe payment form to collect payments for a 10 week after school program. We are offering a discount of $50 to our first cohort that they can get by typing in the code “GV50”

    We had three people try to pay and this was the result:

    1. The first parent paid without issue and got the discount

    2. Second parent paid and included the code “gV50” but while the submission included the code, the payment field did not register the discount

    3. The third parent failed to pay twice with stripe registering incomplete payment but this parent also didn’t have the code applied. This submission was not registered on the Forminator Submissions page

    Any ideas why the behaviour might be happening? My best guesses are:

    1. Parents are hitting enter to accidentally submit incomplete forms: how can I disable the press enter to submit?

    2. The discount field is taking too long to refresh and apply: is there a way I can speed up Forminator rule execution?

    Any help would be great as we are a business starting up and need to collect the money seamlessly to keep us going!

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Amin – WPMU DEV Support

    (@wpmudev-support2)

    Hello @tinnic ,

    Could you export your form and share it with us so we can check it and see what could be causing this issue?

    How to export form https://wpmudev.com/docs/wpmu-dev-plugins/forminator/#import-export

    Share the exported code using pastebin.com site.

    kind regards,
    Kasia

    Thread Starter tinnic

    (@tinnic)

    Hi Kasia,
    I have expoerted code into pastebin: https://pastebin.com/R8JY4b22

    Thanks!

    Plugin Support Dimitris – WPMU DEV Support

    (@wpmudev-support6)

    Hello there @tinnic

    Hope you’re doing well and I’m sorry for the late response on this.

    1.
    The form cannot be submitted at all though, if required fields aren’t already in place, including card details, so not sure how that can be a case here. Please let me know if you can somehow replicate this condition so I can have another look.

    2.
    In both your site and my testing site, the calculation is happening very fast, as we don’t even have to change focus from the coupon field.
    You mentioned that the payment didn’t include the discounted price. Did that happen in both form submission and the actual payment on Stripe? Please advise!

    Thank you,
    Dimitris

    Thread Starter tinnic

    (@tinnic)

    In both your site and my testing site, the calculation is happening very fast, as we don’t even have to change focus from the coupon field.
    You mentioned that the payment didn’t include the discounted price. Did that happen in both form submission and the actual payment on Stripe? Please advise!

    Hi Dimitris,
    I am not sure what to tell you except that it happened again. Without revealing personal information, this is the submission from last night. As you can see, this person used the discount code but the discount was calculated to be 0.

    `Gift Voucher number or Promotional code? Gv50
    Calculated Discount 0
    Total fee after any discounts 249
    Credit / Debit Card
    Mode : live
    Status : COMPLETED
    Amount : 249
    Currency : AUD`

    Here is the image of what it looked like on the Stripe side with all payments collected through Forminator and the “Incomplete” payments are from the problem I mentioned about people submitting without full credit card details. The partial refund is from when we had to return the discount amount to a person who did use the discount code but didn’t register. As you can see from the other payments, other people were able to use the discount code properly.

    So I don’t know what to fix!

    Thanks

    Plugin Support Patrick – WPMU DEV Support

    (@wpmudevsupport12)

    Hi @tinnic

    I double-checked and the calculation was really fast,

    Can you please try to load the form using Ajax in Form > Behaviour > Rendering, it makes sure the problem is not related to caching.

    https://wpmudev.com/docs/wpmu-dev-plugins/forminator/#behavior-forms

    Let us know the result you got.
    Best Regards
    Patrick Freitas

    Thread Starter tinnic

    (@tinnic)

    Hi Patrick,
    Since you mentioned caching, I turned off W3 Caching. So maybe that’ll solve the issue. But I’ll also take the steps you mentioned and reopen this ticket if issues persist.

    I am expecting a surge of parents paying next week, so that should be a good test.

    Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Payment form not registering discount code fast enough’ is closed to new replies.