spree/spree — Issue #731: SagePay Gateway Error - status: MALFORMED
Author: hatchws
Created: 2011-11-04 13:14:06+00:00
State: open

I got this error in the logs when adding SagePay as a payment method.

Gateway Error
--- !ruby/object:ActiveMerchant::Billing::Response
params:
VPSProtocol: '2.23'
Status: MALFORMED
StatusDetail: ! '3051 : The CardNumber field is required.'
message: ! '3051 : The CardNumber field is required.'
success: false
test: true
authorization: R240633320;;;;authorization
fraud_review: !!null
avs_result:
code: !!null
message: !!null
street_match: !!null
postal_match: !!null
cvv_result:
code: !!null
message: !!null
(76.1ms) ROLLBACK
Redirected to http://localhost:3000/checkout/confirm

To re-create the issue, I:

- installed a new rails app with a new gemset
- installed Spree 0.7.1
- loaded in the sample data
- added the new payment method of SagePay
- Server: test
- Test: true
- Login: [sage pay dev account username]
- Password: [sage pay dev account password]
- Account: [sage pay dev account email]
- choose a product, and run thro the payment process - obviously selecting the SagePay option
- press 'Place Order', and the following meesage appears: 'Payment could not be processed, please check the details you entered', and the log values above.

Do you need any other information?