alisaleem / takepayments-hosted
There is no license information available for the latest version (v1.0.6) of this package.
v1.0.6
2023-05-12 16:30 UTC
README
Render a payment link button
use AliSaleem\TakePaymentsHosted\Gateway; use AliSaleem\TakePaymentsHosted\Request; $gateway = new Gateway('<MERCHANT-ID>', '<MERCHANT-SECRET>'); $request = new Request( amount : 1000, orderRef : 'my-order-ref', transactionUnique: 'my-unique-transaction-id', redirectURL : 'https://myredirect.url/path', ); $request ->customerAddress('1 Street') ->customerPostCode('AB1 2CD'); echo $gateway->hostedRequest($request, [ 'formAttrs' => 'class="my-form-class"', 'submitText' => 'Reserve', ]);