PHP code example of eduardlleshi / omnipay-affirm
1. Go to this page and download the library: Download eduardlleshi/omnipay-affirm library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
eduardlleshi / omnipay-affirm example snippets
$transaction_id = $_POST['checkout_token'];
$response = $gateway->authorize(
'transaction_id' => $transaction_id,
])->send();
$transaction_reference = $response->getTransactionReference();
// you may use $transaction_reference in the upcoming calls.