developer:soap-1.4:methods:addcustomerpaymentmethod

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:addcustomerpaymentmethod [2010/09/09 11:57]
irina
developer:soap-1.4:methods:addcustomerpaymentmethod [2010/10/14 17:31] (current)
irina
Line 49: Line 49:
  
 <code php> <code php>
-<?​php ​ 
- 
 try {  try { 
- +  
-  $CustNum='​586'; ​+  $CustNum='​113701'; ​
   $PaymentMethod=array( ​   $PaymentMethod=array( ​
-    '​MethodID'​ => '​0', ​ 
     '​MethodName'​=>'​Example', ​     '​MethodName'​=>'​Example', ​
-    ​'​Expires'​=>'​0909',​  +    ​
-    '​CreditCardData'​ => array( ​+
       '​CardNumber'​=>'​4444555566667779', ​       '​CardNumber'​=>'​4444555566667779', ​
-      '​CardExpiration'​=>'​0908', ​+      '​CardExpiration'​=>'​1212', ​
       '​CardType'​=>'', ​   ​       '​CardType'​=>'', ​   ​
       '​CardCode'​=>'', ​       '​CardCode'​=>'', ​
       '​AvsStreet'​=>'', ​       '​AvsStreet'​=>'', ​
       '​AvsZip'​=>'',  ​       '​AvsZip'​=>'',  ​
-      '​CardPresent'​=>'',​  + 
-      '​MagStripe'​=>'',​  +
-      '​TermType'​=>'',​  +
-      '​MagSupport'​=>'',​  +
-      '​XID'​=>'', ​  +
-      '​CAVV'​=>'',​  +
-      '​ECI'​=>'',​  +
-      '​InternalCardAuth'​=>'', ​  +
-      '​Pares'​=>''​  +
-      ),  +
-    '​CheckData'​=>​array(  +
-      '​CheckNumber'​=>'', ​  +
-      '​Routing'​=>'',​  +
-      '​Account'​=>'',​  +
-      '​SSN'​=>'',​  +
-      '​DriversLicense'​=>'',​  +
-      '​DriversLicenseState'​=>''​  +
-      ), +
     '​SecondarySort'​=>​0 ​     '​SecondarySort'​=>​0 ​
     );      ); 
 + 
   $Default=true; ​   $Default=true; ​
-  $Verify=true;  +  $Verify=false;  
 + 
   $MethodID=$client->​addCustomerPaymentMethod($token,​ $CustNum, $PaymentMethod, ​   $MethodID=$client->​addCustomerPaymentMethod($token,​ $CustNum, $PaymentMethod, ​
                                          ​$Default,​ $Verify); ​                                          ​$Default,​ $Verify); ​
-  ​ +  
-         ​+ 
  
 + 
 catch(SoapFault $e) {  catch(SoapFault $e) { 
-     + 
   echo "​\n\nResponse:​ " . $client->​__getLastResponse(); ​   echo "​\n\nResponse:​ " . $client->​__getLastResponse(); ​
   echo "​\n\nRequest:​ " . $client->​__getLastRequest(); ​   echo "​\n\nRequest:​ " . $client->​__getLastRequest(); ​
   echo "​SoapFault:​ " .$e->​getMessage(); ​   echo "​SoapFault:​ " .$e->​getMessage(); ​
-         + 
  
  
-?> +  
 </​code>​ </​code>​
  
developer/soap-1.4/methods/addcustomerpaymentmethod.txt · Last modified: 2010/10/14 17:31 by irina

Page Tools