- First commit to issue fork.
- Merge request !149Issue #2871483: Add checkout settings for payment method behavior β (Open) created by tbkot
- Status changed to Needs review
almost 2 years ago 9:36pm 16 March 2023 - last update
over 1 year ago 771 pass, 2 fail - last update
over 1 year ago 769 pass, 4 fail Just jumping in here, patch 60 seems to be working in initial testing.
Merge request from 74seems to be missing the checkbox at checkout for some reason. @tBKot can you provide a patch and interdiff between #60?
- πΊπΈUnited States loze Los Angeles
I am seeing the same thing as @tonytheferg
patch in #60 seems to work, but the MR does not show the "Save this payment method for later use" checkbox on the checkout form.
- πΊπΈUnited States loze Los Angeles
Here is an interdiff of #60 and MR 149
It appears that with the MR, in order for the checkbox to appear on the checkout form, the payment gateway needs to have the public method
public function supportsReusableOption(): bool { return TRUE; }
When it does, the checkbox appears and the payment method is stored at checkout when checked.
I think this is a good addition, but gateway contrib modules will need to support this.
- last update
11 months ago Patch Failed to Apply - last update
11 months ago 794 pass - last update
11 months ago Patch Failed to Apply - πΊπΈUnited States gcb
Here's a patch version of the PR as of comment 74, along with patches for commerce_stripe and commerce_authnet to make them compatible.
I suspect those probably belong in the other modules' issue queues, but until we are sure this is how things are being done I think it makes sense to keep it all in one place.
- last update
10 months ago 795 pass - πΊπΈUnited States gcb
I found that the patch above caused a crash on free orders that didn't have a payment method attached when trying to produce the payment information summary pane. The attached version makes a small check to avoid that crash.
- π³π΄Norway zaporylie
Handling of free orders is actually not mentioned in the issue summary here but sneaked into the patch ;) Because currently we always make payment methods reusable, and here this option is squeezed under always reusable, I am creating β¨ Allow creating payment method on free orders Active and will extract the relevant part of #79 in there.
Currently not commenting on the reusability feature but will come back to comment on that soon.
- π³π΄Norway zaporylie
Here are some objectives that should be included in this issue's scope:
- customer must be able to opt-out from reusable payment method (::setReusable(FALSE)
). Non-reusable payment methods will only be used to create initial payment.
- gateway must be able to declare whether the payment method it creates is reusable. We must be able to filter out all unreusable payment methods. whether existing or new, depending on the context. For example, commerce_recurring must be able to enforce checkout with a reusable payment method for the sake of subsequent charges
- some gateways, depending on configuration, may be reusable but only in the Customer Initiated Transaction (CIT) scenario. This is already possible for Stripe. Such payment methods should not be reusable for Merchant Initiated Transactions (MIT). We must be able to filter them out β¨ Define payment method's reusability context ActiveI don't think we currently have one but this probably calls for a meta issue so we can divide the scope into some smaller chunks and work on them one by one,