# Re: Rails PayPal and Currencies other than USD

**URL:** <https://www.ruby-forum.com/t/re-rails-paypal-and-currencies-other-than-usd/55944>\
**Category:** Rails\
**Created:** [March 25, 2006, 5:31pm UTC](https://www.ruby-forum.com/t/re-rails-paypal-and-currencies-other-than-usd/55944 "2006-03-25T17:31:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![scottrutherford](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/d07c76/32.png) [@scottrutherford](https://www.ruby-forum.com/u/scottrutherford)\
**Post date:** [March 25, 2006, 5:31pm UTC](https://www.ruby-forum.com/t/re-rails-paypal-and-currencies-other-than-usd/55944/1 "2006-03-25T17:31:18Z")

</div>

Dan H. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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.

---

<div class="post-metadata">

**Author:** ![scottrutherford](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/d07c76/32.png) [@scottrutherford](https://www.ruby-forum.com/u/scottrutherford)\
**Post date:** [March 25, 2006, 9:26pm UTC](https://www.ruby-forum.com/t/re-rails-paypal-and-currencies-other-than-usd/55944/2 "2006-03-25T21:26:26Z")

</div>

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

\<%= paypal\_setup “007”,  
Money.ca\_dollar(100),  
“removed\_email\_address@domain.invalid”,  
{  
: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

---

<div class="post-metadata">

**Author:** ![scottrutherford](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/d07c76/32.png) [@scottrutherford](https://www.ruby-forum.com/u/scottrutherford)\
**Post date:** [March 26, 2006, 8:32pm UTC](https://www.ruby-forum.com/t/re-rails-paypal-and-currencies-other-than-usd/55944/3 "2006-03-26T20:32:17Z")

</div>

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 😉 .

-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

---

<div class="post-metadata">

**Author:** ![scottrutherford](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/d07c76/32.png) [@scottrutherford](https://www.ruby-forum.com/u/scottrutherford)\
**Post date:** [March 26, 2006, 8:39pm UTC](https://www.ruby-forum.com/t/re-rails-paypal-and-currencies-other-than-usd/55944/4 "2006-03-26T20:39:16Z")

</div>

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
