/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/TokenTest.php (2235B)
api->subscription->createSubscriptionRegistration(array('customer' => array('name' => 'Gaurav Kumar','email' => 'gaurav.kumar@example.com','contact' => '9123456780'),'amount' => 0,'currency' => 'INR','type' => 'link','description' => '12 p.m. Meals','subscription_registration' => array('method' => 'nach','auth_type' => 'physical','bank_account' => array('beneficiary_name' => 'Gaurav Kumar','account_number' => '11214311215411','account_type' => 'savings','ifsc_code' => 'HDFC0001233'),'nach' => array('form_reference1' => 'Recurring Payment for Gaurav Kumar','form_reference2' => 'Method Paper NACH'),'expire_at' => strtotime('+1 day'),'max_amount' => 50000),'receipt' => 'Receipt No. '.time(),'sms_notify' => 1,'email_notify' => 1,'expire_by' => strtotime('+1 day'),'notes' => array('note_key 1' => 'Beam me up Scotty','note_key 2' => 'Tea. Earl Gray. Hot.'))); $this->assertTrue(is_array($data->toArray())); $this->assertTrue(in_array('id',$data->toArray())); } /** * Fetch token by payment id */ public function testFetchTokenByPaymentId() { $data = $this->api->payment->fetch($this->paymentId); $this->assertTrue(is_array($data->toArray())); $this->assertTrue(in_array('payment',$data->toArray())); } /** * Fetch particular token */ public function testFetchTokenByCustomerId() { $data = $this->api->customer->fetch($this->customerId)->tokens()->fetch($this->tokenId); $this->assertTrue(is_array($data->toArray())); $this->assertTrue(in_array('payment',$data->toArray())); } }