CODE/Javascript

CODE/Javascript

Appstore Server API

#Frontend Server #Node JS #Koa #appStore.controller.js 1. Config const { AppStoreServerAPI, Environment, decodeTransactions, OrderLookupStatus, decodeNotificationPayload, decodeTransaction, decodeRenewalInfo, } = require('app-store-server-api'); const KEY = process.env.APP_STORE_CONNECT_AUTH_KEY; const KEY_ID = process.env.APP_STORE_CONNECT_KEY_ID; const ISSUER_ID = process.env.APP_STORE_CONNECT..

CODE/Javascript

How to handle Google Play Subscription

Verify token First time, user subscribes, You need to verify a purchase token. there are two APIs (V, V2) If you want to know trial status of subscrtion, use V because of parameter purchaseType V2 doesn’t support this parameter yet (23.01.01). POST @param { purchaseToken } @path /api/iap/verify/google Ref. https://developers.google.com/android-publisher/api-ref/rest/v3/purchases.subscriptions { ..

CODE/Javascript

How to handle App Store Subscription

What are the primary datas? - User Primay Key - Subscription Primary Key There are two major API to handle on the server-side. CASE: First subscription You must record user PK with Subscription Key like, payment: { userId: '0x39ab948', originalTransactionId: '2000000159661766', ... purchase detail ... } const payment = { a: 1, b: 2 } At this point of view, First you verfiy token got from app sto..

기루다
'CODE/Javascript' 카테고리의 글 목록