Giter VIP home page Giter VIP logo

php-sdk's People

Contributors

dvaeversted avatar ebbesmoeller avatar jer-teamdotblue avatar mauran avatar mike-brookes avatar nuffzetpand0ra avatar tomsommer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

php-sdk's Issues

Help in setting up

Hey,
I want to use windows/checkout method of onPay.
I need to use that in Bagisto. However, I am confused that if I want to use the Windows method, do I still need to install the package? or can I just put the form provided by onPay for windows method and everything will be handled automatically?
Because, if that form is enough to redirect and then the user can perform payment there, then I don't think there is any need to install onPay in my project, right?

Invalid gateway id allowed on OnPayAPI construct

It is possible to send in an invalid gateway_id in the constructor, which results in an invalid authorize URL when attempting the OAUTH2 flow.
It should be restricted to only allow numeric values.

Backwards incompatible change in patch

In 1.0.6 or 1.0.7 \OnPay\OnPayAPI now throws an exception if gateway_id is blank or 0. This was not the case in 1.0.5.

We have fixed the dependency local, but backwards incompatible changes should only be introduced in major versions, not patch or minor updates.

Refreshing token

I can only use the code once. It is like the token never get refreshed.

The payment window does not work a multi language shop

How to handle a multi language shop (eg. Danish / English)?

Payment window language appears to be locked by the "Payment window language" setting in the back office.
It would be more appropriate that language in the payment window was determined by the current language in the front office so that it follows the language chosen by the customer.

Incorrect @throws in PHPDoc

While reading through the phpdoc for TransactionService I noticed several functions such as captureTransaction, cancelTransaction and refundTransaction are stated to throw \GuzzleHttp\Exception\GuzzleException. This is incorrect since they all call OnPayAPI's post method which throws ApiException, TokenException and ConnectionException.

Redirection gives error

Hi,
I am using onPay redirection inside Bagisto eCommerce (Laravel PHP) project.
I using a form and passing all the mandatory input fields to the https://www.onpay.io/window/v3/.
However, when the redirection happens, it gives me error:

Invalid input
The input data was invalid.
Invalid gateway id or HMAC

Also, in the Console tab, I see the following error:
Unrecognized Content-Security-Policy directive 'reflected-xss'.

Are they relatable? How can I confirm that my input data is correct? There seem no way to check if the HMAC is correct and I can assure that the gatway id is correct.

Support API token when using the SDK

I'd love the possibility to be able to use the API token from the OnPay dashboard as a way of communicating with the API via the SDK instead of having to deal with OAuth.

$onPayAPI = new \OnPay\OnPayAPI($tokenStorage, [
    'client_id' => 'example.com', // It is recommended to set it to the domain name the integration resides on
    'redirect_uri' => 'http://localhost/onpay-php-sdk/example2.php?auth',
    'gateway_id' => '1234', // Should be set to the gateway id you are integrating with
]);

There could be an option to switch from OAuth to Bearer tokens in the above code for example.

I'll use the Guzzle client for now as a workaround :)

TokenException details not sufficient

When encountering a TokenException, because of mismatch in provided client_id to OnPayAPI constructor, and client_id/provider_id defined in stored token, a more detailed description of what is wrong would be nice.

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.