woocommerce / woocommerce-gateway-amazon-pay

Amazon Pay Gateway
20 stars 23 forks source link

Cannot submit order if no phone number on Amazon account #50

Open jrick1229 opened 4 years ago

jrick1229 commented 4 years ago

Describe the bug If a customer's Amazon account does not have a phone number, they're unable to submit their order during checkout. Even when the phone number is used on the checkout page, this is not passed over to Amazon during checkout. The customer is unable to correct this during checkout, so they are left with no way to submit the order.

To Reproduce Since this involves having an Amazon account with no phone number, I'm not really sure how to duplicate. If there is an account with no phone number, this can be duplicated by attempting to go through the normal checkout process.

Expected behavior I would assume the customer could either update their phone number when signing into their Amazon account during checkout, or the phone number is pulled from the checkout page.

WordPress Environment

Ticket: 3112081-zen Chat: 21685371-hc

``` ### Database ### WC Database Version: 4.2.2 ### Active Plugins (42) ### Registration Order Link for WooCommerce: by SkyVerge – 1.0.0 – Installed version not tested with active version of WooCommerce 4.2.2 Angell EYE Updater: by Angell EYE – 2.0.10 Auto Image Attributes From Filename With Bulk Updater: by Arun Basil Lal – 1.6 Auto Image Attributes Pro: by Arun Basil Lal – 1.3 Back In Stock Notifier for WooCommerce | WooCommerce Waitlist Pro: by codewoogeek – 1.9.9 – Installed version not tested with active version of WooCommerce 4.2.2 CheckoutWC: by Objectiv – 3.7.1 Code Snippets: by Code Snippets Pro – 2.14.0 Dropship Connection: by uhjk – 0.1 Enhanced E-commerce for Woocommerce store: by Tatvic – 2.3.4 – Installed version not tested with active version of WooCommerce 4.2.2 Jilt for WooCommerce: by Jilt – 1.7.8 Judge.me Product Reviews for WooCommerce: by Judge.me – 1.3.7 – Installed version not tested with active version of WooCommerce 4.2.2 LiveChat WooCommerce: by LiveChat – 1.5.3 – Installed version not tested with active version of WooCommerce 4.2.2 My Wordpress Login Logo: by Afsal Rahim – 2.3.3 PayPal for WooCommerce: by Angell EYE – 2.2.6 PayPal IPN for WordPress: by Angell EYE – 2.1.5 Phone Orders for WooCommerce (Pro): by AlgolPlus – 3.4.4 – Installed version not tested with active version of WooCommerce 4.2.2 Smart WooCommerce Search by Searchanise: by Searchanise – 1.0.5 – Installed version not tested with active version of WooCommerce 4.2.2 Temporary Login Without Password: by StoreApps – 1.6.3 Category Import for Woocommerce: by Shirso – 1.0.1 – Installed version not tested with active version of WooCommerce 4.2.2 Disable Password Change Email: by Aziz Matar – 1.0.0 Woocommerce Simple Tax Exempt: by Shirso – 1.0.1 – Installed version not tested with active version of WooCommerce 4.2.2 WooCommerce Order Navigation: by FullStack – 1.0.0 – Installed version not tested with active version of WooCommerce 4.2.2 Product Feed PRO for WooCommerce: by AdTribes.io – 8.3.9 WooCommerce Anti Fraud: by WooCommerce – 2.7.2 – Installed version not tested with active version of WooCommerce 4.2.2 WooCommerce Amazon Pay: by WooCommerce – 1.12.2 – Installed version not tested with active version of WooCommerce 4.2.2 WooCommerce Authorize.Net Gateway: by SkyVerge – 3.2.7 WooCommerce Google Ads Conversion Tracking: by Wolf+Bär Agency – 1.6.6 Woocommerce Google Merchant Center Customer Reviews: by WebPerfect.com – 1.1.2 – Installed version not tested with active version of WooCommerce 4.2.2 WooCommerce MSRP Pricing: by Ademti Software Ltd. – 2.9.15 WooCommerce Order Status Manager: by SkyVerge – 1.11.9 WooCommerce PDF Invoices & Packing Slips: by Ewout Fernhout – 2.5.2 WooCommerce Sequential Order Numbers Pro: by SkyVerge – 1.15.3 – Installed version not tested with active version of WooCommerce 4.2.2 WooCommerce Shipment Tracking: by WooCommerce – 1.6.23 WooCommerce Side Cart Premium: by XootiX – 1.2 – Installed version not tested with active version of WooCommerce 4.2.2 WooCommerce: by Automattic – 4.2.2 Yoast SEO Premium: by Team Yoast – 14.4.1 WP Crontrol: by John Blackbourn & crontributors – 1.8.5 Justuno: by Justuno – 2.0 WP Mail SMTP Pro: by WPForms – 2.1.2 WP Migrate DB Pro Theme & Plugin Files: by Delicious Brains – 1.0.5 WP Migrate DB Pro: by Delicious Brains – 1.9.10 Yoast SEO: WooCommerce: by Team Yoast – 13.3 ### Inactive Plugins (0) ### ### Must Use Plugins (2) ### Kinsta Must-use Plugins: by Kinsta Team – 2.3.2 WP Migrate DB Pro Compatibility: by Delicious Brains – 1.2 ### Theme ### Name: Flatsome Child Version: 3.0 Author URL: Child Theme: ✔ Parent Theme Name: Flatsome Parent Theme Version: 3.11.3 Parent Theme Author URL: http://www.uxthemes.com/ WooCommerce Support: ✔ ### Templates ### Overrides: flatsome/woocommerce/archive-product.php flatsome/woocommerce/cart/cart-empty.php flatsome/woocommerce/cart/cart-shipping.php flatsome/woocommerce/cart/cart.php flatsome/woocommerce/checkout/form-checkout.php flatsome/woocommerce/checkout/form-coupon.php flatsome/woocommerce/checkout/terms.php flatsome/woocommerce/checkout/thankyou.php flatsome/woocommerce/content-product.php flatsome-child/woocommerce/content-product_cat.php flatsome/woocommerce/content-single-product.php flatsome/woocommerce/content-widget-product.php flatsome-child/woocommerce/emails/customer-new-account.php flatsome-child/woocommerce/emails/customer-reset-password.php flatsome/woocommerce/global/breadcrumb.php flatsome/woocommerce/global/quantity-input.php flatsome/woocommerce/global/wrapper-end.php flatsome/woocommerce/global/wrapper-start.php flatsome-child/woocommerce/loop/loop-end.php flatsome-child/woocommerce/loop/loop-start.php flatsome/woocommerce/loop/pagination.php flatsome/woocommerce/loop/result-count.php flatsome/woocommerce/loop/sale-flash.php flatsome/woocommerce/myaccount/form-login.php flatsome/woocommerce/myaccount/navigation.php flatsome/woocommerce/notices/error.php flatsome/woocommerce/notices/notice.php flatsome/woocommerce/notices/success.php flatsome/woocommerce/product-searchform.php flatsome/woocommerce/single-product/photoswipe.php flatsome/woocommerce/single-product/price.php flatsome/woocommerce/single-product/product-image.php flatsome/woocommerce/single-product/product-thumbnails.php flatsome/woocommerce/single-product/rating.php flatsome/woocommerce/single-product/related.php flatsome/woocommerce/single-product/review.php flatsome/woocommerce/single-product/sale-flash.php flatsome/woocommerce/single-product/share.php flatsome/woocommerce/single-product/short-description.php flatsome/woocommerce/single-product/tabs/tabs.php flatsome/woocommerce/single-product/title.php flatsome/woocommerce/single-product/up-sells.php flatsome/woocommerce/single-product-reviews.php flatsome/woocommerce/single-product.php ### Action Scheduler ### Complete: 533,803 Oldest: 2020-06-01 13:11:42 -0400 Newest: 2020-07-02 13:11:34 -0400 Failed: 3 Oldest: – Newest: – Pending: 4 Oldest: 2020-07-02 13:11:53 -0400 Newest: 2020-07-02 19:04:42 -0400 ```
clifgriffin commented 4 years ago

I worked @jrick1229 and can add a bit more information.

The error we were receiving was Billing Phone is not a valid phone number.

The customer reported that her Amazon account had no phone number, but either way it seems that Amazon was sending something that did not validate as a phone number.

I think it's unusual that WooCommerce validates phone numbers when the field is not required, but they seem to not be interested in evaluating that: https://github.com/woocommerce/woocommerce/issues/26895

So I think the answer here is probably to disable both validation and requirement on the phone fields when using Amazon Pay.

ChristianAF commented 2 years ago

@dpanta94 We might need to check this one also on V2.