芝麻web文件管理V1.00
编辑当前文件:/home/royashxg/bit-alphas-ltd.com/user/project/vendor/razorpay/razorpay/src/Payment.php
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() { $relativeUrl = $this->getEntityUrl(). $this->id . '/otp_generate'; return $this->request('POST', $relativeUrl); } }