Re: Rails PayPal and Currencies other than USD

Dan H. [email protected] wrote:

Has anyone been able to make direct API calls to PayPal in currencies
other than USD? I get an error message “The currency code submitted is
not supported. Check the currency code and try again.”

I’m using the PayPal plugin for Rails. I can successfully transact in
USD, but not AUD (Australian Dollars).

Alas, It’s hard-coded to USD in the library. I haven’t tried hacking
on it to see if that can be reliably changed.

Scott R.

Hey,
I can’t seem to get it working with Canadian Dollars either.

<%= paypal_setup “007”,
Money.ca_dollar(100),
[email protected]”,
{
:notify_url => url_for(:path_only => false, :controller =>
“backend”, :action => ‘paypal_ipn’),
:currency => “CAN”,
:item_name => “Loonie”
}
%>

If I use US currency it seems to work fine for me too. I think there
must be an bug in the Paypal sandbox code. I have CAN set to my primary
currency and yet apperently I don’t accept it. Bizzare.
I’ve posted on the Paypal dev form, so hopefully we’ll have an answer
soon.

  • Eric

Just for everyone’s reference, PayPal does not support any other
currency other than USD when using their API directly. This means no
AUD, CAN, EUR, support at all using the PayPal API. Here’s a note from
the author of the Rails PayPal SOAP API plugin:

Dan,

At the time of implementation, PayPal would only accept payment requests
for
USD–it’s not a restriction from our end. I’d suggest consulting the
PayPal
docs (I think we link to them in the RDOC) or contacting them directly
with
a support question. If they add it, we will :wink: .

-Jonathan

You can also refer to many posts in the developer forums asking when
this will change alongside PayPal’s “close to never” (for the moment)
response.

Oh well, it certainly means that my perty Rails app won’t be as perty as
I’ll have to forward my cart to the ugly PayPal site for my users to
checkout with their personal and credit card details.

Cheers,
Dan

Dan H. wrote:

Oh well, it certainly means that my perty Rails app won’t be as perty
as I’ll have to forward my cart to the ugly PayPal site for my users
to checkout with their personal and credit card details.

BTW, I should ask… Has anyone found another system that will offer
API-like credit card processing with support for AUD and some kind of
Rails (or even another language for reference to build a Rails adaptor)
support? I’d prefer one that doesn’t have the astronomical (well, not
quite astronomical, but for a self-funded startup anything above $100 is
a bit steep) up front costs like the Australian banks charge.

Cheers,
Dan