Billing Address issue (MISSING_SHIPPING_ADDRESS error)
-
Hi.
My environment …
I have setup the WooCommerce PayPal Payments v2.94 plugin on WooCommerce v9.4.2. Have opted in the plugin settings to have separate gateways on my website's Checkout page - one for Payment by Card and one for Payment by PayPal account. My Checkout page is customized using Flexible Checkout Fields Pro plugin by WPDesk. My website is a flower delivery website. I have hidden most of the Billing Address fields on my Checkout page because (1) I thought I would not need to collect that information from customers myself, (2) my customers will always want delivery to an address that is not their own (i.e. a recipient's/friend's address), and (3) I have other payment options that already work OK (Card Payment by Stripe, Bank Transfer) for which I do not need the customer's billing address (& therefore do not want those customers to have to fill in fields unnecessary for them)
The issue …
While connected to my PayPal sandbox account to do some initial testing, during testing a message appears when I click the PayPal (Pay) button (same error in both gateways). It says … "MISSING_SHIPPING_ADDRESS The shipping address is required when `shipping_preference=SET_PROVIDED_ADDRESS".
I don't know why …
I don't understand why this message is coming up because … (a) in the Standard Payments tab of the PayPal plugin settings, for "Send checkout billing data to card fields" I chose "Do not use WC Checkout form data (request all address fields)", and (2) when I got the plugin working via a temporary workaround (see below), I needed to enter billing information in the PayPal form anyway.
Possible cause …
During troubleshooting, I discovered that the issue does NOT seem to be a theme issue but does seem related to the lack of billing info fields on my Checkout page and/or the functionality of the "Do not use WC Checkout form data (request all address fields)" setting mentioned above.
A workaround …
When I temporarily deactivated my Checkout Field plugin, completed the Billing Address fields that are part of the default Checkout page form & I clicked the PayPal button in the Standard Payments (PayPal account) gateway, the above error DID NOT appear & a PayPal Login dialog successfully appeared.
Similarly, when I temporarily deactivated my Checkout Field plugin, completed the Billing Address fields that are part of the default Checkout page form & I clicked the PayPal button in the Standard Card (Pay by Card via PayPal) gateway, the above error DID NOT appear & an "embedded form" requiring card number and billing address to be entered successfully appeared.
A practical solution …?
Please could you tell me …
(1) why the error is happening, and
(2) a way I can prevent the error message and not have to add Billing Info fields to my own website's Checkout fields
For example, a code snippet to tell PayPal gateway to not expect Billing Address to be provided by my website's Checkout page (which is what I thought the "Do not use WC Checkout form data (request all address fields)" setting mentioned above was going to do)
Many thanks in advanceThe page I need help with: [log in to see the link]
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
The topic ‘Billing Address issue (MISSING_SHIPPING_ADDRESS error)’ is closed to new replies.