PATH:
home
/
lab2454c
/
sportsnovate.com
/
backups
/
core
/
vendor
/
razorpay
/
razorpay
/
src
<?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); } }
[-] VirtualAccount.php
[edit]
[-] ArrayableInterface.php
[edit]
[+]
..
[-] Settlement.php
[edit]
[-] Resource.php
[edit]
[-] Request.php
[edit]
[-] Api.php
[edit]
[-] Plan.php
[edit]
[-] Refund.php
[edit]
[-] Card.php
[edit]
[-] Order.php
[edit]
[-] Subscription.php
[edit]
[-] Token.php
[edit]
[-] Customer.php
[edit]
[-] PaymentPage.php
[edit]
[-] Utility.php
[edit]
[+]
Errors
[-] Transfer.php
[edit]
[-] Addon.php
[edit]
[-] Payment.php
[edit]
[-] Invoice.php
[edit]
[-] Webhook.php
[edit]
[-] Collection.php
[edit]
[-] Entity.php
[edit]