You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

96 lines
7.0 KiB

<form method="post" action="https://payments.securetrading.net/process/payments/choice"
id="payment_form" name="payment_form" class="autosubmit-paymentautosubmit-payment form-horizontal"
role="form">
<div class="form-body">
<input type="hidden" name="sitereference" value="test_subhidaltd118184">
<input type="hidden" name="version" value="2">
<input type="hidden" name="locale" value="en_GB">
<input type="hidden" name="orderreference" value="{{$transaction['trans_ref']}}">
<input type="hidden" name="trans_ref" value="{{$transaction['trans_ref']}}">
<input type="hidden" name="stprofile" value="default">
<input type="hidden" name="currencyiso3a" value="GBP">
<input type="hidden" name="mainamount"
value="{{$transaction['remitter_pay']}}">
<input type="hidden" name="request_source" value="ORM">
<input type="hidden" name="billingfirstname"
value="{{$beneficiary['beneficiary']['fname']}}">
<input type="hidden" name="billinglastname"
value="{{$beneficiary['beneficiary']['lname']}}">
<input type="hidden" name="billingpremise" value="">
<input type="hidden" name="billingstreet"
value="{{$beneficiary['beneficiary']['address1']}}">
<input type="hidden" name="customerpremise"
value="{{$beneficiary['beneficiary']['address2']?$beneficiary['beneficiary']['address2']:''}}">
<input type="hidden" name="customerstreet"
value="{{$beneficiary['beneficiary']['address3']?$beneficiary['beneficiary']['address3']:''}}">
<input type="hidden" name="billingpostcode"
value="{{$beneficiary['beneficiary']['postcode']?$beneficiary['beneficiary']['postcode']:''}}">
<input type="hidden" name="customerpostcode"
value="{{$beneficiary['beneficiary']['postcode']?$beneficiary['beneficiary']['postcode']:''}}">
<input type="hidden" name="billingtown"
value="{{$beneficiary['beneficiary']['city']}}">
<input type="hidden" name="customertown"
value="{{$beneficiary['beneficiary']['city']}}">
<input type="hidden" name="billingcounty" value="N/A">
<input type="hidden" name="billingcountryiso2a" value="GB">
<input type="hidden" name="customercountryiso2a" value="GB">
<input type="hidden" name="billingtelephone"
value="{{$beneficiary['beneficiary']['telephone']?$beneficiary['beneficiary']['telephone']:''}}">
<input type="hidden" name="customertelephone"
value="{{$beneficiary['beneficiary']['telephone']?$beneficiary['beneficiary']['telephone']:''}}">
<input type="hidden" name="billingtelephonetype" value="M">
<input type="hidden" name="customertelephonetype" value="M">
<input type="hidden" name="billingemail"
value="{{$beneficiary['beneficiary']['email']?$beneficiary['beneficiary']['email']:''}}">
<input type="hidden" name="customeremail"
value="{{$beneficiary['beneficiary']['email']?$beneficiary['beneficiary']['email']:''}}">
<input type="hidden" name="sitesecurity"
value="{{$securityHash}}">
<input type="hidden" name="settleduedate" value="">
<input type="hidden" name="settlestatus" value="">
<input type="hidden" name="accounttypedescryption" value="">
<input type="hidden" name="customfield1" value="orm">
<input type="hidden" name="ruleidentifier" value="STR-6">
<input type=hidden name="successfulurlredirect"
value="{{route('transaction-details',$transaction['trans_ref'])}}">
<input type="hidden" name="ruleidentifier" value="STR-8">
<input type=hidden name="successfulurlnotification"
value="{{route('transaction-details',$transaction['trans_ref'])}}">
<input type=hidden name="ruleidentifier" value="STR-4">
<input type="hidden" name="merchantemail" value="info@imelondon.co.uk">
<div class="form-group">
<div class="col-md-offset-3 col-md-9">
<button class="btn btn-primary" type="submit">Pay now <i
class="fa fa-window-maximize p-2" aria-hidden="true"></i>
</button>
</div>
</div>
</div>
<input type="hidden" name="CSRF_token"
value="{{csrf_token()}}">
</form>
$sec_string="GBP".$input['amount']."test_site12345".now()."PASSWORD";
$security_hash=hash("sha256", $sec_string);
$transactionXMl = (string)$this->client->post(env('API_URL') . 'transaction/createTransaction', [
'form_params' => $input])->getBody();
input['security_hash'] = $security_hash;
$input['username'] = session('username');
$input['trans_ref'] = $transaction_ref;
$input['session_token'] = session('loginToken');
$payment_cleared_xml = (string)$this->client->post(env('API_URL') . 'transaction/paymentCleared', [
'form_params' => $input])->getBody();