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

[SERVICE-API] Fixing bug: updating stripe order model so that customer details can be accessed #292

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mountmike
Copy link

Q A
Branch? main
Bug fix? yes
New feature? no
BC breaks? yes/no
Fixed tickets #...

I have been messing around with your boiler plates and had an error from the service API once I connected stripe and tried to do a test checkout.

The current code is trying to access the 'charges' object with paymentIntent.charges;

I changed this to 'latest_charge' and to access this I had to also expand on this object (as per Stripe documentation) with the line above - stripe client.retrieve().

Doing so in my own project seemed to fix the problem so I thought I would also add a PR for the boilerplate

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.

1 participant