Code Monkey home page Code Monkey logo

Comments (2)

aron123 avatar aron123 commented on August 28, 2024

I think, that for your ionic application, joi's browser version is installed as a sub dependency, which does not include describe function of Schema definitions (hapijs/joi#2198).

You can try to switch off ValidateModels in the Barion constructor (in this case, describe wouldn't have called).

But anyway, I do not recommend to handle payment transactions in the client side, as it is so so insecure. Everybody who download your app can potentially view your secret POSKey, and with it, they can use Barion API in your behalf (e.g. they can initiate a refund of their transactions).

Instead of handling transactions in client side, you must write your own server-side logic for it. Client must send cart data to your server over HTTPS. On server-side, you should initiate a payment with the help of node-barion, and send back the payment gateway URL to the client as a response.

from node-barion.

aron123 avatar aron123 commented on August 28, 2024

Please reopen, if you have any more questions.

from node-barion.

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.