developer:soap-1.4:methods:updatecustomerpaymentmethod

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
developer:soap-1.4:methods:updatecustomerpaymentmethod [2010/09/09 13:43]
irina
developer:soap-1.4:methods:updatecustomerpaymentmethod [2010/10/14 17:39] (current)
irina
Line 39: Line 39:
 <code php> <code php>
 <?​php ​ <?​php ​
 + 
 try {  try { 
- +  
-  $CustNum='​586'; ​+  $CustNum='​4268705'; ​
   $PaymentMethod=array( ​   $PaymentMethod=array( ​
-    '​MethodID'​ => '0',  +    '​MethodID'​ => '375',  
-    '​MethodName'​=>'​Example',  +    '​MethodName'​=>'',​  
-    'Expires'​=>'​0909',  +    'CardNumber'​=>'​XXXXXXXXXXXX7779',  
-    ​'​CreditCardData'​ => array(  +    '​CardExpiration'​=>'​2013-02',  
-      '​CardNumber'​=>'​4444555566667779',​  +    '​CardType'​=>'', ​    
-      ​'​CardExpiration'​=>'​0908',  +    '​CardCode'​=>'',​  
-      '​CardType'​=>'', ​    +    '​AvsStreet'​=>'',​  
-      '​CardCode'​=>'',​  +    '​AvsZip'​=>'', ​  
-      '​AvsStreet'​=>'',​  +    '​CardPresent'​=>'',​  
-      '​AvsZip'​=>'', ​  +    '​MagStripe'​=>'',​  
-      '​CardPresent'​=>'',​  +    '​TermType'​=>'',​  
-      '​MagStripe'​=>'',​  +    '​MagSupport'​=>'',​  
-      '​TermType'​=>'',​  +    '​XID'​=>'', ​  
-      '​MagSupport'​=>'',​  +    '​CAVV'​=>'',​  
-      '​XID'​=>'', ​  +    '​ECI'​=>'',​  
-      '​CAVV'​=>'',​  +    '​InternalCardAuth'​=>'', ​  
-      '​ECI'​=>'',​  +    '​Pares'​=>'',​  
-      '​InternalCardAuth'​=>'', ​  +    '​SecondarySort'​=>​0
-      '​Pares'​=>'' ​ +
-      ),  +
-    '​CheckData'​=>​array(  +
-      '​CheckNumber'​=>'', ​  +
-      '​Routing'​=>'',​  +
-      '​Account'​=>'',​  +
-      '​SSN'​=>'',​  +
-      '​DriversLicense'​=>'',​  +
-      '​DriversLicenseState'​=>''​  +
-      ),  +
-    '​SecondarySort'​=>​0 ​+
     );      ); 
- +  
-  $Default=true; ​ +  $Verify=false;  
-  $Verify=true;  +  
- +  $res=$client->​updateCustomerPaymentMethod($token,​$PaymentMethod,​$Verify);​  
-  $res=$client->​addCustomerPaymentMethod($token,$CustNum, $PaymentMethod, $Default, $Verify);  + 
-  +
   $this->​assertTrue($res>​0,​ '​Positive PaymentMethodID'​);  ​   $this->​assertTrue($res>​0,​ '​Positive PaymentMethodID'​);  ​
-                 + 
   print_r($res); ​   print_r($res); ​
-         + 
  
 + 
 catch(SoapFault $e) {  catch(SoapFault $e) { 
-     + 
   echo "​\n\nResponse:​ " . $tran->​__getLastResponse(); ​   echo "​\n\nResponse:​ " . $tran->​__getLastResponse(); ​
   die("​soap fault: " .$e->​getMessage()); ​   die("​soap fault: " .$e->​getMessage()); ​
   echo "​SoapFault:​ " .$e->​getMessage(); ​   echo "​SoapFault:​ " .$e->​getMessage(); ​
 + 
   print_r($e); ​   print_r($e); ​
 + 
   echo "​\n\nRequest:​ " . $tran->​__getLastRequest(); ​   echo "​\n\nRequest:​ " . $tran->​__getLastRequest(); ​
-         + 
  
- +  
-?> +?>
 </​code>​ </​code>​
  
developer/soap-1.4/methods/updatecustomerpaymentmethod.txt · Last modified: 2010/10/14 17:39 by irina

Page Tools