HEX
Server: nginx/1.27.1
System: Linux in-3 5.15.0-161-generic #171-Ubuntu SMP Sat Oct 11 08:17:01 UTC 2025 x86_64
User: ivenus-clone (3297)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source
Upload Files
File: /storage/v4513/ivenusnew/public_html/wp-content/plugins/woo-razorpay/razorpay-sdk/src/Token.php
<?php

namespace Razorpay\Api;

class Token extends Entity
{    
    
    public function create($attributes = array())
    {
        $url = $this->getEntityUrl();     
        
        return $this->request('POST', $url, $attributes);
    }

    /**
     * @param $id Token id
     */
    public function fetch($id)
    {
        $relativeUrl = 'customers/'.$this->customer_id.'/'.$this->getEntityUrl().$id;

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

    public function fetchCardPropertiesByToken($attributes = array())
    {
        $relativeUrl = $this->getEntityUrl(). '/fetch';

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

    public function all($options = array())
    {
        $relativeUrl = 'customers/'.$this->customer_id.'/'.$this->getEntityUrl();

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

    public function delete($id)
    {
        $relativeUrl = 'customers/'.$this->customer_id.'/'.$this->getEntityUrl().$id;

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

    public function deleteToken($attributes = array())
    {
        $relativeUrl = $this->getEntityUrl(). '/delete';

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

    public function processPaymentOnAlternatePAorPG($attributes = array())
    {
        $relativeUrl = $this->getEntityUrl().'service_provider_tokens/token_transactional_data';

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