Hi
Not working for logged in user witg D9
Error:
Error: Call to a member function getParameter() on null in Drupal\commerce_braintree\PluginForm\HostedFields\PaymentMethodAddForm->buildCreditCardForm() (line 81 of /httpdocs/web/modules/contrib/commerce_braintree/src/PluginForm/HostedFields/PaymentMethodAddForm.php)
here is the code:
if (!empty($configuration['3d_secure'])) {
if ($order = $this->routeMatch->getParameter('commerce_order')) {
$amount = $order->getBalance()->getNumber();
}