- Issue created by @joelpittet
- ๐ฎ๐ฑIsrael jsacksick
In 2.x: Error: Call to a member function getPlugin() on null in Drupal\commerce_cart\CartProvider->finalizeCart() (line 127 of commerce/modules/cart/src/CartProvider.php).
There is no call to getPlugin() from the CartProvider, is it patched?
Since commerce_touchnet_upay is offsite, I don't really see the need of redirecting the customer to the payment gateway? Wouldn't it make sense to skip collecting payment all together for free orders?
IN this case I'd recommend writing a checkout flow resolver that resolves a different checkout flow that doesn't include the payment information pane in case the order contains free products?
- ๐จ๐ฆCanada joelpittet Vancouver
Thanks @jsacksick โ oh yes, that makes sense. Weโre using ๐ "Warning: session_id(): Cannot change session id" when cron runs to delete abandoned carts Needs review on 2.x, which explains the fatal error.
We collect some payment info locally (like home address) to retain important order details before theyโre handed off to the offsite gateway (TouchNet upay proxy for UBC). I suppose we could move that to a custom pane โ but would that avoid the error, or would we still hit
There are no payment gateways available for this order.
if the order is free in 3.x?For context, these are event registrations for kids learning to code.
Also, regarding
SupportsZeroBalanceOrderInterface
โ should the manual payment gateway implement that? Should we? - ๐ฎ๐ฑIsrael jsacksick
Also, regarding SupportsZeroBalanceOrderInterface โ should the manual payment gateway implement that? Should we?
Nope, otherwise we would have implemented it already. This interface is mostly for onsite gateways that support tokenizing payment methods when the order is free. (Some gateways don't support 0$ authorizations for example).
Other than that, drupal.org is probably not the right place to get support (as stated in our issue queue guidelines which recommends Stackexchange instead)... Also, feel free to ask in our Slack.
- ๐จ๐ฆCanada joelpittet Vancouver
I guess it's ecosystem support for the custom gateway, not general support, but I am happy to chat in Slack if that is where you prefer.
- Status changed to Fixed
19 days ago 3:29pm 14 May 2025 Automatically closed - issue fixed for 2 weeks with no activity.