payjp / payjp-node

PAY.JP server-side JavaScript & Typescirpt SDK :tada: (Note. will remove npm beta tag) Tutorial:
https://pay.jp/docs/started
MIT License
33 stars 8 forks source link

Support react native #14

Closed NishidaRyu416 closed 5 years ago

NishidaRyu416 commented 5 years ago

I saw an error related to fs when tried using this package on a react native app. I guess by just removing the cert option, you can easily support react native apps.

darai0512 commented 5 years ago

Sorry for our late response.

Note that you should not use this SDK on client side like react-native because your secret key is published.

However, SDK users don't have the case to use client certificate, so I think cert option is unnecessary. We will remove it.