3v4l.org

run code in 300+ PHP versions simultaneously
<?php $wsdl = "https://merchantflo.transfirst.com/Merchant/API/TransFirst/GenericVAPPWebService.svc?singleWsdl"; /* Send VAPP Web Service request to VAPP->StartApplication */ try { $client = new SoapClient($wsdl, array('trace' => 1)); $model = array( 'dbaName'=> "Test Business", 'businesssPhone' => "3036258000", 'merchantEmailAddress' => "jdgfjdgh@fgfdggf.com", 'merchantFirstName' => "Adam", 'merchantLastName' => "Martin", 'address' => "1234 Test St", 'city' => "Torrance", 'State' => "CA", 'zip' => "90505", 'businessPhone' => "3036258000", 'organizationCode' => "CDG", 'templateAppId' => "108", 'inBizYears' => "1", 'inBizMonths' => "6", 'webUrl' => "www.google.com" ); $response = $client->StartApplication(array('model' => $model)); } catch (SoapFault $fault) { $webServiceFault = ("Start Application Fault string1: " . $fault->faultstring . "\r\n"); fwrite($fh, $webServiceFault); header ( 'Location:' . $thankYouURL ); exit(); }

preferences:
38 ms | 402 KiB | 5 Q