Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ionic mobile app - Error: Manifest functionality disabled #34

Closed
prabhashibuddhima opened this issue Sep 20, 2020 · 2 comments
Closed

Comments

@prabhashibuddhima
Copy link

Hi, I'm building my ionic app with a payment gateway. I'm trying to use Barion and I'm getting the following error saying that Manifest functionality is disabled. How can I get through this?

image

@aron123
Copy link
Owner

aron123 commented Sep 20, 2020

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.

@aron123
Copy link
Owner

aron123 commented Sep 22, 2020

Please reopen, if you have any more questions.

@aron123 aron123 closed this as completed Sep 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants