Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>How I did, create eway soap request and get eway soap result,may help others! </p> <pre><code> &lt;?php $URL = "https://www.eway.com.au/gateway/rebill/test/manageRebill_test.asmx?wsdl"; $option = array("trace"=&gt;true); $client = new SOAPClient($URL, $option); $functions = $client-&gt;__getFunctions(); $headeroptions=array('eWAYCustomerID'=&gt;"87654321",'Username'=&gt;"test@eway.com.au","Password"=&gt;"test123"); $header = new SOAPHeader('http://www.eway.com.au/gateway/rebill/manageRebill', 'eWAYHeader',$headeroptions); $bodyoptions = array( "CreateRebillCustomer" =&gt; array( "customerTitle" =&gt; "Mr", "customerFirstName"=&gt;"Muhammad", "customerLastName"=&gt;"Shahzad", "customerAddress"=&gt;"cust ome rAddress", "customerSuburb"=&gt;"customer Suburb", "customerState"=&gt;"ACT", "customerCompany"=&gt;"customer Company", "customerPostCode"=&gt;"2345", "customerCountry"=&gt;"&gt;Australia", "customerEmail"=&gt;"test@gamil.com", "customerFax"=&gt;"0298989898", "customerPhone1"=&gt;"0297979797", "customerPhone2"=&gt;"0297979797", "customerRef"=&gt;"Ref123", "customerJobDesc"=&gt;"customerJobDesc", "customerComments"=&gt;"customerComments", "customerURL" =&gt; "http://www.acme.com.au" ) ); try{ $response = $client-&gt;__soapCall("CreateRebillCustomer", $bodyoptions,NULL,$header,$outputHeader); //echo $client-&gt;__getLastRequest(); //$response = $client-&gt;CreateRebillCustomer($bodyoptions); //echo "&lt;pre&gt;";echo "&lt;br/&gt;"; // print_r($response); echo $result = $response-&gt;CreateRebillCustomerResult-&gt;Result;echo "&lt;br/&gt;"; echo $customerId = $response-&gt;CreateRebillCustomerResult-&gt;RebillCustomerID;echo "&lt;br/&gt;"; echo "&lt;br/&gt;"; if($result=='Success' AND $customerId){ echo 'Member Created at eWay Successfully!...&lt;br/&gt;'; echo 'Creating Recurring Billing Cycle on eWay,Please wait......&lt;br/&gt;'; //$UpdateRebillCustomer = CreateRebillEvent($customerId); //print_r($UpdateRebillCustomer); } else{ echo $ErrorSeverity = $response-&gt;CreateRebillCustomerResult-&gt;ErrorSeverity;echo "&lt;br/&gt;"; echo $ErrorDetails = $response-&gt;CreateRebillCustomerResult-&gt;ErrorDetails;echo "&lt;br/&gt;"; } } catch(SOAPFault $e){ print $e; } if($customerId){ $bodyoptions2 = array( "CreateRebillEvent " =&gt; array( "RebillCustomerID" =&gt; $customerId, "RebillInvRef" =&gt; "Ref123", "RebillInvDes"=&gt;"description", "RebillCCName"=&gt;"Mr Andy Person", "RebillCCNumber"=&gt;"4444333322221111", "RebillCCExpMonth"=&gt;"12", "RebillCCExpYear"=&gt;"15", "RebillInitAmt"=&gt;"100", "RebillInitDate"=&gt;date('d/m/Y'), "RebillRecurAmt"=&gt;"200", "RebillStartDate"=&gt;date('d/m/Y'), "RebillInterval"=&gt;"31", "RebillIntervalType"=&gt;"1", "RebillEndDate"=&gt;"31/12/2013", ) ); try{ $response = $client-&gt;__soapCall("CreateRebillEvent", $bodyoptions2,NULL,$header,$outputHeader); //echo $client-&gt;__getLastRequest(); //print_r($response); echo "&lt;br/&gt;"; echo $result2 = $response-&gt;CreateRebillEventResult-&gt;Result;echo "&lt;br/&gt;"; echo $RebillCustomerID = $response-&gt;CreateRebillEventResult-&gt;RebillCustomerID;echo "&lt;br/&gt;"; if($result2=='Success'){ echo 'Recurring Cycle Created Successfully at eWay!...&lt;br/&gt;'; echo 'Member Id is ===&gt;'.$RebillCustomerID; //$UpdateRebillCustomer = CreateRebillEvent($customerId); //print_r($UpdateRebillCustomer); } else{ echo $ErrorSeverity = $response-&gt;CreateRebillEventResult-&gt;ErrorSeverity;echo "&lt;br/&gt;"; echo $ErrorDetails = $response-&gt;CreateRebillEventResult-&gt;ErrorDetails;echo "&lt;br/&gt;"; } } catch(SOAPFault $e){ print $e; } } ?&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload