Post by darth_danny » Thu Aug 04, 2016 10:07 pm

Hi

I am creating a custom payment method that I want to be displayed in the payment method options only if the user has changed the currency to a specific currency

New member

Posts

Joined
Wed Jul 27, 2016 5:41 pm

Post by straightlight » Thu Aug 04, 2016 10:46 pm

The closest match I found would be this extension: http://www.opencart.com/index.php?route ... h=restrict payment . However, I would still suggest to contact the extension developer to see if your enquiry is included specifically before considering to purchase.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by Johnathan » Thu Aug 04, 2016 11:23 pm

Yes, Restrict Payment Methods can limit payment methods based on the currency selected. Feel free to take a look at the screenshots and demo site, and if you're interested let me know at www.getclearthinking.com/contact if you have any further questions.

Image Image Image Image Image


User avatar
Administrator

Posts

Joined
Fri Dec 18, 2009 3:08 am


Post by darth_danny » Thu Aug 11, 2016 7:53 pm

Hi,

How does paypal standard do it? I noticed when I switched to my local currency, paypal standard is not displayed until dollar or Euro is selected

New member

Posts

Joined
Wed Jul 27, 2016 5:41 pm

Post by Johnathan » Thu Aug 11, 2016 11:51 pm

darth_danny wrote:Hi,

How does paypal standard do it? I noticed when I switched to my local currency, paypal standard is not displayed until dollar or Euro is selected
A standard installation doesn't have any currency restrictions on payment methods, and PayPal Standard doesn't have anything in its code that I'm aware of, so you probably have something installed if a payment method disables it when a certain currency is selected.

(Note: I deleted your duplicate topic with this same question.)

Image Image Image Image Image


User avatar
Administrator

Posts

Joined
Fri Dec 18, 2009 3:08 am


Post by darth_danny » Tue Aug 16, 2016 3:23 pm

Solved it. There is an array in a modal class of Paypal Standard module that has a list of supported currencies and a check that generally passes paypal module information to the controller if the currency is matched to one in the array :)

New member

Posts

Joined
Wed Jul 27, 2016 5:41 pm

Post by Johnathan » Tue Aug 16, 2016 11:31 pm

Ah, you're right. I've never noticed that before. You can probably copy and paste that code to do something similar in your own payment method's model file, if you want to limit it to particular currencies.

Image Image Image Image Image


User avatar
Administrator

Posts

Joined
Fri Dec 18, 2009 3:08 am

Who is online

Users browsing this forum: No registered users and 3 guests