Hi there,
I have RBS worldpay setup and working successfully except for the following issue:
Callbacks are working, on a successful new order, the order is updated as follows:
EG:
12/31/2010 00:05:21 Preparing [WorldPay] WorldPay: Transaction Verified
But then a few seconds later:
12/31/2010 00:05:25 Preparing [WorldPay] WorldPay: Incorrect Transaction Hash
Before:
12/31/2010 00:05:25 Preparing [WorldPay]
This happens on every order. I have located the code that generates the above:
function before_process() in includes/modules/payment/worldpay_junior.php
$sql_data_array = array('orders_id' => $order_id,
'orders_status_id' => MODULE_PAYMENT_WORLDPAY_JUNIOR_PREPARE_ORDER_STATUS_ID,
'date_added' => 'now()',
'customer_notified' => '0',
'comments' => (($hash_result == true) ? 'WorldPay: Transaction Verified' : 'WorldPay: Incorrect Transaction Hash'));
Any ideas what could be causing an issue with the hash result or why it is iterating over the function twice?
Here is an edited version of the callback email:
RBS WorldPay Post Values
\nauthAmountString : £65.00
_SP_charEnc : UTF-8
M_sid : ccda3bxxxxxXXXxxxXXXxxxXXXxx
desc : FOO SHOP
tel : 0123456789
MC_callback :
foo.net/ext/modules/payment/worldpay/junior_callback.php
countryMatch : Y
cartId : 1234
M_hash : 47XXXXXXXXXXXXXXXXXXXXXxxxXXXXx0b
lang : en
callbackPW : MYPASSWORD
rawAuthCode : A
amountString : £65.00
transStatus : Y
authCost : 65.00
currency : GBP
installation : 1234
amount : 65.00
countryString : Sweden
M_lang : english
transTime : 1293750319266
testMode : 0
name : CustomerName
ipAddress : CustomerIP
fax :
rawAuthMessage : cardbe.msg.authorised
instId : 1234
AVS : 1234
compName : The Company Name
M_cid : 1234
authAmount : 65.00
postcode : 1234
cardType : Visa
cost : 65.00
authCurrency : GBP
country : SE
charenc : UTF-8
email : customer@email
address : cust address
transId : 2028257460
authentication : ARespH.card.authentication.0
msgType : authResult
authMode : A