Author Topic: Paypal standard plugin passes ship-to info to Paypal  (Read 102 times)

jcalvert

  • Beginner
  • *
  • Posts: 16
Paypal standard plugin passes ship-to info to Paypal
« on: November 24, 2021, 09:31:10 am »
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:

Code: [Select]
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'];
•••