developer:soap-1.3:methods:addcustomer

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
developer:soap-1.3:methods:addcustomer [2010/10/07 17:08]
irina
developer:soap-1.3:methods:addcustomer [2010/10/14 16:59]
irina
Line 35: Line 35:
  
 <code php> <code php>
-<?​php ​ 
  
-try {  
  
 +try { 
 + 
 $CustomerData=array( $CustomerData=array(
  '​BillingAddress'​=>​array(  '​BillingAddress'​=>​array(
Line 55: Line 55:
  '​PaymentMethods'​ => array(  '​PaymentMethods'​ => array(
  array(  array(
- '​CreditCardData'​ => array(+
  '​CardNumber'​=>'​4444555566667779',​  '​CardNumber'​=>'​4444555566667779',​
  '​CardExpiration'​=>'​0213',​  '​CardExpiration'​=>'​0213',​
  '​CardType'​=>'',​ '​CardCode'​=>'','​AvsStreet'​=>'',​  '​CardType'​=>'',​ '​CardCode'​=>'','​AvsStreet'​=>'',​
- '​AvsZip'​=>''​, '​CardPresent'​=>'','​MagStripe'​=>'',​ + '​AvsZip'​=>'',​
- '​TermType'​=>'','​MagSupport'​=>'','​XID'​=>'',​ '​CAVV'​=>'',​ +
- '​ECI'​=>'','​InternalCardAuth'​=>'',​ '​Pares'​=>''​ +
- ),  +
- "​Expires"​=>"​2010-4-1"​,+
  "​MethodName"​=>"​My Visa",  "​MethodName"​=>"​My Visa",
- "​SecondarySort"​=>​1 + "​SecondarySort"​=>​1)
- )+
  ),  ),
  '​CustomData'​=>​base64_encode(serialize(array("​mydata"​=>"​We could put anything in here!"​))),​  '​CustomData'​=>​base64_encode(serialize(array("​mydata"​=>"​We could put anything in here!"​))),​
Line 89: Line 84:
  '​CustNum'​=>'​C'​.rand()  '​CustNum'​=>'​C'​.rand()
 ); );
-     + 
   $Result=$client->​addCustomer($token,​$CustomerData); ​   $Result=$client->​addCustomer($token,​$CustomerData); ​
-      +  
- +
-}  + 
 catch(SoapFault $e) {  catch(SoapFault $e) { 
-     + 
   echo "​SoapFault:​ " .$e->​getMessage();​ print_r($e); ​   echo "​SoapFault:​ " .$e->​getMessage();​ print_r($e); ​
   echo "​\n\nRequest:​ " . $tran->​__getLastRequest(); ​   echo "​\n\nRequest:​ " . $tran->​__getLastRequest(); ​
Line 102: Line 96:
  
  
-?> +  
 </​code>​ </​code>​
  
developer/soap-1.3/methods/addcustomer.txt · Last modified: 2017/01/30 10:30 by charlie

Page Tools