UNPKG

@mathrunet/masamune

Version:

Manages packages for the server portion (NodeJS) of the Masamune framework.

51 lines (50 loc) 1.48 kB
/** * Perform Android receipt verification. * * Android の受信確認を実行します。 * * @param {"products" | "subscriptions"} type * Item type(products or subscriptions) * * アイテムの種類(製品またはサブスクリプション) * * @param {String} serviceAccountEmail * The email address of your Google Services account. * * Googleサービスアカウントのメールアドレス。 * * @param {String} serviceAccountPrivateKey * A private key for your Google Services account. * * Googleサービスアカウントのプライベートキー。 * * @param {String} packageName * Application package name. * * アプリケーションのパッケージ名。 * * @param {String} productId * Item ID issued by Google Play. * * GooglePlayで発行されたアイテムID。 * * @param {String} purchaseToken * The purchase token issued at the time of purchase. * * 購入したときに発行された購入トークン。 * * @return {Promise<{ [key: string]: any; }} * Receipt information for the item. * * アイテムの受領情報。 */ export declare function verifyAndroid({ type, serviceAccountEmail, serviceAccountPrivateKey, packageName, productId, purchaseToken, }: { type: "products" | "subscriptions"; serviceAccountEmail: string; serviceAccountPrivateKey: string; packageName: string; productId: string; purchaseToken: string; }): Promise<{ [key: string]: any; }>;