如果我想检查用户应用内订阅是否已过期,expiration_intent 有什么用?
what is the use of expiration_intent if I want to check the user in-app subscription is expired or not?
我目前正在使用沙盒和服务器来验证我的收据。在处理订阅过期或取消时,我必须检查标志。你能告诉我如何处理这两个关于标志的案例吗?
"pending_renewal_info": [
{
"expiration_intent": "1", (cancelled subscription)
"auto_renew_product_id": “product_ name”,
"original_transaction_id": “11111111111111111”,
"is_in_billing_retry_period": "0",
"product_id": “product_name”,
"auto_renew_status": "0"
}
]
expiration_intent
是订阅到期的原因。如果存在此字段,则表示订阅已过期。您还可以检查 expires_date
以确定它何时过期。
This key is only present for a receipt containing an expired auto-renewable subscription. You can use this value to decide whether to display appropriate messaging in your app for customers to resubscribe.
“1” - Customer canceled their subscription.
“2” - Billing error; for example customer’s payment information was no
longer valid.
“3” - Customer did not agree to a recent price increase.
“4” - Product was not available for purchase at the time of renewal.
“5” - Unknown error.
我目前正在使用沙盒和服务器来验证我的收据。在处理订阅过期或取消时,我必须检查标志。你能告诉我如何处理这两个关于标志的案例吗?
"pending_renewal_info": [
{
"expiration_intent": "1", (cancelled subscription)
"auto_renew_product_id": “product_ name”,
"original_transaction_id": “11111111111111111”,
"is_in_billing_retry_period": "0",
"product_id": “product_name”,
"auto_renew_status": "0"
}
]
expiration_intent
是订阅到期的原因。如果存在此字段,则表示订阅已过期。您还可以检查 expires_date
以确定它何时过期。
This key is only present for a receipt containing an expired auto-renewable subscription. You can use this value to decide whether to display appropriate messaging in your app for customers to resubscribe.
“1” - Customer canceled their subscription.
“2” - Billing error; for example customer’s payment information was no longer valid.
“3” - Customer did not agree to a recent price increase.
“4” - Product was not available for purchase at the time of renewal.
“5” - Unknown error.