News:

Looking for documentation? Take a look on our wiki

Main Menu

Paypal standard plugin passes ship-to info to Paypal

Started by jcalvert, November 24, 2021, 09:31:10 AM

Previous topic - Next topic

jcalvert

I am using VM 3.8.9 on Joomla 3.10.2.

If the customer enters both a bill-to address and ship-to address, the ship-to address is erroneously passed to Paypal and is used to fill the "Guest Checkout" form for credit/debit card payment.

Here is the code in question which I have modified to fix the problem, from plugins/vmpayment/paypal/paypal/helpers/paypalstd.php:


function initPostVariables($payment_type) {

//      $address = ((isset($this->order['details']['ST'])) ? $this->order['details']['ST'] : $this->order['details']['BT']);
//give Paypal the billing info only
        $address = $this->order['details']['BT'];
•••