OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
cream
/
assets
/
payment
/
vendor
/
razorpay
/
razorpay
/
src
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
05/19/2025 10:07:15 AM
rwxr-xr-x
📄
Account.php
1.62 KB
05/19/2025 10:07:15 AM
rw-r--r--
📄
Addon.php
556 bytes
05/19/2025 10:07:15 AM
rw-r--r--
📄
Api.php
1.65 KB
05/19/2025 10:07:15 AM
rw-r--r--
📄
ArrayableInterface.php
177 bytes
05/19/2025 10:07:15 AM
rw-r--r--
📄
Card.php
386 bytes
05/19/2025 10:07:15 AM
rw-r--r--
📄
Collection.php
308 bytes
05/19/2025 10:07:15 AM
rw-r--r--
📄
Customer.php
1.47 KB
05/19/2025 10:07:15 AM
rw-r--r--
📄
Dispute.php
701 bytes
05/19/2025 10:07:15 AM
rw-r--r--
📄
Document.php
305 bytes
05/19/2025 10:07:15 AM
rw-r--r--
📄
Entity.php
5.92 KB
05/19/2025 10:07:15 AM
rw-r--r--
📁
Errors
-
05/19/2025 10:07:15 AM
rwxr-xr-x
📄
FundAccount.php
522 bytes
05/19/2025 10:07:15 AM
rw-r--r--
📄
Iin.php
316 bytes
05/19/2025 10:07:15 AM
rw-r--r--
📄
Invoice.php
2.32 KB
05/19/2025 10:07:15 AM
rw-r--r--
📄
Item.php
654 bytes
05/19/2025 10:07:15 AM
rw-r--r--
📄
Order.php
1.4 KB
05/19/2025 10:07:15 AM
rw-r--r--
📄
Payment.php
5.16 KB
05/19/2025 10:07:15 AM
rw-r--r--
📄
PaymentLink.php
1.74 KB
05/19/2025 10:07:15 AM
rw-r--r--
📄
PaymentPage.php
582 bytes
05/19/2025 10:07:15 AM
rw-r--r--
📄
Plan.php
341 bytes
05/19/2025 10:07:15 AM
rw-r--r--
📄
Product.php
911 bytes
05/19/2025 10:07:15 AM
rw-r--r--
📄
QrCode.php
1.47 KB
05/19/2025 10:07:15 AM
rw-r--r--
📄
Refund.php
752 bytes
05/19/2025 10:07:15 AM
rw-r--r--
📄
Request.php
6.02 KB
05/19/2025 10:07:15 AM
rw-r--r--
📄
Resource.php
1.13 KB
05/19/2025 10:07:15 AM
rw-r--r--
📄
Settlement.php
2.04 KB
05/19/2025 10:07:15 AM
rw-r--r--
📄
Stakeholder.php
1.4 KB
05/19/2025 10:07:15 AM
rw-r--r--
📄
Subscription.php
2.19 KB
05/19/2025 10:07:15 AM
rw-r--r--
📄
Token.php
1.47 KB
05/19/2025 10:07:15 AM
rw-r--r--
📄
Transfer.php
1.41 KB
05/19/2025 10:07:15 AM
rw-r--r--
📄
Utility.php
2.63 KB
05/19/2025 10:07:15 AM
rw-r--r--
📄
VirtualAccount.php
1.33 KB
05/19/2025 10:07:15 AM
rw-r--r--
📄
Webhook.php
1.74 KB
05/19/2025 10:07:15 AM
rw-r--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()) { if(isset($options['X-Razorpay-Account'])){ Request::addHeader('X-Razorpay-Account', $options['X-Razorpay-Account']); unset($options['X-Razorpay-Account']); } 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); } public function fetchMultipleRefund($options = array()) { $relativeUrl = $this->getEntityUrl() . $this->id . '/refunds'; return $this->request('GET', $relativeUrl, $options); } public function fetchRefund($refundId) { $relativeUrl = $this->getEntityUrl() . $this->id . '/refunds/'.$refundId; return $this->request('GET', $relativeUrl); } public function createRecurring($attributes = array()) { $relativeUrl = $this->getEntityUrl() . 'create/recurring'; return $this->request('POST', $relativeUrl, $attributes); } /** * fetch Card Details * * @param id $id * * @return card */ public function fetchCardDetails() { $relativeUrl = $this->getEntityUrl() . $this->id . '/card'; return $this->request('GET', $relativeUrl); } /** * fetchPaymentDowntime * */ public function fetchPaymentDowntime() { $relativeUrl = $this->getEntityUrl() . 'downtimes'; return $this->request('GET', $relativeUrl); } /** * fetch Payment Downtime Id * * @param id $id * * @return card */ public function fetchPaymentDowntimeById($id) { $relativeUrl = $this->getEntityUrl() . 'downtimes' . $id; return $this->request('GET', $relativeUrl); } /** * create Payment Json * * @param array $attributes */ public function createPaymentJson($attributes = array()) { $relativeUrl = $this->getEntityUrl() . 'create/json'; return $this->request('POST', $relativeUrl, $attributes); } /** * Submit otp * * @param id $id * * @param array $attributes */ public function otpSubmit($attributes = array()) { $relativeUrl = $this->getEntityUrl(). $this->id . '/otp/submit'; return $this->request('POST', $relativeUrl, $attributes); } /** * Generate otp * * @param id $id * * @param array $attributes */ public function otpGenerate($id) { $relativeUrl = $this->getEntityUrl(). $id . '/otp_generate'; return $this->request('POST', $relativeUrl); } /** * Resend otp * * @param id $id * * @param array $attributes */ public function otpResend() { $relativeUrl = $this->getEntityUrl(). $this->id . '/otp/resend'; return $this->request('POST', $relativeUrl); } public function createUpi($attributes = array()) { $relativeUrl = $this->getEntityUrl() . 'create/upi'; return $this->request('POST', $relativeUrl, $attributes); } public function validateVpa($attributes = array()) { $relativeUrl = $this->getEntityUrl() . 'validate/vpa'; return $this->request('POST', $relativeUrl, $attributes); } public function fetchPaymentMethods() { $relativeUrl = 'methods'; return $this->request('GET', $relativeUrl); } public function expandedDetails($options = array()) { $relativeUrl = $this->getEntityUrl(). $this->id; return $this->request('GET', $relativeUrl, $options); } }