OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
accscourse
/
inc
/
razorpay
/
src
Server IP: 10.0.0.4
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
08/27/2021 03:23:42 PM
rwxr-xr-x
📄
Addon.php
381 bytes
08/27/2021 03:22:08 PM
rw-rw-r--
📄
Api.php
1.61 KB
08/27/2021 03:22:31 PM
rw-rw-r--
📄
ArrayableInterface.php
177 bytes
08/27/2021 03:22:32 PM
rw-rw-r--
📄
Card.php
182 bytes
08/27/2021 03:22:02 PM
rw-rw-r--
📄
Collection.php
304 bytes
08/27/2021 03:22:29 PM
rw-rw-r--
📄
Customer.php
721 bytes
08/27/2021 03:22:23 PM
rw-rw-r--
📄
Entity.php
5.39 KB
08/27/2021 03:22:33 PM
rw-rw-r--
📁
Errors
-
08/27/2021 03:23:34 PM
rwxr-xr-x
📄
Invoice.php
2.32 KB
08/27/2021 03:22:27 PM
rw-rw-r--
📄
Order.php
563 bytes
08/27/2021 03:22:12 PM
rw-rw-r--
📄
Payment.php
1.79 KB
08/27/2021 03:22:22 PM
rw-rw-r--
📄
Plan.php
341 bytes
08/27/2021 03:22:34 PM
rw-rw-r--
📄
Refund.php
387 bytes
08/27/2021 03:22:06 PM
rw-rw-r--
📄
Request.php
5.81 KB
08/27/2021 03:22:25 PM
rw-rw-r--
📄
Resource.php
1.04 KB
08/27/2021 03:22:33 PM
rw-rw-r--
📄
Settlement.php
839 bytes
08/27/2021 03:22:18 PM
rw-rw-r--
📄
Subscription.php
755 bytes
08/27/2021 03:22:04 PM
rw-rw-r--
📄
Token.php
677 bytes
08/27/2021 03:22:10 PM
rw-rw-r--
📄
Transfer.php
1.41 KB
08/27/2021 03:22:20 PM
rw-rw-r--
📄
Utility.php
2.17 KB
08/27/2021 03:22:14 PM
rw-rw-r--
📄
VirtualAccount.php
749 bytes
08/27/2021 03:22:16 PM
rw-rw-r--
Editing: Invoice.php
Close
<?php namespace Razorpay\Api; use Requests; /** * Invoice entity gets used for both Payment Links and Invoices system. * Few of the methods are only meaningful for Invoices system and calling those * for against/for a Payment Link would throw Bad request error. */ class Invoice extends Entity { /** * Creates invoice of any type(invoice|link|ecod). * * @param array $attributes * * @return Invoice */ public function create($attributes = array()) { return parent::create($attributes); } /** * Fetches invoice entity with given id * * @param string $id * * @return Invoice */ public function fetch($id) { return parent::fetch($id); } /** * Fetches multiple invoices with given query options * * @param array $options * * @return Collection */ public function all($options = array()) { return parent::all($options); } /** * Cancels issued invoice * * @return Invoice */ public function cancel() { $url = $this->getEntityUrl() . $this->id . '/cancel'; return $this->request(Requests::POST, $url); } /** * Send/re-send notification for invoice by given medium * * @param $medium - sms|email * * @return array */ public function notifyBy($medium) { $url = $this->getEntityUrl() . $this->id . '/notify_by/' . $medium; $r = new Request(); return $r->request(Requests::POST, $url); } /** * Patches given invoice with new attributes * * @param array $attributes * * @return Invoice */ public function edit($attributes = array()) { $url = $this->getEntityUrl() . $this->id; return $this->request(Requests::PATCH, $url, $attributes); } /** * Issues drafted invoice * * @return Invoice */ public function issue() { $url = $this->getEntityUrl() . $this->id . '/issue'; return $this->request(Requests::POST, $url); } /** * Deletes drafted invoice * * @return Invoice */ public function delete() { $url = $this->getEntityUrl() . $this->id; $r = new Request(); return $r->request(Requests::DELETE, $url); } }