Forums / Developer / multiple currencies and payment gateways

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

multiple currencies and payment gateways

Author Message

Quynh Nguyen

Sunday 05 April 2009 8:38:31 am

Hi,

I met the problem when implementation the shopping cart and payment gateway. Because there are many payment gateways and each of them are supporting some currencies but not all.

In product class I remove old price attribute and use multiple-currencies. It is easy...

Then I add more extension to my website: ezpaypal to use paypal payment gateway. And develop another payment gateway (similar to ezpaypal - eZRedirectGateway). Because paypal is only support some mainly currencies, I need more for my local customers. The code in ezpaypal is very clearly and simple, so make a clone and modify so easy too...

Problem is: when payment gateway call function createRedirectionUrl($process) it get the amount to send to payment gateway.

        $amount         = urlencode( $order->attribute( 'total_inc_vat' ) );

I don't know how to get the amount belong to payment gateway that user choices, for example:
- ezpaypal: use to pay USD
- my gateway: use to pay VND

Please help me. It is really important and urgent!

Thanks so much!