Forum: Ruby on Rails Re: Rails PayPal and Currencies other than USD

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Scott R. (Guest)
on 2006-03-25 18:31
(Received via mailing list)
Dan H. <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.
Eric G. (Guest)
on 2006-03-25 22:26
(Received via mailing list)
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
Dan H. (Guest)
on 2006-03-26 22:32
(Received via mailing list)
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
Dan H. (Guest)
on 2006-03-26 22:39
(Received via mailing list)
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
This topic is locked and can not be replied to.