Sagepay "The Currency field is missing"

  • Posts: 13
  • Thank you received: 0
10 years 7 months ago #151381

-- url of the page with the problem -- : mywebsite.com/mypage
-- HikaShop version -- : 2.3.0
-- Joomla version -- : 3.2
-- PHP version -- : 5.3
-- Browser(s) name and version -- : Chrome
-- Error-message(debug-mod must be tuned on) -- :

This transaction attempt has failed. We are unable to redirect you back to the web store from which you were purchasing. The details of the failure are given below.

Status: MALFORMED

Status Detail: 3045 : The Currency field is missing.

According to this site: community.sellerdeck.com/showthread.php?t=53764 this error is due to their being no encryption key from Sagepay having been entered. But I cannot see anywhere in the Sagepay payment method where you can enter a Sagepay encryption key.

Thanks in advance for any guidance on this.

Peter

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
10 years 7 months ago #151384

Hi Peter,
Can you show me some screenshots of how did you configured your Sagepay payment method ?

Please Log in or Create an account to join the conversation.

  • Posts: 13
  • Thank you received: 0
10 years 7 months ago #151728

Hi Mohamed

Thank you very much for your help with this

Please see the attached full screenshot of the Sagepay page

Attachments:
Last edit: 10 years 7 months ago by Anastasis. Reason: Replace screenshot with private info blurred

Please Log in or Create an account to join the conversation.

  • Posts: 13
  • Thank you received: 0
10 years 7 months ago #151729

Just a little more information on this...

This is the details of the error from Sagepay website for the error code:

MALFORMED : The Currency field is missing.

Error number: 3045
Error message:
MALFORMED : The Currency field is missing.
Explanation:
The Currency fields should only ever contain the 3-letter ISO 4217 codes and a valid currency code type that has been set up on your Sage Pay account. E.g. GBP for UK Sterling, USD for US Dollars and EUR for Euros. If you do not provide this value, you will receive this system message.
Solution:
You are not passing the currency field through with your transaction. The currency field will dictate what currency is being processed through your Sage Pay account and must be included in the post. The currency field can only accept the ISO - 4217 codes. These are 3 letter codes that will notify Sage Pay of the currency for the transaction.


Source: www.sagepay.co.uk/support/error-codes/ma...rrency-field-missing

I have spoken to Sagepay support and they are confirming that to get this error the currency code is not being passed to Sagepay via the Form Integration. Yes, the currency code GBP is selected in the Hikashop Sagepay plugin as you can see from the screenshot.

Thanks again for your help with this.

Peter

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
10 years 7 months ago #151730

Hi,

The currency send to the SagePay platform is the "currency_code" of your currency.
If you edit your currencies and change the "currency code" it is possible that the new value is not accepted by SagePay.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 13
  • Thank you received: 0
10 years 7 months ago #151833

Hi Jerome

No, there is only one currency code enabled which is GBP and that is what should be being passed to Sagepay which is of course a valid currency code.

GBP is selected as you can see from the screenshot as the currency. Debug is turned on - would that give us a clue what is going wrong? I cannot find a Debug log anywhere - where is it?

Thanks again for your feedback on this.

Peter

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
10 years 7 months ago #151865

Hi,

The payment log file can be read from the HikaShop configuration (section "main / file / payment log file").

About the currency, would it be possible to have a screenshot of your GBP currency configuration ?

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 13
  • Thank you received: 0
10 years 7 months ago #151953

Hi

I checked the payments log file. It reports as empty, but the transactions tested have gone through to the point of redirecting to Sagepay and then get their 3405 error.

A screenshot of the currency configuration screen is attached.

Thanks again,
Peter

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 61
  • Thank you received: 1
10 years 7 months ago #152064

Hi, logging in using our paid account - previous posts above are from a free forum login account - but we have paid for and have been using the Business edition. Just wondering if you have more thoughts on this or would it be easier if we provided super admin access?

Thanks in advance.

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
10 years 7 months ago #152074

Hi,

So your currency is right configured but I think that you checked up the password key several time.
But did you checked that the password does not have a "space" character at the end ?
In your SagePay configuration, do you know which encryption method you are using ?

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 61
  • Thank you received: 1
10 years 7 months ago #152098

Hi Jerome

We have just investigated this some more and spoken to Sagepay and it appears that the password we were using in Hikashop as given by the vendor for this site was not the correct password. That has been corrected now and a transaction processed successfully.

Hopefully this thread will help someone though in terms of having the currency code error and finding this is the solution.

We do have a couple more things to resolve, but as they don't come under the heading of this thread I will start another forum thread if needed.

Thank you.

Please Log in or Create an account to join the conversation.

Time to create page: 0.107 seconds
Powered by Kunena Forum