Coder Social home page Coder Social logo

Basic auth with & in APIkey about api HOT 4 CLOSED

vivapayments avatar vivapayments commented on July 30, 2024
Basic auth with & in APIkey

from api.

Comments (4)

dpnevmatikos avatar dpnevmatikos commented on July 30, 2024

Hi there @bekatoros ,
Are you getting an error code?
Please also refer to this article for more info.

Let us know if that works out for you.

from api.

bekatoros avatar bekatoros commented on July 30, 2024

The authorization error I receive.
HTTP/1.1 401 Invalid password for the merchant with id 45193634-###-###-###-cf6b72e925fb Cache-Control: no-cache Pragma: no-cache Expires: -1 Server: Microsoft-IIS/7.5 Date: Tue, 01 Dec 2015 15:55:36 GMT Content-Length: 0

from api.

dpnevmatikos avatar dpnevmatikos commented on July 30, 2024

You may need to encode your API key first.
I am not a PHP developer, but a quick Google search revealed this StackOverflow thread which might be what you need.

from api.

bekatoros avatar bekatoros commented on July 30, 2024

Fixed by using
curl_setopt($session, CURLOPT_USERPWD, rawurldecode($MerchantId).':'.rawurldecode($APIKey));

from api.

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.