Git Product home page Git Product logo

php-pesa's Issues

ErrorException: Undefined index: output_SessionID in file

#0 /home/u689581850/domains/gtnsite.co.tz/gtn/app/Http/Controllers/PortalSDK/Forodha.php(166): Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(8, 'Undefined index...', '/home/u68958185...', 166, Array)
#1 /home/u689581850/domains/gtnsite.co.tz/gtn/app/Http/Controllers/PortalSDK/b2cController.php(331): App\Http\Controllers\PortalSDK\Forodha->transact('c2b', Array)
#2 [internal function]: App\Http\Controllers\PortalSDK\b2cController->forodhaTest()
#3 /home/u689581850/domains/gtnsite.co.tz/gtn/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): call_user_func_array(Array, Array)

Typo

Found a typo on readme, can I submit a pr with a fix?

Package conflict

"guzzlehttp/guzzle": "^7.0", gives a package conflict error during composer install, while "^6.3" works so far. should i expect any problems due to this downgrade?

Origin not allowed

content-type: application/json
access-control-allow-origin: *
content-length: 37
Vary: Accept-Encoding

{
"output_error": "Origin not allowed"
}
{
"status_code": 403,
"headers": "HTTP/1.1 403 Forbidden\r\ndate: Fri, 06 Nov 2020 13:39:46 GMT\r\nx-frame-options: SAMEORIGIN\r\nx-robots-tag: none\r\nx-content-type-options: nosniff\r\nx-xss-protection: 1; mode=block\r\nstrict-transport-security: max-age=16005600; includeSubDomains\r\ncontent-type: application/json\r\naccess-control-allow-origin: *\r\ncontent-length: 37\r\nVary: Accept-Encoding\r\n\r\n",
"body": "{"output_error":"Origin not allowed"}"
}

Re-structure the API design

From

  • Forodha class
    -contructor
    -encrypt_key
    -get_session
    -query
    -transact

To

  • Pesa class
    -contructor(options, env, client)
    -encrypt_key
    -get_session
    -c2b
    -b2c
    -b2b
    -query
    -reverse

Problem when switching to env to production

I have instantiated the pesa class with valid production credentials and switch it to production but a problem occurs, it fails to generate the session key if I return the sandbox credentials and switch back to sandbox it works fine

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.