Comments (2)
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.
Please reopen, if you have any more questions.
from node-barion.
Related Issues (20)
- The redirect url is required! HOT 3
- Are Recurring payments supported? HOT 2
- Add statement download functionality
- Upgrade token payment implementation to comply with 3DSv2 HOT 1
- Use basic authentication where sending email and password is necessary HOT 2
- Remove barionTransfer(options, [callback])
- Make redirect and callback urls required at payment start
- Remove handling of v1 API's errors
- Set username and password when instantiating new Barion object HOT 1
- Add logging features
- The status of this repo HOT 2
- Migrating from Travis CI to GitHub Actions HOT 1
- Support new funding sources
- Support Google Pay
- Support Apple Pay
- Daily digest of Barion wiki HOT 1
- Migrating to TS: @types/node-barion HOT 2
- Update supported Node.js versions
- Payment Options In Barion web payment page HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-barion.