Home
Suggestions and new ideas
Easy Solution Resolving The Problem Multiple Currencies in Pap4
Easy Solution Resolving The Problem Multiple Currencies in Pap4
3 years ago submited by Marc Wijnants
I see a lot of people talking/complaining about the Multiple currencies in PAP and that they have to keep the currency conversion up to date and how it is shown in Pap. Wel I fully understand it's almost impossible to build pap in a way that the screens can use more then 1 currency. So a default currency is fully understandable in PAP4.
Well, I thought this over a long time how to solve this; and I think we can solve this in a very simple way without changing PAP to mutch.
Okey, I'll explain the simple solution and I explain it with my own company as example.
In my PAP installation I use € EURO as my default currency. I also added $ USD as an extra currency and later on I also want to ad more currencies. So everything is computed to € because it's my default currency; right.
Okey, how to solve the problem with keeping track of the currency changes then. Well, very simple; there are tons of open source scripts out there that do a currency converting with direct currency parsing, so you only need to implement an open source converter to pap and the problem is solved.
Pap can check for the new currency conversions and change the commission details in PAP or the details can be parsed to Pap periodically (every hour, day for instance); it can also use the present exchange in computing the payouts. Pap allready has all the rest build in and it only needs to use the currency details it got from the currency convertion script with the right details. I think this should be easy to implement:
I did a simple search with google and filled out - open source currency conversion script -
Example to check (based on Joomla; if i'm not mistaken the pap script easaly works with joomla):
http://www.sourcecodeonline.com/list?q=joomla_currency_converter
This currency converter requires the site admin to specify the amount to be converted and the currencies to convert from and to in the script. This works well with simple output. The exchange rate is parsed directly from Yahoo.
So, PAP already has the feature build in and the problem is solved. It can specify for the admin/merchant so the merchant doesn't have to do it.
So how to use in a practicle way. I use my own company in this example (I also use DLGuard).
I have € as default. I sell an eBook for $47.00 usd witch is an added currency. After paying of customer the customer is redirected to my DLGuard. DLGuard sends the orderid, productid, totalprice, and $ (this tag option probably exists allready or needs to be added to pap tracking) to pap. Pap tracks this and knows the price is $47.00. Pap knows the $prise needs to be converted to € prise because that is the default currency for the system. Pap has the latest currencies (from Yahoo for instance) and can compute easely everything to €. That's it. An easy solution for the currency issues.
It doesn't matter how many currencies are used. As long it can be parsed to pap form yahoo for instance the problem is solved. Pap merchants only need to ad the price (+productid,orderid is also added a lot of times)to the pap script on sale + THE CURRENCY TAG; like they normally do in integration of the tracking codes. Off course it can also use all of this with click commissions.
So, that's it; an Easy Solution Resolving The Problem Multiple Currencies in Pap4
Please let me know what you think about this; or problems I didn't think about.
Best Regards,
Marc Wijnants