Giter Club home page Giter Club logo

Comments (7)

captn3m0 avatar captn3m0 commented on August 11, 2024

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.

hirenbhuva1993 avatar hirenbhuva1993 commented on August 11, 2024

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.

captn3m0 avatar captn3m0 commented on August 11, 2024

Can you point out the class that is clashing?

  1. We have a Razorpay\Api\Request class that is namespaced, so should not clash
  2. There is a Requests class (note the plural) at libs/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.

hirenbhuva1993 avatar hirenbhuva1993 commented on August 11, 2024

Yes, error is in Requests.php file (Fatal error: Cannot redeclare class Requests).

from razorpay-php.

captn3m0 avatar captn3m0 commented on August 11, 2024

To do that, can you try commenting out lines 4-7 in Razorpay.php and report back here if it works?

from razorpay-php.

hirenbhuva1993 avatar hirenbhuva1993 commented on August 11, 2024

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.

captn3m0 avatar captn3m0 commented on August 11, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.