SagePay 4008 : The Currency is not supported on this account.

808 views
Skip to first unread message

nikimere

unread,
Aug 25, 2010, 3:04:18 PM8/25/10
to Spree
Hi,

I'm having some issues with SagePay. I keep getting the error message
"4008 : The Currency is not supported on this account.". I've copied
the sage_pay.rb from Active Merchant to my /vendor/extensions/site/lib
directory and changed the default_currency to "EUR", which is correct
for my bank account. But still i get the non-supported currency
response.

Is there something else i'm missing?

nikimere

unread,
Oct 16, 2010, 9:41:54 AM10/16/10
to Spree
Anyone? It keeps sending the currency type to SagePay as GBP...
I can't see GBP set anywhere in the project, if anything i would have
thought Spree would be USD by default?


On Aug 25, 8:04 pm, nikimere <nikim...@gmail.com> wrote:
> Hi,
>
> I'm having some issues with SagePay. I keep getting the error message
> "4008: TheCurrencyisnotsupportedon this account.". I've copied

Brian

unread,
Oct 16, 2010, 11:35:26 AM10/16/10
to Spree
Hey Niki,
I've not used SagePay before, but I suggest you take a look at what's
being posted to Sage and see if the currency is being set incorrectly.

If you're just doing authorize transactions (aka
Spree::Config[:auto_capture] is false), then you'll want to debug or
just puts out the contents of 'post' just before:

http://github.com/Shopify/active_merchant/blob/master/lib/active_merchant/billing/gateways/sage_pay.rb#L88

I'm guessing if it's set correctly there, then it might some setting
you need to tweak on the SagePay admin website?

Hope that helps,

BDQ

nikimere

unread,
Oct 16, 2010, 12:12:32 PM10/16/10
to Spree
I've looked at what is being posted to Sage and currency is being set
to "GBP".
I've taken a copy of the sage_pay.rb file, modified it to suit 'EUR'
and put it in /extensions/theme_default/lib/sage_pay.rb
Maybe this is the wrong place? That would explain why it's not picking
up my changes...??

Cheers,
Niki


On Oct 16, 4:35 pm, Brian <briandqu...@gmail.com> wrote:
> Hey Niki,
> I've not used SagePay before, but I suggest you take a look at what's
> being posted to Sage and see if the currency is being set incorrectly.
>
> If you're just doing authorize transactions (aka
> Spree::Config[:auto_capture] is false), then you'll want to debug or
> just puts out the contents of 'post' just before:
>
> http://github.com/Shopify/active_merchant/blob/master/lib/active_merc...

Brian Quinn

unread,
Oct 16, 2010, 12:16:04 PM10/16/10
to spree...@googlegroups.com
Are you requiring the customized version of sage_pay.rb? 

--
You received this message because you are subscribed to the Google Groups "Spree" group.
To post to this group, send email to spree...@googlegroups.com.
To unsubscribe from this group, send email to spree-user+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/spree-user?hl=en.




--
Brian Quinn

-------------------------------------------
Rails Dog LLC
2 Wisconsin Circle, Suite 700
Chevy Chase, MD 20815
voice: (301)560-2000
-------------------------------------------

nikimere

unread,
Oct 16, 2010, 1:48:41 PM10/16/10
to Spree
Yeh, well i have to customise the sage_pay.rb to localise it to
Ireland. i.e. add Laser support, change default_currency from GBP to
EUR etc...
It's as if it's not picking up my custome version...

On Oct 16, 5:16 pm, Brian Quinn <br...@railsdog.com> wrote:
> Are you requiring the customized version of sage_pay.rb?
>
> > spree-user+...@googlegroups.com<spree-user%2Bunsu...@googlegroups.com>
> > .

nikimere

unread,
Oct 16, 2010, 2:18:09 PM10/16/10
to Spree
Sorry, think i mis-read your post. No i haven't required it the
modified sage_pay.rb.
In which file should i do that?

- Niki

On Oct 16, 5:16 pm, Brian Quinn <br...@railsdog.com> wrote:
> Are you requiring the customized version of sage_pay.rb?
>
> > spree-user+...@googlegroups.com<spree-user%2Bunsu...@googlegroups.com>
> > .

Brian Quinn

unread,
Oct 16, 2010, 2:51:03 PM10/16/10
to spree...@googlegroups.com
My fault, I should have explicitly said "require"

You can require it inside site_extension.rb

Take a look at this for how it's done in the PayPal extension:




To unsubscribe from this group, send email to spree-user+...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/spree-user?hl=en.

nikimere

unread,
Oct 16, 2010, 3:51:24 PM10/16/10
to Spree
Excellent! That was the problem, thanks a mill Brian!

On Oct 16, 7:51 pm, Brian Quinn <br...@railsdog.com> wrote:
> My fault, I should have explicitly said "require"
>
> You can require it inside site_extension.rb
>
> Take a look at this for how it's done in the PayPal extension:
>
> http://github.com/railsdog/spree-paypal-express/blob/master/paypal_ex...
> > <spree-user%2Bunsu...@googlegroups.com<spree-user%252Buns...@googlegroups.com>
Reply all
Reply to author
Forward
0 new messages