蘋果內購丟單問題

問題描述:

在蘋果內購財務報表裏,10月13日有4筆訂單,但是CRM裏只看到了3筆。

問題分析:

用戶付款後,網絡不好,或者退出應用,導致沒調支付接口。後臺沒有查到用戶請求接口的記錄。

內購流程設計有問題,應該在服務校驗的時候生成訂單號,接着,用戶付款後,再把訂單號和票據傳給後臺。這樣就不會出現蘋果內購付款了,但是後臺完全查不到這個訂單的情況。

解決方案:

iOS Invoice lookup API

Look Up Order ID

Get a customer’s in-app purchases from a receipt using the order ID.

URL

GET https://api.storekit.itunes.apple.com/inApps/v1/lookup/{orderId}

Sandbox URL

GET https://api.storekit-sandbox.itunes.apple.com/inApps/v1/lookup/{orderId}

orderId

The customer’s order ID from an App Store receipt for in-app purchases.

Discussion

Important

This endpoint isn’t available in the sandbox environment.

Call this endpoint to identify and validate a customer’s in-app purchases, based on their order ID.

When a customer contacts you for support, ask for their order ID and use that value to call this endpoint. Customers can retrieve their order ID’s from their purchase history on the App Store; for more information, see See your purchase history for the App Store, iTunes store, and more. The App Store also sends customers an email receipt with an order ID each time they make in-app purchases.

A successful response with an OrderLookupStatus value of 0 contains an array of one or more signed transactions for the in-app purchase based on the order ID. Use the decoded transaction, JWSTransactionDecodedPayload, to identify information such as the productId and purchaseDate that you can use to provide customer support.

A response with an OrderLookupStatus value of 1 has an empty signed transactions array.

The App Store Server API returns information based on the customer’s in-app purchase history regardless of whether the customer installed, removed, or reinstalled the app on their devices.

參考文章:

iOS StoreKit 2 新特性解析

蘋果 iOS 內購三步曲:App 內退款、歷史訂單查詢、綁定用戶防掉單!--- WWDC21

蘋果 AppStore 財年和賬單那些趣事

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章