You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there -- thanks for the great help on this gem!
Due to working in a domain with tech challenged users, they do not have an email address, only a phone number. I see the note in the 1_installation.md file that:
Note: Pay requires your model to have an email attribute. Email is a field that is required by Stripe, Braintree, etc to create a Customer record.
However, I'm able to create Stripe customer records absent this field. I believe it's only required at checkout, and if not present, the user will be prompted for it. Since I know there are processor (Visa, etc.) regulations around notifying customers of a transaction id through receipts, I have just updated a customer account once this info is provided via a webhook:
While this approach works, I only have the error on create customer:
[ActiveJob] [Pay::Webhooks::ProcessJob] [redacted_uuid] Stripe create customer event evt_redacted_token_id does not have an email
However, with the Pay 8.0 update, I'm seeing that this approach is failing. I tested that the Stripe event data looks the same, but am seeing that this is always nil:
email = user.payment_processor&.email
(Thinking out loud, perhaps the above is nil with the Stripe gem 13.0 update, I didn't isolate just that gem being updated and check prior to writing this).
Any advice given this particular domain and design without initial emails from users? If Stripe creates customers without emails, would it be possible to deprecate that no email error? And is there any action I should take to resolve updating the user with the email provided to Stripe?
Thank in advance for any wisdom you're able to share!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi there -- thanks for the great help on this gem!
Due to working in a domain with tech challenged users, they do not have an email address, only a phone number. I see the note in the
1_installation.md
file that:However, I'm able to create Stripe customer records absent this field. I believe it's only required at checkout, and if not present, the user will be prompted for it. Since I know there are processor (Visa, etc.) regulations around notifying customers of a transaction id through receipts, I have just updated a customer account once this info is provided via a webhook:
While this approach works, I only have the error on create customer:
However, with the Pay 8.0 update, I'm seeing that this approach is failing. I tested that the Stripe event data looks the same, but am seeing that this is always nil:
(Thinking out loud, perhaps the above is
nil
with the Stripe gem 13.0 update, I didn't isolate just that gem being updated and check prior to writing this).Any advice given this particular domain and design without initial emails from users? If Stripe creates customers without emails, would it be possible to deprecate that no email error? And is there any action I should take to resolve updating the user with the email provided to Stripe?
Thank in advance for any wisdom you're able to share!
Beta Was this translation helpful? Give feedback.
All reactions