OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
3-31-025chanakya
/
assets
/
payment
/
vendor
/
razorpay
/
razorpay
/
src
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
03/26/2025 04:24:35 AM
rwxr-xr-x
📄
Account.php
1.62 KB
03/26/2025 04:23:15 AM
rw-r--r--
📄
Addon.php
556 bytes
03/26/2025 04:23:15 AM
rw-r--r--
📄
Api.php
1.65 KB
03/26/2025 04:23:15 AM
rw-r--r--
📄
ArrayableInterface.php
177 bytes
03/26/2025 04:23:15 AM
rw-r--r--
📄
Card.php
386 bytes
03/26/2025 04:23:15 AM
rw-r--r--
📄
Collection.php
308 bytes
03/26/2025 04:23:15 AM
rw-r--r--
📄
Customer.php
1.47 KB
03/26/2025 04:23:15 AM
rw-r--r--
📄
Dispute.php
701 bytes
03/26/2025 04:23:15 AM
rw-r--r--
📄
Document.php
305 bytes
03/26/2025 04:23:15 AM
rw-r--r--
📄
Entity.php
5.92 KB
03/26/2025 04:23:15 AM
rw-r--r--
📁
Errors
-
03/26/2025 04:24:35 AM
rwxr-xr-x
📄
FundAccount.php
522 bytes
03/26/2025 04:23:15 AM
rw-r--r--
📄
Iin.php
316 bytes
03/26/2025 04:23:15 AM
rw-r--r--
📄
Invoice.php
2.32 KB
03/26/2025 04:23:15 AM
rw-r--r--
📄
Item.php
654 bytes
03/26/2025 04:23:15 AM
rw-r--r--
📄
Order.php
1.4 KB
03/26/2025 04:23:15 AM
rw-r--r--
📄
Payment.php
5.16 KB
03/26/2025 04:23:15 AM
rw-r--r--
📄
PaymentLink.php
1.74 KB
03/26/2025 04:23:15 AM
rw-r--r--
📄
PaymentPage.php
582 bytes
03/26/2025 04:23:15 AM
rw-r--r--
📄
Plan.php
341 bytes
03/26/2025 04:23:15 AM
rw-r--r--
📄
Product.php
911 bytes
03/26/2025 04:23:15 AM
rw-r--r--
📄
QrCode.php
1.47 KB
03/26/2025 04:23:15 AM
rw-r--r--
📄
Refund.php
752 bytes
03/26/2025 04:23:15 AM
rw-r--r--
📄
Request.php
6.02 KB
03/26/2025 04:23:15 AM
rw-r--r--
📄
Resource.php
1.13 KB
03/26/2025 04:23:15 AM
rw-r--r--
📄
Settlement.php
2.04 KB
03/26/2025 04:23:15 AM
rw-r--r--
📄
Stakeholder.php
1.4 KB
03/26/2025 04:23:16 AM
rw-r--r--
📄
Subscription.php
2.19 KB
03/26/2025 04:23:16 AM
rw-r--r--
📄
Token.php
1.47 KB
03/26/2025 04:23:16 AM
rw-r--r--
📄
Transfer.php
1.41 KB
03/26/2025 04:23:16 AM
rw-r--r--
📄
Utility.php
2.63 KB
03/26/2025 04:23:16 AM
rw-r--r--
📄
VirtualAccount.php
1.33 KB
03/26/2025 04:23:16 AM
rw-r--r--
📄
Webhook.php
1.74 KB
03/26/2025 04:23:16 AM
rw-r--r--
Editing: Webhook.php
Close
<?php namespace Razorpay\Api; use Requests; class Webhook extends Entity { /** * @param $id webhook id description */ public function create($attributes = array()) { if(isset($this->account_id)) { $url = 'accounts/'. $this->account_id . '/' .$this->getEntityUrl(); return $this->request('POST', $url, $attributes, 'v2'); } return parent::create($attributes); } public function fetch($id) { if(isset($this->account_id)) { $url = 'accounts/'. $this->account_id . '/' .$this->getEntityUrl() . $id; return $this->request('GET', $url, null, 'v2'); } return parent::fetch($id); } public function all($options = array()) { if(isset($this->account_id)) { $url = 'accounts/'. $this->account_id . '/' .$this->getEntityUrl(); return $this->request('GET', $url, $options, 'v2'); } return parent::all($options); } /** * Patches given webhook with new attributes * * @param array $attributes * @param string $id * @return Webhook */ public function edit($attributes, $id) { $url = $this->getEntityUrl() . $id; if(isset($this->account_id)) { $url = 'accounts/'.$this->account_id .'/'. $url; return $this->request('PATCH', $url, $attributes, 'v2'); } return $this->request(Requests::PUT, $url, $attributes); } public function delete($id) { $url = 'accounts/'. $this->account_id . '/' .$this->getEntityUrl(). $id; return $this->request('DELETE', $url, null, 'v2'); } }