PCAPredict / magento2

Magento 2 extension to integrate PCA Predict services into the store checkout
Other
5 stars 35 forks source link

Not working with multiple payment methods #11

Open lumijino opened 7 years ago

lumijino commented 7 years ago

The extension is not working if we have more than one payment methods. The billing address validation will be working only on the first payment method and others not.

henrikvalve commented 7 years ago

Hi lumijino apologies for the delayed response. Thank you for the report, we will investigate and schedule in a fix.

tom-iweb commented 6 years ago

Is there any update on this? Testing this on a default luma M2 checkout the billing address does not trigger an address search

henrikvalve commented 6 years ago

Hi @tom-iweb

would it be possible to go through this with you via a screen share? We are having problems re-creating this internally.

Cheers,

Henrik

chris-pook commented 6 years ago

Hi, I have also replicated this issue on Magento 2.2.3 following @cowley 's steps.

With a vanilla Magento 2.2.3 install (Check Money as only payment method) the billing address form works as expected with PCA functinality when un-ticking "My billing and shipping address are the same" on the payment step.

image

When I then enable an additional payment method (Cash On Delivery), only the Check Money billing address form gets PCA functionality. Selecting Cash On Delivery and un-ticking "My billing and shipping address are the same" gives me a billing address form but with no PCA functionality.

image

chris-pook commented 6 years ago

I believe this is down to the mappings setup in the PCA account rather than the Magento module.

Having setup a Magento2 service in the PCA dashboard I have these two tag based services:

image

These two services have identical mappings setup as follows:

image

I'm pretty sure that to have additional billing address forms on the page use PCA functionality, you'd need to add another service here with the same mappings again. It's not clear how the two existing services are differentiating between the shipping and first billing form though. I am unable to add a third service row to test if this would solve the issue, allowing for one extra payment method billing form.

@henrikvalve any ideas ?

chris-pook commented 6 years ago

Quick update on this, having added another mapping (clone of first 2) to allow for an additional billing form for each additional payment method I now get PCA functionality on all the billing address forms on the payment checkout step.

image * I had to ask a support agent to add this for me (there is no UI for it). However you may be able to use the "on screen" method if your site is public (mine is in dev on localhost).

This results in PCA now working on the second payment method:

image