Closed DangerDawson closed 10 years ago
Actually scrap the above it all works fine, the shipping address stays as the original although I have noticed that modifying the shipping address in paypal does not affect the shipping address in the backend, I am guessing this is expected behaviour?
@DangerDawson
The address information we pass to PayPal is (I believe) used to validate that the user is using valid credit card credentials. Same as when we pass the address information to any payment gateway. It's usually referred to as an "Address Verification System". Passing the bill address is correct, imo.
What callback from PayPal are you talking about?
I am not sure if PayPal even sends out an event notification when the address information changes, so no, the backend won't magically be updated with the new address information unless this can happen.
Forget the callback part, I must have been drinking something quite strong and was wrongly compared it to the Adyen payment gateway extension we are using :-)
The bit that was slightly confusing was that the ShipToAddress which is part of the payment_details method uses the bill_address from the order rather than the ship_address.
Anyway it is not causing any issues so I will close it.
D
On 3 Mar 2014, at 16:12, Ryan Bigg notifications@github.com wrote:
@DangerDawson
The address information we pass to PayPal is (I believe) used to validate that the user is using valid credit card credentials. Same as when we pass the address information to any payment gateway. It's usually referred to as an "Address Verification System". Passing the bill address is correct, imo.
What callback from PayPal are you talking about?
I am not sure if PayPal even sends out an event notification when the address information changes, so no, the backend won't magically be updated with the new address information unless this can happen.
— Reply to this email directly or view it on GitHub.
Alrighty, no worries :)
Looking at the following controller:
app/controllers/spree/paypal_controller.rb
It seems as thought the method address_options returns the billing address rather than the shipping address:
This causes an issue, as the callback from paypal updated the shipping address details in the backend.
Should the above be based on shipping address?