Community Forums

PayPal Standard not showing as available payment method

Support for Payment extensions

PayPal Standard not showing as available payment method

Postby Steven_B » Sat Apr 28, 2012 6:34 am

Hi,

I've installed v1.5.2.1 + R885-R990 update patch and all is working well, except my PayPal Standard payment method.
I've configured all as per documentation http://www.opencart.com/index.php?route ... 8_32_35_60
And configured the module in Admin. I set the minimum checkout amount to: 0

However, this payment option never shows up in the actual payment options when checking out.
When I set it as the only method I get: "Warning: No Payment options are available"
Also, no errors logged in the log report.

The other payment options work fine.

I have another site running v1.5.1 with PayPal Standard running perfectly, besides the PDT entry all is set exactly the same.

Anything ideas what I should check to get this to work?


Many thanks in advance,
Steven
User avatar
Steven_B
 
Posts: 45
Joined: Sat Apr 28, 2012 6:08 am
Location: Cape Town, South Africa

Re: PayPal Standard not showing as available payment method

Postby Qphoria » Sat Apr 28, 2012 12:25 pm

What currency is your store?
If the current selected currency is not one of paypals supported currencies, it won't show.
Also be sure that "Status" is enabled
User avatar
Qphoria
Administrator
 
Posts: 19203
Joined: Mon Jul 21, 2008 2:02 pm
Donate to Qphoria

Re: PayPal Standard not showing as available payment method

Postby Steven_B » Sat Apr 28, 2012 12:53 pm

Many thanks for the reply Qphoria,

The probleem is indeed caused by the currency (South African Rand, ZAR).
I just tested the store in EUR and then the PayPal module works fine.

However, I have another store running on v1.5.1.3 and that one works with PayPal Standard without any problems (also in ZAR). The PayPal order summary shows USD, but when logged into my PayPayl account is shows the ZAR amount, so it should be a supported currency.
User avatar
Steven_B
 
Posts: 45
Joined: Sat Apr 28, 2012 6:08 am
Location: Cape Town, South Africa

Re: PayPal Standard not showing as available payment method

Postby Qphoria » Tue May 15, 2012 9:23 am

You have to disable the allowed currency check in the model file that was added in 1.5.2

1. EDIT: catalog/model/payment/pp_standard.php

2. FIND and REMOVE:
Code: Select all
if (!in_array(strtoupper($this->currency->getCode()), $currencies)) {
   $status = false;
}


3. EDIT: catalog/controller/payment/pp_standard.php

4. FIND:
Code: Select all
if ($order_info) {


5. AFTER, ADD:
Code: Select all
$currencies = array(
   'AUD',
   'CAD',
   'EUR',
   'GBP',
   'JPY',
   'USD',
   'NZD',
   'CHF',
   'HKD',
   'SGD',
   'SEK',
   'DKK',
   'PLN',
   'NOK',
   'HUF',
   'CZK',
   'ILS',
   'MXN',
   'MYR',
   'BRL',
   'PHP',
   'TWD',
   'THB',
   'TRY'
);

if (in_array($order_info['currency_code'], $currencies)) {
   $currency = $order_info['currency_code'];
} else {
   $currency = 'USD';
}


It might make more sense for us to put this back to the old way.
User avatar
Qphoria
Administrator
 
Posts: 19203
Joined: Mon Jul 21, 2008 2:02 pm
Donate to Qphoria

Re: PayPal Standard not showing as available payment method

Postby Steven_B » Tue May 15, 2012 10:13 am

Many thanks Qphoria,

We're almost there :-)
The PayPal option does appear now and I do get directed to PayPal, however, now the the exchange rate isn't calculated, so R100 on the checkout = USD100 on the PayPal Order Summary.
User avatar
Steven_B
 
Posts: 45
Joined: Sat Apr 28, 2012 6:08 am
Location: Cape Town, South Africa

Re: PayPal Standard not showing as available payment method

Postby Qphoria » Tue May 15, 2012 12:10 pm

Updated the instructions above
User avatar
Qphoria
Administrator
 
Posts: 19203
Joined: Mon Jul 21, 2008 2:02 pm
Donate to Qphoria

Re: PayPal Standard not showing as available payment method

Postby Steven_B » Tue May 15, 2012 1:10 pm

Unfortunately the exchange rate is still not calculated with the updates below.

Seeing that the updates are basically going back to the pp_standard.php files from v1.5.1.3, I tried uploading the original catalog/controller/payment/pp_standard.php from 1.5.1.3

That seems to work nicely, you reckon that is safe to use?



Update: I've been running your mods + the 1.5.1.3 controller php on my live site now and it seems to be stable...
User avatar
Steven_B
 
Posts: 45
Joined: Sat Apr 28, 2012 6:08 am
Location: Cape Town, South Africa

Re: PayPal Standard not showing as available payment method

Postby automysqlbackup » Thu May 31, 2012 5:59 am

Steven_B wrote:Unfortunately the exchange rate is still not calculated with the updates below.

Seeing that the updates are basically going back to the pp_standard.php files from v1.5.1.3, I tried uploading the original catalog/controller/payment/pp_standard.php from 1.5.1.3

That seems to work nicely, you reckon that is safe to use?

Update: I've been running your mods + the 1.5.1.3 controller php on my live site now and it seems to be stable...


I second that. By replacing the pp standard files in controller and model, from the 1.5.1.3 it works now. I don't know what the reason was behind this change as not everyone is using European or american currencies.
User avatar
automysqlbackup
 
Posts: 22
Joined: Mon May 07, 2012 4:38 pm
Location: USA

Re: PayPal Standard not showing as available payment method

Postby misscaprice » Sun Jul 15, 2012 11:17 am

For bulgarian levas (BGN) neither of the options above is working
1. if using standard 1.5.3.1 files paypal option does not appear at all
2. if using the changes given by Qphoria above the order summary on paypal page is not calculated correctly and 1BGN=1 USD

When using euros everything is working smoothly. OC ver 1.5.3.1
how can I solve this issue
misscaprice
 
Posts: 41
Joined: Sat Jan 22, 2011 5:47 am

Re: PayPal Standard not showing as available payment method

Postby Steven_B » Sun Jul 15, 2012 11:25 am

misscaprice wrote:1. if using standard 1.5.3.1 files paypal option does not appear at all

Did you use catalog/controller/payment/pp_standard.php from version 1.5.1.3? It won't work with the v1.5.3.1 file.
User avatar
Steven_B
 
Posts: 45
Joined: Sat Apr 28, 2012 6:08 am
Location: Cape Town, South Africa

Re: PayPal Standard not showing as available payment method

Postby misscaprice » Sun Jul 15, 2012 11:38 am

No, both my store and paypal files were 1.5.3.1
Should I try the lower versions of pp_standart.php files?

EDIT: Just tried with lower version 1.5.1.3 - still no luck. 1 USD = 1 BGN on the paypal order page
misscaprice
 
Posts: 41
Joined: Sat Jan 22, 2011 5:47 am

Re: PayPal Standard not showing as available payment method

Postby Steven_B » Sun Jul 15, 2012 11:44 am

Download OpenCart v1.5.1.3 and upload ONLY 1 file to your site: catalog/controller/payment/pp_standard.php
This will overwrite the version from 1.5.3.1
Modify your current catalog/model/payment/pp_standard.php (from version 1.5.3.1) as per Qphoria's post above.
User avatar
Steven_B
 
Posts: 45
Joined: Sat Apr 28, 2012 6:08 am
Location: Cape Town, South Africa

Re: PayPal Standard not showing as available payment method

Postby misscaprice » Sun Jul 15, 2012 12:01 pm

Ingenious :) Got it working. Thank you, Steven_B
misscaprice
 
Posts: 41
Joined: Sat Jan 22, 2011 5:47 am

Re: PayPal Standard not showing as available payment method

Postby Steven_B » Sun Jul 15, 2012 12:05 pm

No worries ;-)
However, make sure you test thoroughly, because I'm just a newbie with this... it just works for me for some reason :-)
User avatar
Steven_B
 
Posts: 45
Joined: Sat Apr 28, 2012 6:08 am
Location: Cape Town, South Africa

Re: PayPal Standard not showing as available payment method

Postby fluffypony » Sat Sep 29, 2012 10:24 am

Hi all - I have a vqmod that fixes this if you don't want to play around with core files...plus it's FREE:)

Here we go: http://www.opencart.com/index.php?route ... on_id=8493
fluffypony
 
Posts: 2
Joined: Sat Sep 29, 2012 10:22 am

Re: PayPal Standard not showing as available payment method

Postby testarosax1 » Fri Jan 25, 2013 4:40 pm

I'm on version 1.5.4 and am getting no payment method using paypal standard. I'm using USD default. I've tried everything you have said above to no avail. Has something changed in 1.5? You were so informative on this, I'm hoping someone has seen this. Any words of wisdom?
testarosax1
 
Posts: 3
Joined: Fri Jan 25, 2013 4:34 pm

Re: PayPal Standard not showing as available payment method

Postby wildfixie » Tue Feb 05, 2013 12:48 pm

Hey Testarosa!
It happens the same to me. I'm using the same version as you and have the same same problem.
Did you sort it out? Does anyone knows how to do it? Cuase I looked it up on google but I didnt find anything useful...
Please help us!
Thanks a lot in advance!
wildfixie
 
Posts: 2
Joined: Tue Feb 05, 2013 11:14 am


Return to Payments

Who is online

Users browsing this forum: No registered users and 20 guests

Hosted by Arvixe Web Hosting