Different prices for payment methods

  • Benjamin Jones
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 9 months ago #17454 by Benjamin Jones
Different prices for payment methods was created by Benjamin Jones
My customer only has two forms of payment.

1. Paypal
2. Offline via check

To offset Paypal fees he upcharges $10 to the base fee.

I'd like to hardcode this $10 increase to the Paypal selection or assign the total cost.

For example customer sees and selects one of the below payment methods:

Offline = $225
Paypal = $235

Any one else do this yet? I've searched forum but have not found answer.

Please Log in or Create an account to join the conversation.

More
12 years 9 months ago #17461 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Different prices for payment methods
Hi

You can follow the steps below :

1. Open the file components/com_eventbooking/payments/os_paypal.php

2. Find the code below :
Code:
$this->setParam('amount', round($data['amount'], 2));

3. Change it to :
Code:
$this->setParam('amount', round($data['amount'] + 10, 2));

After that, it will work as expected .

Regards,

Tuan
The following user(s) said Thank You: Benjamin Jones

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc