WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.6 is now available!


Will it continue with WB? It goes on! | Geht es mit WB weiter? Es geht weiter!
https://forum.websitebaker.org/index.php/topic,32340.msg226702.html#msg226702


The forum email address board@websitebaker.org is working again
https://forum.websitebaker.org/index.php/topic,32358.0.html


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Bakery Shop »
  • Payment methods based on country
  • Print
Pages: [1]   Go Down

Author Topic: Payment methods based on country  (Read 4072 times)

Offline dana

  • Posts: 53
    • Webdesign by Dana
Payment methods based on country
« on: May 28, 2013, 06:19:09 PM »
I'm not sure if it's been talked about before (I've searched but didn't find much), but is it possible to have specific payment method for other countries?

Right now, I have bank transfer and COD for my home country. I'd like to add abroad option, but I don't want to use COD because that's too expensive and instead use PayPal as the second form of paying.

Since I can't use shipping based on payment method, this would be the best course of action.

I'm pretty decent at PHP and MySQL, so it's no problem for me to implement the necessary changes.
Logged
Webdesign by Dana

Offline Ruud

  • Posts: 3671
  • Gender: Male
  • Do not use PM for help! Please use the forum!
    • Dev4Me - Professional WebsiteBaker Development
Re: Payment methods based on country
« Reply #1 on: May 28, 2013, 10:57:14 PM »
(without testing!!)

If you look at the paypal "processor.php" you will find a small test to see if the customer is a US customer or not.
Just build the same test for your country in the processor.php of the COD plugin, and if it fails "return" to the calling script without building the block. (or write a message the method is not available)
Logged
Dev4me - WebsiteBaker modules - WBhelp.org

Offline dana

  • Posts: 53
    • Webdesign by Dana
Re: Payment methods based on country
« Reply #2 on: May 29, 2013, 07:40:32 PM »
Thank you so much, I'll try that. :)
Logged
Webdesign by Dana

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Bakery Shop »
  • Payment methods based on country
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2