/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/QrCodeTest.php (2513B)
api->qrCode->create(array("type" => "upi_qr","name" => "Store_1", "usage" => "single_use","fixed_amount" => 1,"payment_amount" => 300,"customer_id" => $this->customerId, "description" => "For Store 1","close_by" => 1681615838,"notes" => array("purpose" => "Test UPI QR code notes"))); $this->assertTrue(is_array($data->toArray())); $this->assertTrue(in_array('qr_code',$data->toArray())); } /** * Fetch all Qr code */ public function testFetchAllQrCode() { $data = $this->api->plan->all(); $this->assertTrue(is_array($data->toArray())); $this->assertTrue(is_array($data['items'])); } /** * Fetch a Qr code */ public function testFetchQrCode() { $data = $this->api->qrCode->fetch($this->qrCodeId); $this->assertTrue(is_array($data->toArray())); } /** * Fetch a Qr code for customer id */ public function testFetchQrCodeByCustomerId() { $data = $this->api->qrCode->all(["customer_id" => $this->customerId ]); $this->assertTrue(is_array($data->toArray())); $this->assertTrue(is_array($data['items'])); } /** * Fetch a Qr code for payment id */ public function testFetchQrCodePaymentById() { $data = $this->api->qrCode->all(); $this->assertTrue(is_array($data->toArray())); } /** * Close a QR Code */ public function testCloseQrCode() { $qrCodeId = $this->api->qrCode->create(array("type" => "upi_qr","name" => "Store_1", "usage" => "single_use","fixed_amount" => 1,"payment_amount" => 300,"customer_id" => $customerId, "description" => "For Store 1","close_by" => 1681615838,"notes" => array("purpose" => "Test UPI QR code notes"))); $data = $this->api->qrCode->fetch($qrCodeId->id)->close(); $this->assertTrue(is_array($data->toArray())); $this->assertTrue(in_array('qr_code',$data->toArray())); } }