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
developer:soap-1.3:methods:addcustomer [2010/10/07 17:08]
irina
developer:soap-1.3:methods:addcustomer [2017/01/30 10:30]
charlie
Line 35: Line 35:
  
 <code php> <code php>
-<?​php ​ 
  
-try {  
  
 +try { 
 + 
 $CustomerData=array( $CustomerData=array(
  '​BillingAddress'​=>​array(  '​BillingAddress'​=>​array(
Line 50: Line 50:
  '​Zip'​=>'​12345',​  '​Zip'​=>'​12345',​
  '​Country'​=>'​US',​  '​Country'​=>'​US',​
- '​Email'​=>'​charlie@usaepay.com',​+ '​Email'​=>'​example@usaepay.com',​
  '​Phone'​=>'​333-333-3333',​  '​Phone'​=>'​333-333-3333',​
  '​Fax'​=>'​333-333-3334'​),​  '​Fax'​=>'​333-333-3334'​),​
  '​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>​
  
Line 320: Line 315:
 <Company xsi:​type="​xsd:​string">​Vlads Corp</​Company>​ <Company xsi:​type="​xsd:​string">​Vlads Corp</​Company>​
 <Country xsi:​type="​xsd:​string">​US</​Country>​ <Country xsi:​type="​xsd:​string">​US</​Country>​
-<Email xsi:​type="​xsd:​string">​charlie@usaepay.com</​Email>​+<Email xsi:​type="​xsd:​string">​example@usaepay.com</​Email>​
 <Fax xsi:​type="​xsd:​string">​333-333-3334</​Fax>​ <Fax xsi:​type="​xsd:​string">​333-333-3334</​Fax>​
 <​FirstName xsi:​type="​xsd:​string">​Vlad</​FirstName>​ <​FirstName xsi:​type="​xsd:​string">​Vlad</​FirstName>​
developer/soap-1.3/methods/addcustomer.txt · Last modified: 2017/01/30 10:30 by charlie

Page Tools