⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.1
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: CaptureRequest.php
<?php /** * Stripe Capture Request. */ namespace Omnipay\Stripe\Message; /** * Stripe Capture Request. * * Use this request to capture and process a previously created authorization. * * Example -- note this example assumes that the authorization has been successful * and that the authorization ID returned from the authorization is held in $auth_id. * See AuthorizeRequest for the first part of this example transaction: * * <code> * // Once the transaction has been authorized, we can capture it for final payment. * $transaction = $gateway->capture(array( * 'amount' => '10.00', * 'currency' => 'AUD', * )); * $transaction->setTransactionReference($auth_id); * $response = $transaction->send(); * </code> * * @see AuthorizeRequest */ class CaptureRequest extends AbstractRequest { public function getData() { $this->validate('transactionReference'); $data = array(); if ($amount = $this->getAmountInteger()) { $data['amount'] = $amount; } return $data; } public function getEndpoint() { return $this->endpoint.'/charges/'.$this->getTransactionReference().'/capture'; } }
Simpan