razorpay / razorpay-php

Razorpay PHP Library
MIT License
183 stars 126 forks source link

API Fatal error using composer #280

Closed patelsumit5192 closed 2 years ago

patelsumit5192 commented 2 years ago

Hello Sir, I integrated razor pay in PHP. I using composer. I get all order lists using razor API but I got an error.

I refer this issue: https://github.com/razorpay/razorpay-php/issues/2

this is closed but still, problems are there.

But here - https://github.com/Razorpay/razorpay-php use Razorpay\Api\Api $api = new Razorpay($api_key, $api_secret);

This method gives me the following error Fatal error: Uncaught Error: Class "Razorpay\Api\Order" not found in C:\xampp\htdocs\razorpay-php-master\getPayementLinkReport.php:3 Stack trace: #0 {main} thrown in C:\xampp\htdocs\razorpay-php-master\getPayementLinkReport.php on line 3

please check it.

ankitdas13 commented 2 years ago

@patelsumit5192 This worked fine for us when we tested it . can you please use code snippet doc. let us know if you need any help