You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

: [PAYMENT METHOD] Alertpay - Currency Converter

Started by mehdoush, January 14, 2012, 09:41:13 AM

Previous topic - Next topic


hello i ' m using Alertpay payment module ,i find it for free in this website :

my issue is that my shop is base on tunisian dinar currency code is TND.  Alertpay don't accept this currency code.

my installed currency conversion plugin is oandaCONVERT. could you help me . you can find the extra info bellow :

<?php  $payment_url="";

$post_variables=Array(  "ap_purchasetype"=>AP_PURCHASETYPE
   "apc_1"=>$order_num_display ); 
    $db1 = new ps_DB(); 

 $q "SELECT order_item_sku,order_item_name,product_quantity,product_final_price,product_attribute FROM #__vm_order_item WHERE order_id='".$db->f("order_id")."' ORDER BY order_item_id ASC"
  $rows $db1->query($q);
   while ($db1->next_record())
    {  $this_item_name=trim($db1->f("order_item_name")); 
 $this_item_desc=strip_tags(str_replace("<br/>"" "str_replace("<br />"" "$db1->f("product_attribute"))));  
 $post_variables[$temp_item_name_varname]=($i==0)?"Order #".$order_num_display.": ".$this_item_name:$this_item_name;  $post_variables[$temp_item_qty_varname]=$this_item_qty
  $post_variables[$temp_item_desc_varname]=$this_item_desc;   $i++;  }  
  $ap_currency "USD";
global $vendor_currency;
$amt_a $post_variables["amount"];
$amt_s $post_variables["shipping"];
if (!$vendor_currency){
$vendor_currency $_SESSION['vendor_currency'];

if (file_existsCLASSPATH.'currency/convertOANDA.php')) {
$traznet = new convertOANDA();
$convert true;
$tmp_a $traznet->convert$amt_a$vendor_currency$paypal_currency );
$tmp_s $traznet->convert$amt_s$vendor_currency$paypal_currency );
if( !empty($tmp_a) && !empty($tmp_s)) {
$convert 1;
$post_variables["amount"] = round$tmp_a2);
$post_variables["shipping"] = round$tmp_s2);
$post_variables["currency_code"] = $paypal_currency;
$update_post 1;

  foreach($post_variables as $name=>$value)
    echo '<form action="" enctype="application/x-www-form-urlencoded" method="post">';
 foreach($post_variables as $name=>$value)
 echo '<input type="hidden" name="'.$name.'" value="'.htmlspecialchars($value).'" />';
  } echo '</form>';
   } ?>


Dear mehdoush

here is alertpay (Now payza) module for vm 1.x.x that let you convert your currency..

it uses now..

it takes any payza unsupported currency from your store and convert it into payza supported one that you configured at back end using Google finance

Now you can use any of following currency on your virtuemart shop, this module will do its job and converted them to the any payza supported currencies you configure at backend.

Payza supported currencies you can accept using this module

Australian Dollar (AUD)
Bulgarian Lev (BGN)
Canadian Dollar (CAD)
Swiss Franc (CHF)
Czech Koruna (CZK)
Danish Krone (DKK)
Estonia Kroon (EEK)
Euro (EUR)
Pound Sterling (GBP)
Hong Kong Dollar (HKD)
Hungarian Forint (HUF)
Indian Rupee (INR)
Lithuanian Litas (LTL)Malaysian Ringgit (MYR)
Macedonian Denar (MKD)
Norwegian Krone (NOK)
New Zealand Dollar (NZD)
Polish Zloty (PLN)
Romanian New Leu (RON)
Swedish Krona (SEK)
Singapore Dollar (SGD)
U.S. Dollar (USD)
South African Rand (ZAR)

You can set any of following 98 currencies in virtuemart

United Arab Emirates Dirham (AED)
Netherlands Antillean Guilder (ANG)
Argentine Peso (ARS)
Australian Dollar (AUD)
Bangladeshi Taka (BDT)
Bulgarian Lev (BGN)
Bahraini Dinar (BHD)
Brunei Dollar (BND)
Bolivian Boliviano (BOB)
Brazilian Real (BRL)
Botswanan Pula (BWP)
Canadian Dollar (CAD)
Swiss Franc (CHF)
Chilean Peso (CLP)
Chinese Yuan (CNY)
Colombian Peso (COP)
Costa Rican Colón (CRC)
Czech Republic Koruna (CZK)
Danish Krone (DKK)
Dominican Peso (DOP)
Algerian Dinar (DZD)
Estonian Kroon (EEK)
Egyptian Pound (EGP)
Euro (EUR)
Fijian Dollar (FJD)
British Pound Sterling (GBP)
Hong Kong Dollar (HKD)
Honduran Lempira (HNL)
Croatian Kuna (HRK)
Hungarian Forint (HUF)
Indonesian Rupiah (IDR)
Israeli New Sheqel (ILS)
Indian Rupee (INR)
Jamaican Dollar (JMD)
Jordanian Dinar (JOD)
Japanese Yen (JPY)
Kenyan Shilling (KES)
South Korean Won (KRW)
Kuwaiti Dinar (KWD)
Cayman Islands Dollar (KYD)
Kazakhstani Tenge (KZT)
Lebanese Pound (LBP)
Sri Lankan Rupee (LKR)
Lithuanian Litas (LTL)
Latvian Lats (LVL)
Moroccan Dirham (MAD)
Moldovan Leu (MDL)
Macedonian Denar (MKD)
Mauritian Rupee (MUR)
Maldivian Rufiyaa (MVR)
Mexican Peso (MXN)
Malaysian Ringgit (MYR)
Namibian Dollar (NAD)
Nigerian Naira (NGN)
Nicaraguan Córdoba (NIO)
Norwegian Krone (NOK)
Nepalese Rupee (NPR)
New Zealand Dollar (NZD)
Omani Rial (OMR)
Peruvian Nuevo Sol (PEN)
Papua New Guinean Kina (PGK)
Philippine Peso (PHP)
Pakistani Rupee (PKR)
Polish Zloty (PLN)
Paraguayan Guarani (PYG)
Qatari Rial (QAR)
Romanian Leu (RON)
Serbian Dinar (RSD)
Russian Ruble (RUB)
Saudi Riyal (SAR)
Seychellois Rupee (SCR)
Swedish Krona (SEK)
Singapore Dollar (SGD)
Slovak Koruna (SKK)
Sierra Leonean Leone (SLL)
Salvadoran Colón (SVC)
Thai Baht (THB)
Tunisian Dinar (TND)
Turkish Lira (TRY)
Trinidad and Tobago Dollar (TTD)
New Taiwan Dollar (TWD)
Tanzanian Shilling (TZS)
Ukrainian Hryvnia (UAH)
Ugandan Shilling (UGX)
US Dollar (USD)
Uruguayan Peso (UYU)
Uzbekistan Som (UZS)
Venezuelan Bolívar (VEF)
Vietnamese Dong (VND)
Yemeni Rial (YER)
South African Rand (ZAR)
Zambian Kwacha (ZMK)
Virtuemart + Joomla extensions
get Paypal extended, payza extended, moneybookers extended module that let you use 98  currencies nonsupported paypal/alertpay/mb currencies on VM 1.1.x and convert them to supported one at

220+ domain extensions