Skip to content
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

fix: onboarding button wording with ppcp check #98

Merged

Conversation

cyl3x
Copy link
Contributor

@cyl3x cyl3x commented Jan 31, 2025

The onboarding button component can do live & sandbox, but merchant information is only loaded based on the sandbox toggle. So if you only have sandbox credentials, but the sandbox is set to live, the merchant information for live will of course be loaded - i.e. canPPCP will be set to false. If you now create a sandbox button for the payment method card, it will not say 'Change sandbox account' but 'Start new onboarding', even though validate credentials are stored.
=> the button should only check canPPCP if merchant information is loaded for the correct type.

@cyl3x cyl3x requested review from mstegmeyer and Bird87ZA January 31, 2025 18:46
@cyl3x cyl3x merged commit aae6647 into trunk Feb 6, 2025
19 checks passed
@cyl3x cyl3x deleted the fix/onboarding-button-wording-on-wrong-merchant-integrations branch February 6, 2025 09:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants