subscribepro / subscribepro-magento2-ext

Subscribe Pro Magento 2 Integration Extension
MIT License
24 stars 22 forks source link

Include phone number in billing address when storing payment profile from checkout. #263

Open chrismshea opened 8 months ago

chrismshea commented 8 months ago

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

  1. On the Magento 2 frontend create a new customer
  2. In My Account go to Stored Payment Methods and add a new card
  3. In Subscribe Pro merchant app view the customer, and the address. You will see that there is a phone number on the address.
  4. In Magento 2 browse to any item, and add it to the cart. Make sure you are not creating a subscription.
  5. Proceed to checkout and when you get to the payment step add a new card then place order.
  6. 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.

New Card Request from My Account > Stored Payment Methods

Image

New Card from Checkout

Image

eugene-shab commented 8 months ago

@garthbrantley Added phone number to the billing address payment profile on checkout request image