|
|
| (同じ利用者による、間の1版が非表示) |
| 行1: |
行1: |
| − | ==firebaseでnodejsサーバ側実装==
| + | [[Unity/課金/リモートレシート検証/nodejsサーバ]] |
| − | 以下を参考
| + | |
| − | https://tkzo.jp/blog/flutter-iap-implementation/
| + | |
| | | | |
| − | 以下googleApiを導入
| + | [[Unity/課金/リモートレシート検証/phpサーバ]] |
| − | <pre>
| + | |
| − | npm install googleapis --save
| + | |
| − | npm install google-auth-library
| + | |
| − | </pre>
| + | |
| − | | + | |
| − | package.json が以下のようになってるか確認
| + | |
| − | <pre>
| + | |
| − | {
| + | |
| − | "dependencies": {
| + | |
| − | "google-auth-library": "^6.0.5",
| + | |
| − | "googleapis": "^54.0.0",
| + | |
| − | },
| + | |
| − | }
| + | |
| − | </pre>
| + | |
| − | | + | |
| − | ===androidpublisherが見つからない場合===
| + | |
| − | deploy時に以下エラーが発生
| + | |
| − | TypeError: authClient.androidpublisher is not a function
| + | |
| − | 以下場所にv3があるか確認。
| + | |
| − | functions/functions/node_modules/googleapis/build/src/apis/androidpublisher/v3.js
| + | |
| − | なければ、package.jsonのgoogleapisが27ぐらいになってないか確認。最新(2020年現在だと54以上)に変更。
| + | |
| − | <pre>
| + | |
| − | {
| + | |
| − | "dependencies": {
| + | |
| − | "google-auth-library": "^6.0.5",
| + | |
| − | "googleapis": "^54.0.0",
| + | |
| − | },
| + | |
| − | }
| + | |
| − | </pre>
| + | |
2025年3月18日 (火) 11:44時点における最新版
Unity/課金/リモートレシート検証/nodejsサーバ
Unity/課金/リモートレシート検証/phpサーバ