jnbt / candy_check

Check and verify in-app receipts
MIT License
125 stars 71 forks source link

Trying to understand a cancelled sub #86

Open renatomserra opened 8 months ago

renatomserra commented 8 months ago

Hellow,

So i got this cancelled sub, which i understood is done by manually requesting apple to do refund. But then i got a few days after i got a subscription, anyone see this? Is actually subscribbed validely currently?

[#<CandyCheck::AppStore::Receipt:0x000000000b90bd88
  @attributes=
   {"quantity"=>"1",
    "product_id"=>"XXXXXX",
    "transaction_id"=>"580001197891031",
    "original_transaction_id"=>"580001197891031",
    "purchase_date"=>"2023-09-11 03:34:55 Etc/GMT",
    "purchase_date_ms"=>"1694403295000",
    "purchase_date_pst"=>"2023-09-10 20:34:55 America/Los_Angeles",
    "original_purchase_date"=>"2023-09-11 03:34:56 Etc/GMT",
    "original_purchase_date_ms"=>"1694403296000",
    "original_purchase_date_pst"=>"2023-09-10 20:34:56 America/Los_Angeles",
    "expires_date"=>"2023-09-25 03:34:55 Etc/GMT",
    "expires_date_ms"=>"1695612895000",
    "expires_date_pst"=>"2023-09-24 20:34:55 America/Los_Angeles",
    "web_order_line_item_id"=>"580000549344204",
    "is_trial_period"=>"true",
    "is_in_intro_offer_period"=>"false",
    "in_app_ownership_type"=>"PURCHASED",
    "subscription_group_identifier"=>"20942277"}>,
 #<CandyCheck::AppStore::Receipt:0x000000000b90bdb0
  @attributes=
   {"quantity"=>"1",
    "product_id"=>"XXXXXXX",
    "transaction_id"=>"580001206634768",
    "original_transaction_id"=>"580001197891031",
    "purchase_date"=>"2023-09-25 03:34:55 Etc/GMT",
    "purchase_date_ms"=>"1695612895000",
    "purchase_date_pst"=>"2023-09-24 20:34:55 America/Los_Angeles",
    "original_purchase_date"=>"2023-09-11 03:34:56 Etc/GMT",
    "original_purchase_date_ms"=>"1694403296000",
    "original_purchase_date_pst"=>"2023-09-10 20:34:56 America/Los_Angeles",
    "expires_date"=>"2024-09-25 03:34:55 Etc/GMT",
    "expires_date_ms"=>"1727235295000",
    "expires_date_pst"=>"2024-09-24 20:34:55 America/Los_Angeles",
    "cancellation_date"=>"2023-10-23 16:38:35 Etc/GMT",
    "cancellation_date_ms"=>"1698079115000",
    "cancellation_date_pst"=>"2023-10-23 09:38:35 America/Los_Angeles",
    "web_order_line_item_id"=>"580000549344205",
    "is_trial_period"=>"false",
    "is_in_intro_offer_period"=>"false",
    "cancellation_reason"=>"0",
    "in_app_ownership_type"=>"PURCHASED",
    "subscription_group_identifier"=>"20942277"}>,
 #<CandyCheck::AppStore::Receipt:0x000000000b90be00
  @attributes=
   {"quantity"=>"1",
    "product_id"=>"XXXXXX",
    "transaction_id"=>"580001233721771",
    "original_transaction_id"=>"580001197891031",
    "purchase_date"=>"2023-11-01 14:55:36 Etc/GMT",
    "purchase_date_ms"=>"1698850536000",
    "purchase_date_pst"=>"2023-11-01 07:55:36 America/Los_Angeles",
    "original_purchase_date"=>"2023-09-11 03:34:56 Etc/GMT",
    "original_purchase_date_ms"=>"1694403296000",
    "original_purchase_date_pst"=>"2023-09-10 20:34:56 America/Los_Angeles",
    "expires_date"=>"2024-11-01 14:55:36 Etc/GMT",
    "expires_date_ms"=>"1730472936000",
    "expires_date_pst"=>"2024-11-01 07:55:36 America/Los_Angeles",
    "web_order_line_item_id"=>"580000553830180",
    "is_trial_period"=>"false",
    "is_in_intro_offer_period"=>"false",
    "in_app_ownership_type"=>"PURCHASED",
    "subscription_group_identifier"=>"20942277"}>]
KlausEB commented 7 months ago

@renatomserra Apple returns JSON, which contains both receipts and additional information. This information includes the auto_renew_status we need. The developers didn't realize to save both the cut version and the full version -- the only way out is to look for another gem.

There's already a PR out there for adding the needed functionality, but the developers have been inactive for over a year now https://github.com/jnbt/candy_check/pull/70

renatomserra commented 7 months ago

thanks for the reply @KlausEB , is there any way to check on the apple side what is the status of this subscription? this user is quite abusive i have a feeling she cancelled and is now abusing the perks