⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.45
Server IP:
185.238.29.86
Server:
Linux server2 6.8.12-6-pve #1 SMP PREEMPT_DYNAMIC PMX 6.8.12-6 (2024-12-19T19:05Z) x86_64
Server Software:
nginx/1.18.0
PHP Version:
8.1.31
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
var
/
www
/
work
/
vendor
/
omnipay
/
stripe
/
src
/
Message
/
Edit File: VoidRequest.php
<?php /** * Stripe Void Request. */ namespace Omnipay\Stripe\Message; /** * Stripe Void Request. * * Stripe 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: * * <code> * // 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"; * } * </code> * * @see RefundRequest * @see Omnipay\Stripe\Gateway * @link https://stripe.com/docs/api#create_refund */ class VoidRequest extends RefundRequest { public function getData() { $this->validate('transactionReference'); $data = array(); if ($this->getRefundApplicationFee()) { $data['refund_application_fee'] = 'true'; } return $data; } }
Simpan