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). Cheers, Dan
Scott Raymond
2006-Mar-25 16:31 UTC
[Rails] Re: Rails PayPal and Currencies other than USD
Dan Harper <dan@danharper.org> 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 Raymond
Hey, I can''t seem to get it working with Canadian Dollars either. <%= paypal_setup "007", Money.ca_dollar(100), "paypal@myemail.com", { :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 Scott Raymond wrote:> Dan Harper <dan@danharper.org> 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 Raymond > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
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 Harper 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