I'm having trouble with verifying a receipt that has been canceled on the App Store. Can anyone give me some advice on how to determine its current subscription status?
The prerequisite user behavior is as follows.
In determining the its current subscription status from this JSON
The prerequisite user behavior is as follows.
The user purchased ORIGINAL_PRODUCT_ID
Upgraded to UPGRADED_PRODUCT_ID
User requested a refund and was processed by the App Store
Code Block [ { "quantity": "1", "product_id": "UPGRADED_PRODUCT_ID", "transaction_id": "TRANSACTION_B", "original_transaction_id": "TRANSACTION_A", "purchase_date": "2020-12-05 14:05:19 Etc/GMT", "original_purchase_date": "2020-12-05 13:44:43 Etc/GMT", "expires_date": "2021-12-05 14:05:19 Etc/GMT", "cancellation_date": "2020-12-10 02:49:19 Etc/GMT", "web_order_line_item_id": "ID_B", "is_trial_period": "false", "is_in_intro_offer_period": "false", "cancellation_reason": "0", "in_app_ownership_type": "PURCHASED", "subscription_group_identifier": "GROUP_A" }, { "quantity": "1", "product_id": "ORIGINAL_PRODUCT_ID", "transaction_id": "TRANSACTION_A", "original_transaction_id": "TRANSACTION_A", "purchase_date": "2020-12-05 13:44:41 Etc/GMT", "original_purchase_date": "2020-12-05 13:44:43 Etc/GMT", "expires_date": "2021-12-05 13:44:41 Etc/GMT", "web_order_line_item_id": "ID_A", "is_trial_period": "false", "is_in_intro_offer_period": "false", "in_app_ownership_type": "PURCHASED", "subscription_group_identifier": "GROUP_A", "is_upgraded": "true" } ]
In determining the its current subscription status from this JSON
User has canceled UPGRADED_PRODUCT_ID and is subscribing to ORIGINAL_PRODUCT_ID
User has canceled UPGRADED_PRODUCT_ID and has not been subscribing anything