subscribepro-magento2-ext
subscribepro-magento2-ext copied to clipboard
Include phone number in billing address when storing payment profile from checkout.
PR: #267
Expected Result
When a customer adds a new payment profile in checkout the billing address should include the phone number.
Current Behavior
When payment profiles are added in checkout the phone number is not included in the request to store.json this will cause the phone number to be removed from the customers previously stored address.
Issue
If a customer has subscriptions using the address which has been updated it will fail due to the missing phone number.
Steps to Reproduce
- On the Magento 2 frontend create a new customer
- In My Account go to Stored Payment Methods and add a new card
- In Subscribe Pro merchant app view the customer, and the address. You will see that there is a phone number on the address.
- In Magento 2 browse to any item, and add it to the cart. Make sure you are not creating a subscription.
- Proceed to checkout and when you get to the payment step add a new card then place order.
- In Subscribe Pro merchant app view the customer/address note that the phone number has been removed.
If a customer was creating a subscription during checkout, and creating a new card the POST request when creating the subscription would correct the issue with the Phone Number since it is included in that request.