verbb / formie

The most user-friendly forms plugin for Craft CMS.
Other
93 stars 68 forks source link

Stripe payments displaying at 100x transacted value in submission CP view #1921

Closed jonnykates closed 1 week ago

jonnykates commented 2 weeks ago

Describe the bug

We have a form with a Stripe integrated 'Payment' field which derives its amount value from a 'Radio Buttons' field on the form. When the form is submitted, the user's payment card is charged the correct amount based off the value of their radio button field section. However, when the form submission is browsed in /admin/formie/submissions/, the value in the right-hand payments meta area seems to be 100 times the amount charged. Smells a bit like pence/cents values are being displayed as pounds/dollars.

The PI in Stripe: Screenshot 2024-06-10 at 14 42 41

The payment meta on the submission in CP: Screenshot 2024-06-10 at 14 41 32

Steps to reproduce

  1. Set up and enable a Stripe Formie integration
  2. Create a form with a Radio Buttons field with some integer values in (other field types may be affected, I haven't tested)
  3. Add a payment field to the form, and derive the amount to charge from the radio buttons field
  4. Submit the form - the Stripe payment intent should be for the correct amount
  5. Navigate to the submission in the Craft CP - the value displayed is 100x the transacted amount

Form settings

Craft CMS version

Craft Pro 5.1.9

Plugin version

3.0.0-beta.14

Multi-site?

No

Additional context

No response

engram-design commented 2 weeks ago

Fixed for the next release. To get this early, run composer require verbb/formie:"dev-craft-5 as 3.0.0-beta.14".

engram-design commented 1 week ago

Fixed in 3.0.0-beta.15