Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

omnipay refund

// Do a refund transaction on the gateway
$transaction = $gateway->refund(array(
    'amount'                   => '10.00',
    'transactionReference'     => $sale_id,
));
$response = $transaction->send();
if ($response->isSuccessful()) {
    echo "Refund transaction was successful!
";
    $refund_id = $response->getTransactionReference();
    echo "Transaction reference = " . $refund_id . "
";
}
Source by apigen.juzna.cz #
 
PREVIOUS NEXT
Tagged: #omnipay #refund
ADD COMMENT
Topic
Name
8+6 =