-
Notifications
You must be signed in to change notification settings - Fork 24
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
Verify email address is verified before allowing payment method to be available #59
Conversation
We want to ensure that the users PayPal email is verified before accepting payments with this payment_method, so we're starting by defaulting user availability to false on payment_method creation.
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.
Great!
Just a possible change to support translations for the hint
<span class="hint-tooltip" title="" data-content="You must verify that your email is confirmed with PayPal before allowing users to check out."> | ||
<i class="fa fa-info-circle"></i> | ||
</span> |
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.
Would be nice to fully support translations with
<span class="hint-tooltip" title="" data-content="You must verify that your email is confirmed with PayPal before allowing users to check out."> | |
<i class="fa fa-info-circle"></i> | |
</span> | |
<%= f.field_hint :available_to_users %> |
plus adding spree.hints.solidus_paypal_commerce_platform/payment_method.available_to_users
to locales.yml
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.
Of course, I always forget the translations. Also, I had no idea f.field_hint
was a thing, that's seriously cool. Thanks!
Unless `paypal_email_confirmed` is checked, `available_to_user` will be disabled - this is to provide a reminder to the user that they need to verify their email with PayPal.
Not sure if GitHub is having issues or if the problem is on my end, but pushing to my branch didn't update this PR. Closing this one to get an updated PR up! |
Oookay, reopening - as soon as I closed it the PR updated. 🤔 |
We want to ensure that the users PayPal email is verified before
accepting payments with this payment_method, so we're defaulting
payment method availability to false and requiring the user to verify
that their email is confirmed before allowing the payment_method
to be available to users.
Fixes #9