-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generic Checkout: Invalid URL Param Price Checks #5955
Conversation
…n suppoerter+ price in relevent countries
Size Change: 0 B Total Size: 1.79 MB ℹ️ View Unchanged
|
if (queryPrice < 1) { | ||
isInvalidAmount = true; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just to double check this - we don't allow e.g. 50p donations?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Think the above applies for Contributions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Happy for this to go in as is - but probably worth double checking as I'm not sure this is validated against anywhere else in the pipeline.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pretty sure old S+ checkout guarded against this low entry, not sure how can check the pipeline. Will put in for now and we can revisit if necessary
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually if you change the Contribution amount in the paramUrl for the current checkout to £0.1 it jumps you straight to the S+ product at £10! Think marking it as invalid is fine for moment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a question on why we have the const queryPrice
Seen on PROD (merged by @paul-daniel-dempsey 10 minutes and 57 seconds ago)
Sentry Release: support-client-side, support |
@paul-daniel-dempsey we've recently begun allowing amounts at or above the S+ threshold for users where |
@GHaberis from what I can tell in this PR @paul-daniel-dempsey has allowed exactly this by only checking it against the S+ amount if you are in contribution only countries here. |
@GHaberis : we tested with Albania and it allowed a Contribution above the S+ threshold using: https://support.thegulocal.com/eu/checkout?country=AL&product=Contribution&ratePlan=Monthly&price=14 |
What are you doing in this PR?
Missing functionality for the Generic Contributions Checkout
https://support.thegulocal.com/uk/checkout?product=Contribution&ratePlan=Monthly&price=13
https://support.thegulocal.com/uk/checkout?product=Contribution&ratePlan=Monthly&price=0.1
https://support.thegulocal.com/uk/checkout?product=SupporterPlus&ratePlan=Monthly&price=8
Trello Card
How to test
https://support.thegulocal.com/uk/contribute#ab-useGenericCheckout=variant
Part of #5722