Credit card surcharge

andrea

Avatar: andrea

2012-11-05 16:21

Hello I would like to know if it's possible to set a surcharge in case an user choose to pay with paypal. In a personal site I'm building I sell some goods at cost so if the user choose to pay with PayPal I would like to add the PP commission.

Thank you.

» Quick.Cart v5.x

interkob

Avatar: interkob

2012-11-06 22:38

1. Install PayPal plugin.

2. Open core/orders.php and change:

$this->aOrders[$iId]['sOrderSummary'] = $aData['sOrderSummary'] = displayPrice$aData['fOrderSummary'] );
        }
      }



with:

$this->aOrders[$iId]['sOrderSummary'] = $aData['sOrderSummary'] = displayPrice$aData['fOrderSummary'] );
        }
      }

$aData['fOrderSummaryPayPal'] = displayPrice$aData['fProductsSummary'] *1.04 );



3. Then ope orders_step-3-payment.tpl and change $aData[fOrderSummary] to $aData[fOrderSummaryPayPal]

This is the easiest way to do it. Certainly, you can change the fee by changing "1.04" in the code. And you should inform customers, that the final sum will be increased.

qcskins.eu

Back to top
about us | contact