UNPKG

@mathrunet/masamune

Version:

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

74 lines (73 loc) 2.39 kB
/** * Perform IOS receipt verification. * * IOSの受信確認を実行します。 * * @param {String} receiptData * Receipt data for purchases (for StoreKit1) or JWT token (for StoreKit2). * * 購入の際のレシートデータ(StoreKit1の場合)またはJWTトークン(StoreKit2の場合)。 * * @param {String} password * SharedSecret for AppStore (for StoreKit1), obtained from [Apps]->[App Info]->[Shared Secret for App] in the AppStore. * For StoreKit2, this can be an empty string. * * AppStoreのSharedSecret(StoreKit1の場合)。AppStoreの[アプリ]->[App情報]->[App用共有シークレット]から取得します。 * StoreKit2の場合は空文字列を渡すことができます。 * * @param {Number} storeKitVersion * StoreKit version (1 or 2). Defaults to 1. * * StoreKitのバージョン(1または2)。デフォルトは1。 * * @param {String} transactionId * Transaction ID (required for StoreKit2). * * トランザクションID(StoreKit2の場合は必須)。 * * @return {Promise<{ [key: string]: any; }} * Receipt information for the item. * * アイテムの受領情報。 */ export declare function verifyIOS({ receiptData, password, storeKitVersion, transactionId }: { receiptData: string; password?: string | null | undefined; storeKitVersion?: number; transactionId?: string | null | undefined; }): Promise<{ status: number; environment: any; receipt: { bundle_id: any; application_version: any; in_app: { quantity: any; product_id: any; transaction_id: any; original_transaction_id: any; purchase_date_ms: any; original_purchase_date_ms: any; expires_date_ms: any; web_order_line_item_id: any; is_trial_period: any; is_in_intro_offer_period: any; }[]; }; latest_receipt_info: { quantity: any; product_id: any; transaction_id: any; original_transaction_id: any; purchase_date_ms: any; original_purchase_date_ms: any; expires_date_ms: any; web_order_line_item_id: any; is_trial_period: any; is_in_intro_offer_period: any; }[]; pending_renewal_info: never[]; decoded_payload: any; } | { [key: string]: any; }>;