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

put special case for when token is provided on update (change CC) #74

Open
kchapple opened this issue Oct 13, 2016 · 4 comments
Open

put special case for when token is provided on update (change CC) #74

kchapple opened this issue Oct 13, 2016 · 4 comments
Labels

Comments

@kchapple
Copy link
Collaborator

When patient is updated, and there is a stripe token passed, need to update customer

@kchapple kchapple added the bug label Oct 13, 2016
@Leo24
Copy link
Contributor

Leo24 commented Oct 19, 2016

Tested updating Patient [base]/fhir/Patient/85 PUT request with new Stripe token, so Customer ID updates in Database.
Is it that we need in this "bug"?
If not - could you please give me more detailed explanation.

@kchapple
Copy link
Collaborator Author

@Leo24 We shouldn't change the customer ID. Is it possible to just update the Customer's Credit Card information using a new token, we shouldn't have to create a new customer entirely. Maybe I'm misunderstanding how the Stripe Customer update works.

@kchapple
Copy link
Collaborator Author

@Leo24 check out the update-customer documentation https://stripe.com/docs/api?lang=php

When we get a new token, we need to update the "source" parameter with the new token so that the new card becomes the active source.

@Leo24
Copy link
Contributor

Leo24 commented Oct 20, 2016

Add check if customer exist - update source data
Remove extra set of patient id. Сauses updating wrong patient.
#83

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants