`transactionReceipt` in `Order` on iOS deprecated
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 38/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- ios, typescript
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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;
}
- Ngôn ngữ chính
- TypeScript
- Star
- 35
- Fork
- 13
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của NativeScript/payments
-
com.android.billingclient:billing@@8.0.0 - com.google.android.gms.internal.play_billing.zzbg.zzeĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 28/100
NativeScript/payments#45 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
NativeScript/payments#43 · 2 reaction ·
-
[@nativescript/payments] Not possible to use both subscriptions and IAPs in the same projectĐang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
NativeScript/payments#39 ·
-
support Amazon Android appsĐang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
NativeScript/payments#36 · 2 bình luận ·
-
[Restore Orders] MistakeĐang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
NativeScript/payments#35 ·
Tất cả issue của NativeScript/payments
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
pingdotgg/t3code#30228 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
ci-cd desktop size:low telemetry-improvement telemetry-round-1
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
vfarcic/dot-agent-deck#2079 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Broken links in the docsĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 83/100
Maintainer thường phản hồi trong vòng 1 ngày