[ic] Currencies and PayPal

Paco Sánchez interchange-users@icdevgroup.org
Wed Jan 15 08:38:10 2003


Hello,

We have implemented payment by PayPal at our online store.  Currently we are
indicating all prices in Euros, and this is our solution:

[tmp dirty_cost][total-cost][/tmp]

[tmp clean_price][perl]
    my $FilterData = $Scratch->{dirty_cost};
    $FilterData =~ s/\€//g;
    return $FilterData;
[/perl][/tmp]

[if value payment_method eq paypal]
<P>
<TABLE width="90%" style="border-collapse: collapse" bordercolor="#111111"
cellpadding="0" cellspacing="0">
<tr>
<td><form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="xxx">
<input type="hidden" name="item_name" value="order [value mv_order_number]">
<input type="hidden" name="amount" value="[scratch clean_price]">
<input type="hidden" name="return" value="xxx">
<input type="hidden" name="cancel_return" value="xxx">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="EUR">
<p align="center">
<input type="image" src="https://www.paypal.com/images/x-click-but6.gif"
border="0" name="submit" alt="Make payments with PayPal - $
</p>
</form>
</td>
<td align=right><p align="center">[L 36_35]Please click this button to
complete payment of your order with your PayPal account or c$
</td>
</tr>
</TABLE>
[/if]

As you can see, in this example, the currency code is EUR.  Now we would
also like to accept US dollars, Canadian dollars and British pouds, which
can now be processed with paypal, however have no idea on how to do this.

Say the customer chooses US dollars in the currency selection panel.  The
URL would be something like
www.interchange.com/interchange/process/locale/en_US/currency/en_US/index.ht
ml.  Is it anyway to put any interchange tag at <input type="hidden"
name="currency_code" value="EUR"> so that it shows the chosen currency,
instead of EUR to PayPal?

Thanks for your help.


Paco Sánchez
http://pacosanchez.com
mailto:psanchez%40pacosanchez%2ecom
ICQ 101879542