- Issue created by @lindsay.wils
- Status changed to Closed: cannot reproduce
11 months ago 6:31pm 1 February 2024 - 🇨🇦Canada lindsay.wils
Ignore this. Another developer had messed with the Profile entity
Haven't been able to find any other issues in these threads mentioning this issue, so not sure if it is my setup or not, happy to provide any further relevant information.
But, in the Payment Gateways section, I have 'Collect billing information' checked, but no billing address fields are added to the checkout process.
I have tested this with the default checkout flow and my custom checkout flow.
The 'Order Information' pane has 'Contact information' and 'Payment information', the later being where I would be expecting the Billing Address fields to appear. The only thing that shows up is checkbox 'Save to my address book.'
Upon going to the next pane in the checkout flow, Review, I get the following error, obviously as the code is checking for billing values that do not exist.
Error: Call to a member function getGivenName() on null in Drupal\commerce_authnet\Plugin\Commerce\PaymentGateway\AcceptJs->buildCustomerPaymentProfile() (line 793 of modules/contrib/commerce_authnet/src/Plugin/Commerce/PaymentGateway/AcceptJs.php).
Pressing the browser back back button, I now I have a drop down to choose an existing address or enter a new one, but still no address fields.
Is there something else that needs to be done to setup the ability to collect the billing address with the payment details?
Any guidance would be very much appreciated, thanks.
Closed: cannot reproduce
1.8
Code
Ignore this. Another developer had messed with the Profile entity