美文网首页
苹果内购丢单问题

苹果内购丢单问题

作者: 欧大帅Allen | 来源:发表于2022-11-09 19:23 被阅读0次

问题描述:

在苹果内购财务报表里,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 财年和账单那些趣事

相关文章

  • 苹果内购丢单问题

    1.内购流程 1.APP调用Apple服务器接口创建订单,发起购买请求 2.内购的api完成购买,获取receip...

  • 苹果内购丢单问题

    问题描述: 在苹果内购财务报表里,10月13日有4笔订单,但是CRM里只看到了3笔。 问题分析: 用户付款后,网络...

  • iOS内购丢单的解决方案

    iOS内购这块的开发一直比较麻烦,除了各种购买选项的问题,最恶心的问题就是丢单问题。丢单就是iOS内购过程中付了钱...

  • 苹果内购零丢单处理

    @[TOC](苹果能够的零丢单操作) # 文章的主要内容 你好!这是我发表的第一段关于苹果技术的博客,如果有说的不...

  • iOS内购的坑

    网上都说苹果内购的回调不准,之前只是看看,并没有太在意直到目前在做的项目出现了内购丢单其实就是某一个订单在苹果回调...

  • iOS 内购漏单问题解决参考方案

    问题:iOS内购漏单的问题 事由: 不久前,有用户反映,大概意思是这样:苹果扣款成功了,但是没有发放应得的内购产品...

  • 记录一下IAP内购的流程

    前段时间做了点内购的东西,记录一下内购流程,对于丢单的处理留到下一篇再记录,本次先不考虑丢单的情况。开发者中心设置...

  • IAP内购丢单处理

    要想处理丢单,就要搞清楚哪些环节会出现丢单的情况。首先来理一下支付流程:1.调用IAP接口发起支付2.支付成功,获...

  • 苹果内购In-app purchase

    关于苹果内购(IAP)的一些问题以及那些坑: 最近在研究苹果内购功能,所以,在网上找了一些资料,进行学习。但是,内...

  • iOS 内购丢单处理策略

    漏单等情况预防与处理方案 1.漏单处理所谓的漏单就是玩家已经正常付费,却没有拿到该拿的道具。 解决:只要购买成功,...

网友评论

      本文标题:苹果内购丢单问题

      本文链接:https://www.haomeiwen.com/subject/usintdtx.html