Questions about Payment Form extension

Form Can't Override Site Default PayPal Account

  • jcdawson
  • Topic Author
  • Offline
  • New Member
  • New Member
More
13 years 4 months ago #10460 by jcdawson
I have two payment forms on the same site.

Form A is for payment to PayPal Account A, Form B is for payment to PayPal Account B.

The os_paypal payment plugin's "PayPal Email" is PayPal Account A's email address, making this the site default.

Form B's "PayPal Account" (from Form B's "Basic Information" tab) is set to PayPal Account B's email address.

However, Form B still makes payment to PayPal Account A.

The result is that currently, my site can't accept payment from non-default PayPal accounts.

Please let me know how I might go about resolving this issue.

Regards,

Jeremy

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

More
13 years 4 months ago #10471 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Form Can't Override Site Default PayPal Account
Hi Jeremy

There was a small bug in the code and I fixed it in the latest build on server. To solve the issue, you can download latest version and upgrade to your site or follow the instructions below :

1. Open the file components/com_pmform/payments/os_paypal.php , find the function function processPayment($row, $data) { in the code .

2. Find the line of code
Code:
global $Itemid ;

3. Add this line of code above the above line :
Code:
//Override Paypal account from the form if (isset($data['business']) && $data['business']) { $this->setParam('business', $data['business']) ; }

After that, it should work fine .

Regards,

Tuan

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

  • jcdawson
  • Topic Author
  • Offline
  • New Member
  • New Member
More
13 years 4 months ago - 13 years 4 months ago #10478 by jcdawson
Thanks Tuan,

I applied your code fix and it resolved the issue -- I appreciate your quick response!

Regards,

Jeremy
Last edit: 13 years 4 months ago by jcdawson.

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

More
13 years 4 months ago #10494 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Form Can't Override Site Default PayPal Account
Great Jeremy !

if you have few minutes, please help me by giving the extensiona 5 stars rating and a nice review at extensions.joomla.org/extensions/e-comme...ing-a-invoices/12458 to support my development !

Regards,

Tuan

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

Moderators: Tuan Pham Ngoc