Class VoidRequest
Pagarme Void Request
Pagarme does not support voiding, per se, but we treat it as a full refund.
See RefundRequest for additional information
Example -- note this example assumes that the purchase has been successful and that the transaction ID returned from the purchase is held in $sale_id. See PurchaseRequest for the first part of this example transaction:
// Do a void transaction on the gateway $transaction = $gateway->void(array( 'transactionReference' => $sale_id, )); $response = $transaction->send(); if ($response->isSuccessful()) { echo "Void transaction was successful!\n"; $void_id = $response->getTransactionReference(); echo "Transaction reference = " . $void_id . "\n"; }
- Omnipay\Common\Message\AbstractRequest
-
Omnipay\Pagarme\Message\AbstractRequest
-
Omnipay\Pagarme\Message\RefundRequest
-
Omnipay\Pagarme\Message\VoidRequest
See:
Omnipay\Pagarme\Message\RefundRequestSee:
Omnipay\Pagarme\GatewayLink: https://docs.pagar.me/api/?shell#estorno-de-transao
Located at Message/VoidRequest.php
Methods inherited from Omnipay\Pagarme\Message\RefundRequest
Methods inherited from Omnipay\Pagarme\Message\AbstractRequest
createResponse(),
extractAddress(),
extractDddPhone(),
getApiKey(),
getCard(),
getCardData(),
getCardHash(),
getCustomer(),
getCustomerData(),
getCustomerReference(),
getHttpMethod(),
getMetadata(),
insertApiKeyToData(),
sendData(),
setApiKey(),
setCard(),
setCardHash(),
setCustomer(),
setCustomerReference(),
setMetadata()