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

Retrieve payment method from payment source #121

Merged
merged 1 commit into from
Jun 17, 2020

Conversation

aldesantis
Copy link
Member

@aldesantis aldesantis commented Jun 17, 2020

Closes #120.

Removes the default_gateway option, which was used to specify which payment method to charge users through, and retrieves the payment method directly from the payment source that is being charged.

This allows users to subscribe with different payment methods rather than simply using the one set when configuring the gem.

Previously, the payment method was set when configuring the gem.
This is not needed, since we can get it directly from the source
we are charging, which is much more flexible since it opens up
the ability to charge sources belonging to different payment methods.
@aldesantis aldesantis added enhancement Improves an existing feature. breaking Introduces a breaking change. labels Jun 17, 2020
@aldesantis aldesantis self-assigned this Jun 17, 2020
@aldesantis aldesantis added the removed Removes an existing functionality. label Jun 17, 2020
@aldesantis aldesantis merged commit f5942a5 into master Jun 17, 2020
@aldesantis aldesantis deleted the aldesantis/get-payment-method-from-source branch June 17, 2020 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking Introduces a breaking change. enhancement Improves an existing feature. removed Removes an existing functionality.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Retrieve payment method from the payment source
1 participant