VirtueMart Forum

VirtueMart 1.1.x [ Old version - no longer supported ] => Payment VM 1.1 => PayPal / PayPal Pro VM 1.1 => Topic started by: waynedejager on August 04, 2011, 13:59:06 PM

Title: Change invoice amount in paypal plugin
Post by: waynedejager on August 04, 2011, 13:59:06 PM
Hi There - i am hoping for some help....

I have a site that is in South African Rands (ZAR) - i have a few payment plugins all fine. I have added a PAYPAL plugin , however paypal doesnt accept payment in ZAR - i also dont want to show my clients a dollar price when checking out and simply want the paypal plugin to convert the ZAR invoice amount to US$....

I have played around with some variables like this :-
"amount" => round( $db->f(("order_subtotal")+$tax_total-$discount_total)/7, 2), (note the divide by 7) i am not too worried about the exact exchange rate and 7 is fine - but i cannot get this to work (i am not using the correct coding and dont know how to do it)

Please can some sharp friend out there point me in the right direction and help with the correct code.
Much appreciated!!!
Title: Re: Change invoice amount in paypal plugin
Post by: jameel on September 15, 2011, 16:53:31 PM
you need to convert ZAR into any supported currencies. here is one module that does all for you and you can set any currency from the list of 98 and set to any one supported by paypal.

http://www.itechshop.org/index.php?option=com_virtuemart&page=shop.product_details&flypage=flypage.tpl&product_id=19&vmcchk=1&Itemid=7

this module uses Google finance to converted paypal unsupported currencies into paypal supported