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: Payment.php
Close
<?php namespace Razorpay\Api; use Requests; class Payment extends Entity { /** * @param $id Payment id */ public function fetch($id) { return parent::fetch($id); } public function all($options = array()) { return parent::all($options); } /** * Patches given payment with new attributes * * @param array $attributes * * @return Payment */ public function edit($attributes = array()) { $url = $this->getEntityUrl() . $this->id; return $this->request(Requests::PATCH, $url, $attributes); } /** * @param $id Payment id */ public function refund($attributes = array()) { $refund = new Refund; $attributes = array_merge($attributes, array('payment_id' => $this->id)); return $refund->create($attributes); } /** * @param $id Payment id */ public function capture($attributes = array()) { $relativeUrl = $this->getEntityUrl() . $this->id . '/capture'; return $this->request('POST', $relativeUrl, $attributes); } public function transfer($attributes = array()) { $relativeUrl = $this->getEntityUrl() . $this->id . '/transfers'; return $this->request('POST', $relativeUrl, $attributes); } public function refunds() { $refund = new Refund; $options = array('payment_id' => $this->id); return $refund->all($options); } public function transfers() { $transfer = new Transfer(); $transfer->payment_id = $this->id; return $transfer->all(); } public function bankTransfer() { $relativeUrl = $this->getEntityUrl() . $this->id . '/bank_transfer'; return $this->request('GET', $relativeUrl); } }