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!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.