/home/techb158/ileadtechnology.com/vendor/razorpay/razorpay/tests
NameSizeModeActions
AddonTest.php16790644editdlrm
bootstrap.php700644editdlrm
CustomerTest.php15940644editdlrm
EmandateTest.php34450644editdlrm
FundTest.php10680644editdlrm
InvoiceTest.php34400644editdlrm
ItemTest.php24410644editdlrm
OrdersTest.php17840644editdlrm
PaperNachTest.php46240644editdlrm
PaymentLinkTest.php91640644editdlrm
PaymentTest.php37200644editdlrm
PlanTest.php13110644editdlrm
QrCodeTest.php25130644editdlrm
RefundTest.php22880644editdlrm
RegisterEmandateTest.php48920644editdlrm
RegisterNachTest.php49130644editdlrm
SettlementTest.php25640644editdlrm
SignatureVerificationTest.php20550644editdlrm
SubscriptionTest.php37640644editdlrm
TestCase.php3270644editdlrm
TokenTest.php22350644editdlrm
TransferTest.php56470644editdlrm
UpiTest.php50350644editdlrm
VirtualAccountTest.php30290644editdlrm
Edit: /home/techb158/ileadtechnology.com/vendor/razorpay/razorpay/tests/RefundTest.php (2288B)
api->payment->fetch($this->paymentId)->refund(array("amount"=> "100", "speed"=>"optimum", "receipt"=>"Receipt No. ".time())); $this->assertTrue(is_array($data->toArray())); $this->assertTrue(in_array('refund',$data->toArray())); } /** * Fetch multiple refunds for a payment */ public function testFetchMultipalRefund() { $data = $this->api->payment->fetch($this->paymentId)->fetchMultipleRefund(array("count"=>1)); $this->assertTrue(is_array($data->toArray())); $this->assertTrue(is_array($data['items'])); } /** * Fetch a specific refund for a payment */ public function testFetchRefund() { $data = $this->api->payment->fetch($this->paymentId)->fetchRefund($this->refundId); $this->assertTrue(is_array($data->toArray())); } /** * Fetch all refunds */ public function testFetchAllRefund() { $data = $this->api->refund->all(array("count"=>1)); $this->assertTrue(is_array($data->toArray())); $this->assertTrue(is_array($data['items'])); } /** * Fetch particular refund */ public function testParticularRefund() { $data = $this->api->refund->fetch($this->refundId); $this->assertTrue(is_array($data->toArray())); $this->assertTrue(in_array('refund',$data->toArray())); } /** * Update the refund */ public function testUpdateRefund() { $data = $this->api->refund->fetch($this->refundId)->edit(array('notes'=> array('notes_key_1'=>'Beam me up Scotty.', 'notes_key_2'=>'Engage'))); $this->assertTrue(is_array($data->toArray())); $this->assertTrue(in_array('refund',$data->toArray())); } }