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

[10.x] Add findPaymentMethod method #801

Merged
merged 1 commit into from
Oct 18, 2019
Merged

Conversation

driesvints
Copy link
Member

Replacement for #800

Adds a new findPaymentMethod method to the Billable entity. Also adds a check in the Invoice and PaymentMethod object's constructors to make sure that no invalid objects can be build.

Pulled out the constructing of the objects outside the retrieval of the stripe object's try/catch blocks so these new exceptions can cascade through.

@driesvints driesvints force-pushed the retrieve-payment-method branch from b6fbcd1 to 1d2c7a7 Compare October 18, 2019 14:55
@taylorotwell taylorotwell merged commit 2be5859 into 10.0 Oct 18, 2019
@driesvints driesvints deleted the retrieve-payment-method branch October 18, 2019 20:05
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.

2 participants