Hi everyone!
First, I apologize if this has been answered. I just could not find anything on the topic here...
I sell digital goods on my website http://www.guitarplayback.com
An order can vary from $0.99 all the way up to $200.00
I use Paypal exclusively.
I have two Paypal accounts: one for Micropayments (lower fees for any order under $12) and a regular Paypal for anything higher
Is there a way to automatically assign one of the Paypal address to get paid depending on how much the total order is?
Basically something like this:
If total order equals or less than $12 -> use Micropayment
If total order higher than $12 -> use regular Paypal account
Any answer will be highly appreciated!!!
First, I apologize if this has been answered. I just could not find anything on the topic here...
I sell digital goods on my website http://www.guitarplayback.com
An order can vary from $0.99 all the way up to $200.00
I use Paypal exclusively.
I have two Paypal accounts: one for Micropayments (lower fees for any order under $12) and a regular Paypal for anything higher
Is there a way to automatically assign one of the Paypal address to get paid depending on how much the total order is?
Basically something like this:
If total order equals or less than $12 -> use Micropayment
If total order higher than $12 -> use regular Paypal account
Any answer will be highly appreciated!!!
Guitar Backing Tracks and Video Lessons at http://www.guitarplayback.com
1. EDIT: catalog/controller/payment/pp_standard.php
2. FIND:
3. BEFORE, ADD:
Also, since you will have a different email account sometimes than the one in your paypal configuration, you will need to disable the mismatch verification.
4. FIND:
5. REPLACE WITH:
2. FIND:
Code: Select all
$this->data['fields']['business'] = $this->config->get('pp_standard_email');
Code: Select all
if ($this->cart->getTotal() < 12) {
$this->data['fields']['business'] = 'micropay@email.com';
} else {
$this->data['fields']['business'] = $this->config->get(pp_standard_email);
}
4. FIND:
Code: Select all
$this->error = $this->language->get('error_email_mismatch');
Code: Select all
//$this->error = $this->language->get('error_email_mismatch');
You are the best!!!!!
Thanks a lot man.
PS: Really enjoying the mods I got from you. Thanks!
Thanks a lot man.
PS: Really enjoying the mods I got from you. Thanks!
Guitar Backing Tracks and Video Lessons at http://www.guitarplayback.com
After upgrading my site to v1.5 I cannot find the following line:
$this->error = $this->language->get('error_email_mismatch');
I did enter the first part of the code but this doesn't seem to work anymore.
Am I missing something?
$this->error = $this->language->get('error_email_mismatch');
I did enter the first part of the code but this doesn't seem to work anymore.
Am I missing something?
Guitar Backing Tracks and Video Lessons at http://www.guitarplayback.com
Hi,
I have applied the above code in my shop with opencart 1.5.4.1, it works great however theres one problem, when a customer pays to my micro payments paypal account (not the normal account one set in opencart payments setting), the order does not automatically update to processed and is stucked in processing status. Does anyone know how to get around this?
How does Paypal return a success callback to opencart? how do I add another email address for accepting success callbacks?
Thanks
I have applied the above code in my shop with opencart 1.5.4.1, it works great however theres one problem, when a customer pays to my micro payments paypal account (not the normal account one set in opencart payments setting), the order does not automatically update to processed and is stucked in processing status. Does anyone know how to get around this?
How does Paypal return a success callback to opencart? how do I add another email address for accepting success callbacks?
Thanks
Hi,
I check out your site that you posted in the original post, and see that the problem is still not resolved.
I'm currently facing the same problem and trying to use both Paypal micropayment and business on my website.
I instead get this error
Parse error: syntax error, unexpected T_PUBLIC in /home/admin/public_html/catalog/controller/payment/pp_standard.php on line 110.
Any help will be great.
Thank you
I check out your site that you posted in the original post, and see that the problem is still not resolved.
I'm currently facing the same problem and trying to use both Paypal micropayment and business on my website.
I instead get this error
Parse error: syntax error, unexpected T_PUBLIC in /home/admin/public_html/catalog/controller/payment/pp_standard.php on line 110.
Any help will be great.
Thank you
Hey,
I actually managed to get this working but in a different way.
By creating a custom payment method using this
http://code.tutsplus.com/tutorials/crea ... -cms-22338
and changing all the code within the custom.php files to match the PP standard files although everything that says Paypal_standard you will have to change to custom including the Class name. example Paypal_standard/email will be custom/email.
Hopefully this helps
I actually managed to get this working but in a different way.
By creating a custom payment method using this
http://code.tutsplus.com/tutorials/crea ... -cms-22338
and changing all the code within the custom.php files to match the PP standard files although everything that says Paypal_standard you will have to change to custom including the Class name. example Paypal_standard/email will be custom/email.
Hopefully this helps
The code above was for 1.4.8-1.4.9.5
This should do what you need:
(1.5.x)
1. EDIT: catalog/controller/payment/pp_standard.php
2. FIND:
3. AFTER, ADD:
(2.x)
1. EDIT: catalog/controller/payment/pp_standard.php
2. FIND:
3. AFTER, ADD:
This should do what you need:
(1.5.x)
1. EDIT: catalog/controller/payment/pp_standard.php
2. FIND:
Code: Select all
$this->data['custom'] = $this->session->data['order_id'];
Code: Select all
if ($total > 12) {
$this->data['business'] = 'some-other-email@email.com';
}
(2.x)
1. EDIT: catalog/controller/payment/pp_standard.php
2. FIND:
Code: Select all
$data['custom'] = $this->session->data['order_id'];
Code: Select all
if ($total > 12) {
$data['business'] = 'some-other-email@email.com';
}
Just to note, you could also duplicate the PayPal extension like liamrogers1 did, and then use Restrict Payment Methods to determine when the two payment methods are available.
Who is online
Users browsing this forum: No registered users and 5 guests