cancel
Showing results for 
Search instead for 
Did you mean: 

Getting validationMode soap error using CIM and PHP

We recently starting having trouble with unchanged PHP code during the checkout process.  I'm finding this in the apache logs:

PHP Fatal error:  SOAP-ERROR: Encoding: object has no 'validationMode' property in /var/www/html/includes/authnet/cim/api_authorize_net_soap_v1.php on line 1926

 

Line 1926 is inside CreateCustomerProfile().  That's fine, I went ahead and added $req->validationMode = "liveMode";  to my code where I'm building the args.

 

However, when I do that, it tells me that's not an allowed without Payment Profiles.  But I can't create a Payment Profile without having a Customer Profile first!

 

Has anybody else had this pop up on them?

 

CreateCustomerProfileResponse Object ( [CreateCustomerProfileResult] => CreateCustomerProfileResponseType Object ( [customerProfileId] => 0 [resultCode] => Error [messages] => stdClass Object ( [MessagesTypeMessage] => MessagesTypeMessage Object ( [code] => E00013 [text] => Validation Mode is invalid without Payment Profiles. ) ) ) )

 

michaelbelt
Member
1 REPLY 1

http://developer.authorize.net/api/cim/

doc said it can be none, testMode, or liveMode

Since there isn't any payment profile with your create customer profile, so try setting validationmode = none

RaynorC1emen7
Expert