Skip to main content
  • PHP Changelog: Discover new features, updates and deprecations related to the Razorpay PHP SDK (since Jan 2024).
    • Troubleshooting & FAQs: Troubleshoot common error scenarios and find answers to frequently asked questions about Razorpay PHP SDK.
    • Troubleshooting & FAQs: Troubleshoot common error scenarios and find answers to frequently asked questions about Razorpay PHP SDK.
Integrate the Razorpay PHP SDK with your PHP-based website to accept payments, initiate refunds and much more.

Dependencies

You must use PHP v8.3 or higher. Know more about the latest PHP versions.

Installation

You can either download the file or run a composer command to install the Razorpay PHP SDK. Download the latest razorpay-php.zip file from the releases section on GitHub. The razorpay-php.zip is pre-compiled to include all dependencies. You can install Razorpay using a composer command. Run the below command on your Composer: Unzip the SDK file and include the Razorpay.php file in your project.
Install using Composer
  • Payment Gateway: Integrate with Razorpay Payment Gateway.
  • API Sample Codes: Integrate using API sample codes.
  • Other Razorpay Products: Integrate with other Razorpay products.

Support

Address Verification System