Server IP : 108.163.255.210 / Your IP : 18.116.24.238 Web Server : Apache System : Linux blossom.urlnameserver.com 3.10.0-1160.80.1.el7.x86_64 #1 SMP Tue Nov 8 15:48:59 UTC 2022 x86_64 User : ( 1172) PHP Version : 7.2.34 Disable Function : eval,escapeshellarg,proc_close,proc_get_status,proc_nice,proc_open,symlink,system,pcntl_exec,getrusage,chown,chgp,closelog,openlog,syslog,define_syslog_variables,php_ini_loaded_file,getservbyname,getservbyport,posix_getgid,posix_getgrgid,proc_terminate,pfsockopen,apache_child_terminate,posix_mkfifo,posix_setpgid,posix_setuid,hypot,pg_host,pos,posix_access,posix_getcwd,posix_getservbyname,myshellexec,getpid,posix_getsid,posix_isatty,posix_kill,posix_mknod,posix_setgid,posix_setsid,posix_setuid,posix_times,posix_uname,ps_fill,posix_getpwuid,global,ini_restore,zip_open,zip_read,rar_open,bzopen,bzread,bzwrite,apache_get_modules,apache_get_version,phpversionphpinfo,php_ini_scanned_files,get_current_user,disk_total_space,diskfreespace,leak,imap_list,hypo,filedump,safe_mode,getmygid,apache_getenv,apache_setenv,bzread,bzwrite,bzopen,phpini,higlight_file,dos_conv,get_cwd,er_log,cmd,e_name,vdir,get_dir,only_read,ftok,ftpexec,posix_getpwnam,mysql_list_dbs,disk_free_space,session_save_path,confirm_phpdoc_compiled,zip_entry_rea,php_u,psockopen,crack_opendict,crack_getlastmessage,crack_closedict,crack_check,fpassthru,posix_get_last_error,posix_getlogin,posix_getgroups,posix_strerror,posix_getrlimit,posix_getpgrp,posix_getgrnam,pos,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/unilinki/public_html/shop/vendor/razorpay/razorpay/ |
Upload File : |
# razorpay-php [![Build Status](https://travis-ci.org/razorpay/razorpay-php.svg?branch=master)](https://travis-ci.org/razorpay/razorpay-php) [![Latest Stable Version](https://poser.pugx.org/razorpay/razorpay/v/stable.svg)](https://packagist.org/packages/razorpay/razorpay) [![License](https://poser.pugx.org/razorpay/razorpay/license.svg)](https://packagist.org/packages/razorpay/razorpay) Razorpay client PHP Api. The api follows the following practices: - namespaced under Razorpay\Api - call $api->class->function() to access the api - api throws exceptions instead of returning errors - options are passed as an array instead of multiple arguments wherever possible - All request and responses are communicated over JSON - A minimum of PHP 5.3 is required # Installation - If your project uses composer, add following to composer.json ```json { "require": { "razorpay/razorpay": "1.*" } } ``` Then, run `composer update`. If you are not using composer, download the latest release from [the releases section](https://github.com/razorpay/razorpay-php/releases). **You should download the `razorpay-php.zip` file**. After that include `Razorpay.php` in your application and you can use the API as usual. # Usage ```php use Razorpay\Api\Api; $api = new Api($api_key, $api_secret); $order = $api->order->create(array('receipt' => '123', 'amount' => 100, 'currency' => 'INR')); // Creates order $order = $api->order->fetch($orderId); // Returns a particular order $api->order->all($options); // Returns array of order objects $api->payment->all($options); // Returns array of payment objects $payment = $api->payment->fetch($id); // Returns a particular payment $api->payment->fetch($id)->capture(array('amount'=>$amount)); // Captures a payment $api->refund->create(array('payment_id' => $id)); // Creates refund for a payment $api->refund->create(array('payment_id' => $id, 'amount'=>$refundAmount)); // Creates partial refund for a payment $refund = $api->refund->fetch($refundId); // Returns a particular refund $card = $api->card->fetch($cardId); // Returns a particular card $customer = $api->customer->create(array('name' => 'Razorpay User', 'email' => 'customer@razorpay.com')); // Creates customer $customer = $api->customer->fetch($customerId); // Returns a particular customer $api->customer->edit(array('name' => 'Razorpay User', 'email' => 'customer@razorpay.com')); // Edits customer $token = $api->customer->token()->fetch($tokenId); // Returns a particular token $api->customer->token()->all($options); // Returns array of token objects $api->customer->token()->delete($tokenId); // Deletes a token // To get the payment details echo $payment->amount; echo $payment->currency; // And so on for other attributes ``` For further help, see our documentation on <https://docs.razorpay.com>. [composer-install]: https://getcomposer.org/doc/00-intro.md#installation-linux-unix-osx ## Developing See the [doc.md](doc.md) file for getting started with development. ## License The Razorpay PHP SDK is released under the MIT License. ## Release Steps to follow for a release: 0. Merge the branch with the new code to master. 1. Bump the Version in `src/Api.php`. 2. Rename Unreleased to the new tag in `CHANGELOG.md` 3. Add a new empty "Unreleased" section at the top of `CHANGELOG.md` 3. Fix links at bottom in `CHANGELOG.md` 4. Commit 5. Tag the release and push to GitHub 6. A release should automatically be created once the travis build passes. Edit the release to add some description.