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

Include donation token in email receipt #66

Open
LeafHacker opened this issue Feb 9, 2021 · 0 comments
Open

Include donation token in email receipt #66

LeafHacker opened this issue Feb 9, 2021 · 0 comments

Comments

@LeafHacker
Copy link
Contributor

Since we set receipt_email on the payment_intent, Stripe will email a receipt to users on payment success.

Unfortunately our token isn't generated yet when this happens, but fortunately we can work around this by not setting the recepit_email field until after we've generated the token.

  • Create payment
    • Store email in metadata
    • Do not set receipt_email yet!!
    • Consider setting statement_descriptor and statement_descriptor_suffix?
  • Payment success
    • Update payment description with token
    • Set receipt_email using value stored earlier in metadata
    • Consider setting token in metadata too?
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

No branches or pull requests

1 participant