I have created a custom payment module for WHMCS, for Bangladeshi popular mobile banking system "bKash." I use two currency for payment processing, USD and BDT (Bangladeshi Taka). The module converts currency to BDT during processing. If clients profile’s currency is BDT, then it processing the payment regularly.
But problem is causing when clients profile’s USD. Conversion rate from USD to BDT is $1=Tk80. Suppose, client is paying $9. That is BDT-720. In payment page, it’s displaying Tk720. But after processing the payment, its showing client has paid $720 (But is should be $9 or Tk720).