`transactionReceipt` in `Order` on iOS deprecated
還沒有人認領這個 Issue。
評估
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 新手友好度
- 38/100
- Issue 類型
- 缺陷
- 描述清晰度
- 基本清楚
- 活躍度
- 停滯
- 技術堆疊
- ios, typescript
研究方向
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
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
NativeScript/payments 的其他 Issue
-
com.android.billingclient:billing@@8.0.0 - com.google.android.gms.internal.play_billing.zzbg.zze未關閉
難度 4/5 3-5 天 新手友好度 28/100
NativeScript/payments#45 ·
-
難度 4/5 3-5 天 新手友好度 35/100
NativeScript/payments#43 · 2 個 reaction ·
-
難度 3/5 1-2 天 新手友好度 35/100
NativeScript/payments#39 ·
-
難度 5/5 一週以上 新手友好度 25/100
NativeScript/payments#36 · 2 則留言 ·
-
難度 3/5 1-2 天 新手友好度 35/100
NativeScript/payments#35 ·
查看 NativeScript/payments 的全部 Issue
相似的 Issue
-
ci-cd desktop size:low telemetry-improvement telemetry-round-1
難度 2/5 1-3 小時 新手友好度 66/100
vfarcic/dot-agent-deck#2079 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 75/100
維護者通常 1 天內回覆
-
難度 1/5 1 小時以內 新手友好度 83/100
維護者通常 1 天內回覆
-
status:in-linear
難度 2/5 1-3 小時 新手友好度 68/100
維護者通常 1 天內回覆
-
🔊 a11y
難度 2/5 1-3 小時 新手友好度 82/100
betagouv/mon-entreprise#4726 ·
維護者通常 9 天內回覆