OK im not sure whats gone on here. but the database tables the service behaviours were referring to aren't in the database. Its possible I deleted them thinking they were not needed.
I created recreated the tables with the correct columns with a bit of guess work to their types.
I then run the cart again and now it goes to the failure page with the following dump session:
array(16) { ["WAENCRYPTEDRETURNUSED"]=> bool(false) ["WAENCRYPTEDRETURNSUCCESS"]=> bool(false) ["rtm_application_Items"]=> string(262) "1|WAECART|rtm_application|WAECART|Right to Manage Online Application Form|WAECART||WAECART|0|WAECART|1|WAECART|150|WAECART|1000|WAECART|6|WAECART|3|WAECART|152175397085289262|WAECART|0|WAECART|483.33333333333|WAECART|1 rtm_application (1)|WAECART|333.33333333333" ["WAEC_ContinueRedirect"]=> string(87) "/registered-applications/consent-form.php?entryID=47&submission=Yes&fee=Unpaid&accID=35" ["eCart_PPECO_System"]=> string(2) "US" ["WA_BillingAgreements"]=> array(0) { } ["PayPal_ECO_Token"]=> string(20) "EC-2RC82136B6335004H" ["ECO_Auth_Request"]=> string(1551) "admin-seller_api1.gmail.com2M4W7NGLSB3DGA2SAYhQpDXPiPebyJswwnaVc8Soek4BA-v4AP9hvkKMwmv48d98Uj9.bGLo63.0http://www.rtm-conference.org.uk/pp_confirm.phphttp://www.rtm-conference.org.uk/registered-applications/view-cart.php?ppcancel=trueSoleBillingSale483.33483.33rtm_applicationRight to Manage Online Application Form483.3311Sale" ["ECO_Auth_Result"]=> string(1788) "2018-03-22T21:26:23ZSuccess26de5c19b9f63.0000000EC-2RC82136B6335004H" ["PayPal_ECO_PayerID"]=> string(13) "VQLBPAD8FDYU6" ["ECO_Get_Request"]=> string(849) "admin-seller_api1.gmail.com2M4W7NGLSB3DGA2SAYhQpDXPiPebyJswwnaVc8Soek4BA-v4AP9hvkKMwmv48d98Uj9.bGLo63.0EC-2RC82136B6335004H" ["ECO_Get_Result"]=> string(5922) "2018-03-22T21:27:29ZSuccess3bde170ad0d5363.0000000EC-2RC82136B6335004Hjwilshire@gmail.comVQLBPAD8FDYU6verifiedJackWilshireGB
Jack WilshireSpitalfields Arts Market, 112 Brick Lane,LondonLondonGBUnited KingdomE1 6RLPayPalConfirmed
false483.33483.330.000.000.00Jack WilshireSpitalfields Arts Market, 112 Brick Lane,LondonLondonGBUnited KingdomE1 6RLPayPalConfirmedrtm_application110.00483.33Right to Manage Online Application Form0.000.00falseadmin-seller@gmail.com37R14873NG792622UPaymentActionCompleted" ["WASF_CheckoutWizard_NewFromBlank_Default"]=> array(21) { ["Company"]=> string(0) "" ["First_Name"]=> string(4) "Jack" ["Last_Name"]=> string(8) "Wilshire" ["Address_1"]=> string(41) "Spitalfields Arts Market, 112 Brick Lane," ["Address_2"]=> string(0) "" ["City"]=> string(6) "London" ["State"]=> string(6) "London" ["Postal_Code"]=> string(6) "E1 6RL" ["Country"]=> string(2) "GB" ["Phone_Number"]=> string(0) "" ["Email_Address"]=> string(19) "jwilshire@gmail.com" ["First_Name_2"]=> string(4) "Jack" ["Last_Name_2"]=> string(8) "Wilshire" ["Address_1_2"]=> string(41) "Spitalfields Arts Market, 112 Brick Lane," ["Address_2_2"]=> string(0) "" ["City_2"]=> string(6) "London" ["State_2"]=> string(6) "London" ["Postal_Code_2"]=> string(6) "E1 6RL" ["Country_2"]=> string(2) "GB" ["Phone_Number_2"]=> string(0) "" ["Email_Address_2"]=> string(19) "jwilshire@gmail.com" } ["ECO_Process_Request"]=> string(1430) "admin-seller_api1.gmail.com2M4W7NGLSB3DGA2SAYhQpDXPiPebyJswwnaVc8Soek4BA-v4AP9hvkKMwmv48d98Uj9.bGLo63.0EC-2RC82136B6335004HSaleVQLBPAD8FDYU6483.33483.33WebAssist.eCartPHP.Pro.ECOrtm_application483.3311Right to Manage Online Application Form" ["ECO_Process_Result"]=> string(2372) "2018-03-22T21:27:31ZFailureef4998b5980f2Transaction refused because of an invalid argument. See additional error messages for details.A successful transaction has already been completed for this token.10415Error63.0000000" ["rtm_application_OrderID"]=> int(1) }
But if I use the back swipe (mac mouse) it ends up on the 'Your payment has been completed' return to merchant page
Again, I check the sandbox accounts and the payment has gone through.
Any ideas?


