developer:soap:methods:copycustomer

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:methods:copycustomer [2009/09/08 10:36]
tem
developer:soap:methods:copycustomer [2009/09/08 10:37] (current)
tem
Line 36: Line 36:
 try {  try { 
  
-//CustNum for Customer to Copy   +  ​// CustNum for Customer to Copy   
-$CustNum="​12345678";​+  $CustNum="​12345678";​
  
-//​toMerchToken setup the same way as token  +  ​// $toMerchToken ​is setup with sourcekey 
-//except in the merchant ​account the customer is being copied to. +  // for merchant being copied to 
-$NewCustNum=$client->​copyCustomer($token,​ $CustNum,​$toMerchToken);​+  $NewCustNum=$client->​copyCustomer($token,​ $CustNum,​$toMerchToken);​ 
 +  
 +} catch(Exception $e)  { 
  
-  
-  
- 
- 
-catch(Exception $e) {  
   echo '​Error:​ ' . $e->​getMessage(); ​   echo '​Error:​ ' . $e->​getMessage(); ​
  
Line 63: Line 60:
 try { try {
  
-//CusNum From Customer to copy +  ​//CusNum From Customer to copy 
- ​BigInteger CustNum = BigInteger("​12345678"​);​+  BigInteger CustNum = BigInteger("​12345678"​);​
  
-// toMerchToken is the token setup with a source key +  ​// toMerchToken is the token setup with a source key 
-// for the merchant being copied to. +  // for the merchant being copied to. 
-BigInteger NewCustNum = client.copyCustomer(token,​ CustNum, toMerchToken);​+  BigInteger NewCustNum = client.copyCustomer(token,​ CustNum, toMerchToken);​
  
 } catch (Exception e) { } catch (Exception e) {
- System.out.println("​Soap Exception: " + e.getMessage());​+  ​System.out.println("​Soap Exception: " + e.getMessage());​
 } }
 </​code>​ </​code>​
developer/soap/methods/copycustomer.1252431376.txt.gz · Last modified: 2009/09/08 10:36 by tem

Page Tools