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

Make PaymentIntent expandable on Invoice to fix deserialization issues #1580

Merged
merged 1 commit into from
Apr 15, 2019

Conversation

remi-stripe
Copy link
Contributor

The Invoice resource has a payment_intent property that is supposed to be the fully expanded PaymentIntent resource associated with that invoice.

Today though, the events of type invoice.* will send payment_intent: "pi_123" for performance reasons. Because of this, deserialization fails which causes crashes as seen in #1579.

This approach allows users to deserialize those events and access the PaymentIntent id. This is not a perfect solution but a good temporary fix. I will not merge/release until we've met internally to decide if this is the right path forward but I wanted the PR to be ready.

r? @ob-stripe
cc @stripe/api-libraries @mickjermsurawong-stripe @py-stripe

@ob-stripe ob-stripe assigned remi-stripe and unassigned ob-stripe Apr 15, 2019
@remi-stripe remi-stripe merged commit bb1fdac into master Apr 15, 2019
@remi-stripe remi-stripe deleted the remi-fix-invoice-pi branch April 15, 2019 23:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants