-
Notifications
You must be signed in to change notification settings - Fork 67
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
23942 - If transaction is already completed jump directly to redirect url #3087
Conversation
I'm seeing security implications due to this, have to think about it before merging |
Needs bcgov/sbc-pay#1794 |
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.
Looks good.
Quality Gate passedIssues Measures |
if (error.response.data && error.response.data.type === 'INVALID_TRANSACTION') { | ||
// Transaction is already completed. Show as a modal. | ||
if (error.response.data && ['COMPLETED_PAYMENT', 'INVALID_TRANSACTION'].includes(error.response.data.type)) { | ||
// Skip PAYBC, take directly to the "clients redirect url", this avoids transaction already done error. |
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.
bcgov/entity#23942
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the sbc-auth license (Apache 2.0).