I just tested the btcz.in gateway with some different currency code by using p_amount
and p_currency_code
parameters: usd, cad, chf, xaf, rub and eur.
The only one that was not just is the USD that also give the amount in euro based conversion…
Until this problem is solved in btcz.in gateway, I put a condition in the btcz.php:
if ($CurrencyCode == 'usd') {
$fields = array(
'f' => "create",
'p_addr' => urlencode($MerchantAddress),
'p_pingback' => urlencode($PingbackUrl),
'p_invoicename' => urlencode($InvoiceID),
'p_email' => urlencode($MerchantEmail),
'p_secret' => urlencode($Secret),
'p_expire' => urlencode($Expire),
'p_success_url' => urlencode($ReturnUrl),
'p_amount_usd' => urlencode($Amount)
);
} else {
$fields = array(
'f' => "create",
'p_addr' => urlencode($MerchantAddress),
'p_pingback' => urlencode($PingbackUrl),
'p_invoicename' => urlencode($InvoiceID),
'p_email' => urlencode($MerchantEmail),
'p_secret' => urlencode($Secret),
'p_expire' => urlencode($Expire),
'p_currency_code' => urlencode($CurrencyCode),
'p_success_url' => urlencode($ReturnUrl),
'p_amount' => urlencode($Amount)
);
}
Hope this help !