`transactionReceipt` in `Order` on iOS deprecated

オープン
#15 コメント 3 件 リアクション 2 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
38/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
ios, typescript
領域
mobile, payments

調査の方向性

Start by locating the iOS implementation of transactionReceipt and inspect how the plugin obtains and validates purchase receipts. Compare it with the issue's appStoreReceiptURL approach and verify the resulting receipt handling on supported iOS versions. Done means the deprecated SKPaymentTransaction property is no longer used and receipt retrieval remains functional.

索引モデルが issue の本文から書いたものです。

説明

I think the plugin uses the long ago deprecated transactionReceipt property on SKPaymentTransaction. It is actually deprecated since iOS 7.0 and can not be validated trough Apple Servers anymore for newer OS versions. I suggest the following implementation to obtain the receipt on iOS:

get transactionReceipt(): string {
  const receiptData = NSData.dataWithContentsOfURL(NSBundle.mainBundle.appStoreReceiptURL);
  if (receiptData) {
    return receiptData.base64EncodedStringWithOptions(0);
  }
  
  return null;
}
主要言語
TypeScript
スター
35
フォーク
13
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

NativeScript/payments のほかの issue

NativeScript/payments の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。