Jump to content
Sign in to follow this  
sensedavid

SagePay Token payments Malformed

Recommended Posts

Hi,

 

Just wondered if anyone else is having problems accepting payments via SagePay Token after 5.2.2 update today?

 

Customers are told when making a payment - "Remote Transaction Failure. Please Contact Support." error to customer.

 

Live SagePay control panel says "Either an INVALID or MALFORMED response was returned. " delivery and cardholder addresses are blank. I believe cardholder address should be submitted to Sage normally

 

Thanks

David

Share this post


Link to post
Share on other sites

Quick fix seems to be to revert /modules/gateways/sagepaytokens.php to version 5.1.4. This gets initial payments to work again, not sure about repeat payments yet though

 

Thanks

David

Share this post


Link to post
Share on other sites

Hi,

 

This is broken with 5.2, it was reported during the beta. Matt is looking into fixing this module. I'm currently waiting on an update from him for this.

Share this post


Link to post
Share on other sites

Hi,

 

I've been testing an updated module provided by Matt, this is working bar the removal of the token if a customer wishes to remove their card details, selects to not store them or we as admin remove them.

 

I have a support case logged with SagePay for this as the correct details are being passed by the module but for some reason it is returning an error that the token was not created by our vendor name.

 

Hopefully they'll have some answers on this so Matt can push the new module soon.

Share this post


Link to post
Share on other sites

Hi Neil,

 

Matt has emailed me a fix tonight which i've installed and I am just waiting to see if auto payment go through in the morning and let you know. Not sure if this will be the same copy.

 

Thanks

David

Share this post


Link to post
Share on other sites

Hi all,

 

I experienced a problem today with v5.2.5, when I tried paying an invoice as our test client. I chose the option not to store the card details, and I got the following response in the gateway log:

 

SagePay Tokens 3DAuth

VPSProtocol => 2.23

Status => MALFORMED

StatusDetail => 3051 : The CardNumber field is required.

 

Credit/Debit Card Remote Storage

VPSProtocol => 2.23

TxType => TOKEN

Status => MALFORMED

StatusDetail => 3051 : The CardNumber field is required.

 

But when I allowed WHMCS to store the card details, the transaction worked OK.

 

So if anyone else experiences the same issue, the fix is to go into Setup, General Settings, Security and untick the box next to "Allow Client CC Removal".

 

If you want to allow clients to make single payments by card, I guess the solution is to set up one of the other SagePay payment gateways as well.

 

Hope this is helpful to someone.

 

Cheers,

Steve

Share this post


Link to post
Share on other sites

Hi Steve,

 

Surely this is bypassing the token system and storing in your mysql database instead of just a token?

 

Thanks

David

Share this post


Link to post
Share on other sites

Hi,

 

With the token module it only stores the token, last 4 digits, expiry date. I believe it also stored the start date and issue number if you have those enabled.

 

If you select to not store card details even though this module is not actually storing them then WHMCS will not store the token details.

 

If you allow clients to remove their card details it will remove the token both in WHMCS and from the sagepay servers.

 

@SteveTalbot I believe the errors you were getting is due to the legacy code in the token module to convert from the old none token gateway to a token - though I have advised Matt this will not work and have sent them an updated module with a number of fixes - not sure they will use the updated module in the next release or provide it to anyone else.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated