Skip to content
This repository was archived by the owner on Apr 14, 2023. It is now read-only.

Support tokens without specifying payment_method #40

Merged
merged 1 commit into from
Oct 27, 2016

Conversation

cbrunsdon
Copy link
Contributor

Its way more hassle to have to specify a payment method id, which most
stores won't want to do.

Its way more hassle to have to specify a payment method id, which most
stores won't want to do.
where(active: true).
find(params[:payment_method_id])
if params[:payment_method_id]
@gateway = ::SolidusPaypalBraintree::Gateway.find_by!(id: params[:payment_method_id])
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does it matter that this allows payment methods with active: false?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't personally care... I don't think giving people tokens is a risky activity, but open to hearing otherwise

Copy link
Member

@adammathys adammathys left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@cbrunsdon cbrunsdon merged commit 3328d70 into master Oct 27, 2016
@adammathys adammathys deleted the token_with_payment_method_id branch October 27, 2016 17:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants