Browser Language Preference Breaks NMI Gateway on Event Registration #5461
Labels
Fixed in v15.3
Fixed in v16.1
Status: Confirmed
It's clear what the subject of the issue is about, and what the resolution should be.
Topic: Event Registration
Related to Rock Event Registration.
Please go through all the tasks below
Please provide a brief description of the problem. Please do not forget to attach the relevant screenshots from your side.
When a user's browser language preference (Accept-Language header) is set to a language that uses a comma decimal separator instead of the period as is standard for the en-us locale, the NMI gateway fails upon payment submission with an error when attempting to register for an event:
Invalid Data Type amount must be a number REFID:##########
It looks like the NMI gateway is sending the localized currency value through, which is does not seem to be accepted by NMI.This appears to affect only the Webforms Registration Entry block, not Obsidian.## Expected BehaviorThe payment gateway would appropriately format the amount field for submission to NMI regardless of the Accept-Language/Localization settings in the user's browser.## Actual Behavior
The payment submission fails with the following error message:
Invalid Data Type amount must be a number REFID:##########
## Steps to ReproduceThe following steps were used to reproduce this issue on the Rock Solid Demo site.
## Rock Version
15.0## Client Culture Setting
ru-RU
The text was updated successfully, but these errors were encountered: