Comments (7)
Thanks for pointing this out. Our current Wordpress offering is the woocommerce plugin, which does not use the php package.
We'll be looking into this.
from razorpay-php.
Hi,
Thank you for the prompt response, as we are using razorpay php library with our custom plugin, so we are facing issue with it.
I hope you can fix this in next release, or can you guide me how can i temporary fix this issue?
from razorpay-php.
Can you point out the class that is clashing?
- We have a
Razorpay\Api\Request
class that is namespaced, so should not clash - There is a
Requests
class (note the plural) atlibs/Requests-1.6.1/library/Requests.php
that shouldn't be clashing either.
Might be easier if you can point us to the plugin.
from razorpay-php.
Yes, error is in Requests.php file (Fatal error: Cannot redeclare class Requests).
from razorpay-php.
- From what I've read Wordpress uses the same requests library as we do (https://make.wordpress.org/core/2016/07/27/http-api-in-4-6/) with the very same version
- As such, you can just disable the requests autoloader in Razorpay.php and it should work
To do that, can you try commenting out lines 4-7 in Razorpay.php and report back here if it works?
from razorpay-php.
Yes after comment out that lines payment process is working fine. I would like to know that, is there any specific functionality implemented with Requests class.
Thank you for the help.
from razorpay-php.
We use the standard Requests library, release 1.6.1 (latest) and do not make any changes.
Closing this issue, as there is a very easy and clear workaround.
from razorpay-php.
Related Issues (20)
- notes note coming in response of live api key HOT 1
- Get a BAD_REQUEST_ERROR on live mode with laravel 9. HOT 1
- Diners club credit card not accepted HOT 3
- Array to string conversion Error on src/Request.php HOT 3
- Valid VPA (Third party validation) giving "The requested URL was not found on the server." HOT 3
- In need of a sandbox/test account to build Razorpay integration for our software
- [Feature]: Add RazorPay to Laravel Spark replacing Stripe HOT 2
- Wordpress to 6.2 version Fatal error HOT 2
- Customer details not prefilled in razorpay payment page with paymenLink method HOT 1
- Customer already exists for the merchant while creating customer - how can i get the customer id HOT 2
- [Feature]: Example site with frontend with user registration, subscription
- Error In Wordpress if more then one plugin use Razor pay composer
- Payment Link API issue occur HOT 3
- How to Save/Add payment method HOT 1
- Can not verify payment signature. Error: invalid signature passed
- is that razorpay php sdk support auth 2.0 .. can i make calls using access token instead of using basic auth token? HOT 1
- CURL error : 60 ssl certificate problem HOT 13
- Order ID not getting with Payment Link
- Access Denied HOT 1
- Not Compatible with PHP 8.3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from razorpay-php.