Reply
Contributor
Posts: 39
Registered: ‎04-18-2011

CreateCustomerPaymentProfile failing (no payment information)

I'm sending the following to CreateCustomerPaymentProfile soap method and getting 'no payment information' back:

 

$ccpt = CreateCustomerPaymentProfile::__set_state(array(
   'merchantAuthentication' =>  MerchantAuthenticationType::__set_state(array(
     'name' => "xxxxxxxx",
     'transactionKey' => "xxxxxxxx",
  )),
   'customerProfileId' => 6100241,
   'paymentProfile' => 
  CustomerPaymentProfileType::__set_state(array(
     'payment' => 
    PaymentType::__set_state(array(
       'creditCard' => 
      CreditCardType::__set_state(array(
         'cardCode' => "959",
         'cardNumber' => 4222222222222,
         'expirationDate' => "2018-05",
      )),
       'bankAccount' => NULL,
    )),
     'driversLicense' => NULL,
     'taxId' => NULL,
     'customerType' => "individual",
     'billTo' =>
CustomerAddressType::__set_state(array( 'phoneNumber' => "806/977-2043", 'faxNumber' => "806/778-5177", 'firstName' => "John", 'lastName' => "Doe", 'company' => "John Doe Industries", 'address' => "1234 Fifth Avenue", 'city' => "Amarillo", 'state' => "TX", 'zip' => "79104", 'country' => "USA", )), )), 'validationMode' => "liveMode", ))

but it is reporting back error code E00029 "Payment information is required."

 

(this is pointing at the testing server btw)

Contributor
Posts: 39
Registered: ‎04-18-2011

Re: CreateCustomerPaymentProfile failing (no payment information)

found it - apparently if you leave the 'null' bankAccount value in there, the Soap blows up and it fails.

Posts: 1,609
Topics: 15
Kudos: 201
Solutions: 121
Registered: ‎06-23-2011

Re: CreateCustomerPaymentProfile failing (no payment information)

Ah, probably tries to look for the bank account info and dies. Makes sense.