- Posts: 2
- Thank you received: 0
Questions about Payment Form extension
Form Can't Override Site Default PayPal Account
- jcdawson
- Topic Author
- Offline
- New Member
Less
More
13 years 4 months ago #10460
by jcdawson
Form Can't Override Site Default PayPal Account was created 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
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.
- Tuan Pham Ngoc
- Offline
- Administrator
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
3. Add this line of code above the above line :
After that, it should work fine .
Regards,
Tuan
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
Less
More
- Posts: 2
- Thank you received: 0
13 years 4 months ago - 13 years 4 months ago #10478
by jcdawson
Replied by jcdawson on topic Re: Form Can't Override Site Default PayPal Account
Thanks Tuan,
I applied your code fix and it resolved the issue -- I appreciate your quick response!
Regards,
Jeremy
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.
- Tuan Pham Ngoc
- Offline
- Administrator
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
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
Support
Documentation
Information
Copyright © 2024 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.