Question

Restore Button not working as expected with PaywallView


Userlevel 2
Badge +4

I have an existing subscription app that’s over a year old that has always used RC.  I’ve tested purchasing and restoring in the past before. I wanted to give RC paywalls a go and overall it’s been very easy to implement.  However, I’m hitting a strange situation that I can’t figure out: the restore button on the paywall isn’t working as expected.

I was already displaying a sheet with my own paywall and I just swapped in PaywallView instead inside the sheet.

If there’s currently not a sub active I can purchase (sandbox) either of the two subscription options I have via the paywall without a problem. When the purchase goes through the sheet containing PaywallView gets dismissed.

However, when I click the restore link I get a popup that says “Purchases restored successfully!”. The paywall is NOT dismissed.  When I close the paywall manually the app (correctly) acts as if no subscription is active since there was nothing to restore.

If I put my paywall I created myself (which calls Purchases.shared.restorePurchases) back then it correctly goes into my logic to show a message that says there isn’t an active subscription.

I don’t have a StoreKit configuration file.

INFO: ℹ️ Parsing receipt

INFO: ℹ️ Receipt parsed successfully

INFO: ℹ️ Parsing receipt

INFO: ℹ️ Receipt parsed successfully

DEBUG: ℹ️ PostReceiptDataOperation: Started

INFO: ℹ️ Parsing receipt

INFO: ℹ️ Receipt parsed successfully

DEBUG: ℹ️ PostReceiptDataOperation: Posting receipt (source: 'restore') (note: the contents might not be up-to-date, but it will be refreshed with Apple's servers):

{"opaque_value":"hCTR0USyN12MiKDPssuiOA==","original_application_version":"1.0","sha1_hash":"t8EHTmmQFQ1Ki2dBU9dx1u238Io=","in_app_purchases":[{"quantity":1,"is_in_trial_period":false,"expires_date":"2023-02-07T22:07:57Z","purchase_date":"2023-02-07T21:52:57Z","is_in_intro_offer_period":false,"transaction_id":"2000000269969673","original_purchase_date":"2023-02-07T21:53:01Z","web_order_line_item_id":2000000020382819,"original_transaction_id":"2000000269969673","product_type":3,"product_id":"pdr_099_3m"},{"original_purchase_date":"2023-02-07T21:53:01Z","expires_date":"2023-02-07T22:22:57Z","is_in_intro_offer_period":false,"transaction_id":"2000000269983813","is_in_trial_period":false,"original_transaction_id":"2000000269969673","web_order_line_item_id":2000000020382820,"product_type":3,"quantity":1,"product_id":"pdr_099_3m","purchase_date":"2023-02-07T22:07:57Z"},{"transaction_id":"2000000269999027","quantity":1,"product_id":"pdr_099_3m","expires_date":"2023-02-07T22:37:57Z","product_type":3,"is_in_intro_offer_period":false,"web_order_line_item_id":2000000020383530,"original_purchase_date":"2023-02-07T21:53:01Z","original_transaction_id":"2000000269969673","purchase_date":"2023-02-07T22:22:57Z","is_in_trial_period":false},{"product_type":3,"transaction_id":"2000000270008812","product_id":"pdr_099_3m","is_in_trial_period":false,"original_purchase_date":"2023-02-07T21:53:01Z","is_in_intro_offer_period":false,"web_order_line_item_id":2000000020384330,"quantity":1,"expires_date":"2023-02-07T22:52:57Z","original_transaction_id":"2000000269969673","purchase_date":"2023-02-07T22:37:57Z"},{"product_type":3,"original_purchase_date":"2023-02-07T21:53:01Z","quantity":1,"expires_date":"2023-02-07T23:07:57Z","product_id":"pdr_099_3m","purchase_date":"2023-02-07T22:52:57Z","original_transaction_id":"2000000269969673","transaction_id":"2000000270021626","is_in_trial_period":false,"is_in_intro_offer_period":false,"web_order_line_item_id":2000000020385062},{"product_type":3,"original_transaction_id":"2000000269969673","product_id":"pdr_099_3m","is_in_intro_offer_period":false,"expires_date":"2023-02-07T23:22:57Z","transaction_id":"2000000270032793","is_in_trial_period":false,"original_purchase_date":"2023-02-07T21:53:01Z","quantity":1,"purchase_date":"2023-02-07T23:07:57Z","web_order_line_item_id":2000000020385757},{"expires_date":"2023-02-07T23:37:57Z","is_in_intro_offer_period":false,"product_id":"pdr_099_3m","original_purchase_date":"2023-02-07T21:53:01Z","purchase_date":"2023-02-07T23:22:57Z","original_transaction_id":"2000000269969673","is_in_trial_period":false,"web_order_line_item_id":2000000020386475,"product_type":3,"transaction_id":"2000000270040254","quantity":1},{"original_transaction_id":"2000000269969673","is_in_trial_period":false,"expires_date":"2023-02-07T23:52:57Z","product_type":3,"purchase_date":"2023-02-07T23:37:57Z","transaction_id":"2000000270050539","quantity":1,"is_in_intro_offer_period":false,"original_purchase_date":"2023-02-07T21:53:01Z","product_id":"pdr_099_3m","web_order_line_item_id":2000000020387232},{"transaction_id":"2000000270058711","is_in_intro_offer_period":false,"product_type":3,"web_order_line_item_id":2000000020387934,"quantity":1,"is_in_trial_period":false,"original_transaction_id":"2000000269969673","original_purchase_date":"2023-02-07T21:53:01Z","product_id":"pdr_099_3m","purchase_date":"2023-02-07T23:52:57Z","expires_date":"2023-02-08T00:07:57Z"},{"original_transaction_id":"2000000269969673","is_in_intro_offer_period":false,"quantity":1,"transaction_id":"2000000270066661","purchase_date":"2023-02-08T00:07:57Z","product_type":3,"expires_date":"2023-02-08T00:22:57Z","web_order_line_item_id":2000000020388562,"product_id":"pdr_099_3m","is_in_trial_period":false,"original_purchase_date":"2023-02-07T21:53:01Z"},{"expires_date":"2023-02-08T00:37:57Z","web_order_line_item_id":2000000020389240,"product_id":"pdr_099_3m","product_type":3,"quantity":1,"is_in_trial_period":false,"purchase_date":"2023-02-08T00:22:57Z","is_in_intro_offer_period":false,"original_transaction_id":"2000000269969673","transaction_id":"2000000270074450","original_purchase_date":"2023-02-07T21:53:01Z"},{"quantity":1,"original_transaction_id":"2000000269969673","transaction_id":"2000000270084584","web_order_line_item_id":2000000020389918,"purchase_date":"2023-02-08T00:38:23Z","product_id":"pdr_099_3m","original_purchase_date":"2023-02-07T21:53:01Z","expires_date":"2023-02-08T00:53:23Z","is_in_trial_period":false,"is_in_intro_offer_period":false,"product_type":3},{"original_transaction_id":"2000000269969673","product_id":"pdr_099_3m","transaction_id":"2000000291107359","quantity":1,"product_type":3,"purchase_date":"2023-03-04T20:31:16Z","original_purchase_date":"2023-02-07T21:53:01Z","expires_date":"2023-03-04T20:46:16Z","web_order_line_item_id":2000000020390607,"is_in_trial_period":false,"is_in_intro_offer_period":false},{"purchase_date":"2023-03-04T20:46:16Z","expires_date":"2023-03-04T21:01:16Z","is_in_intro_offer_period":false,"quantity":1,"original_purchase_date":"2023-02-07T21:53:01Z","web_order_line_item_id":2000000022243040,"is_in_trial_period":false,"product_type":3,"original_transaction_id":"2000000269969673","product_id":"pdr_099_3m","transaction_id":"2000000291108632"},{"product_type":3,"quantity":1,"web_order_line_item_id":2000000022243384,"product_id":"pdr_099_3m","transaction_id":"2000000291110734","expires_date":"2023-03-04T21:16:16Z","original_purchase_date":"2023-02-07T21:53:01Z","purchase_date":"2023-03-04T21:01:16Z","is_in_intro_offer_period":false,"original_transaction_id":"2000000269969673","is_in_trial_period":false},{"original_transaction_id":"2000000269969673","is_in_trial_period":false,"product_type":3,"transaction_id":"2000000291112584","quantity":1,"product_id":"pdr_099_3m","is_in_intro_offer_period":false,"purchase_date":"2023-03-04T21:16:47Z","expires_date":"2023-03-04T21:31:47Z","original_purchase_date":"2023-02-07T21:53:01Z","web_order_line_item_id":2000000022243736},{"purchase_date":"2023-03-04T21:31:47Z","web_order_line_item_id":2000000022244107,"transaction_id":"2000000291113644","quantity":1,"is_in_intro_offer_period":false,"product_type":3,"expires_date":"2023-03-04T21:46:47Z","original_transaction_id":"2000000269969673","product_id":"pdr_099_3m","is_in_trial_period":false,"original_purchase_date":"2023-02-07T21:53:01Z"},{"product_type":3,"quantity":1,"transaction_id":"2000000291114855","original_purchase_date":"2023-02-07T21:53:01Z","is_in_trial_period":false,"is_in_intro_offer_period":false,"original_transaction_id":"2000000269969673","web_order_line_item_id":2000000022244395,"expires_date":"2023-03-04T22:01:47Z","product_id":"pdr_099_3m","purchase_date":"2023-03-04T21:46:47Z"},{"is_in_trial_period":false,"quantity":1,"purchase_date":"2023-03-04T22:01:47Z","original_transaction_id":"2000000269969673","original_purchase_date":"2023-02-07T21:53:01Z","is_in_intro_offer_period":false,"web_order_line_item_id":2000000022244721,"product_type":3,"transaction_id":"2000000291116683","product_id":"pdr_099_3m","expires_date":"2023-03-04T22:16:47Z"},{"original_transaction_id":"2000000269969673","product_id":"pdr_099_3m","quantity":1,"expires_date":"2023-03-04T22:31:47Z","is_in_trial_period":false,"is_in_intro_offer_period":false,"original_purchase_date":"2023-02-07T21:53:01Z","web_order_line_item_id":2000000022245052,"product_type":3,"transaction_id":"2000000291118145","purchase_date":"2023-03-04T22:16:47Z"},{"transaction_id":"2000000291120475","original_purchase_date":"2023-02-07T21:53:01Z","purchase_date":"2023-03-04T22:31:47Z","is_in_trial_period":false,"web_order_line_item_id":2000000022245362,"quantity":1,"product_type":3,"original_transaction_id":"2000000269969673","expires_date":"2023-03-04T22:46:47Z","product_id":"pdr_099_3m","is_in_intro_offer_period":false},{"original_transaction_id":"2000000269969673","transaction_id":"2000000291122726","purchase_date":"2023-03-04T22:46:47Z","product_id":"pdr_099_3m","product_type":3,"is_in_intro_offer_period":false,"web_order_line_item_id":2000000022245653,"is_in_trial_period":false,"original_purchase_date":"2023-02-07T21:53:01Z","expires_date":"2023-03-04T23:01:47Z","quantity":1},{"product_type":3,"original_purchase_date":"2023-02-07T21:53:01Z","quantity":1,"transaction_id":"2000000291125241","product_id":"pdr_099_3m","purchase_date":"2023-03-04T23:01:47Z","original_transaction_id":"2000000269969673","is_in_trial_period":false,"expires_date":"2023-03-04T23:16:47Z","web_order_line_item_id":2000000022245968,"is_in_intro_offer_period":false},{"product_id":"pdr_099_3m","is_in_trial_period":false,"quantity":1,"product_type":3,"expires_date":"2023-03-04T23:31:47Z","is_in_intro_offer_period":false,"transaction_id":"2000000291126046","purchase_date":"2023-03-04T23:16:47Z","original_transaction_id":"2000000269969673","original_purchase_date":"2023-02-07T21:53:01Z","web_order_line_item_id":2000000022246283},{"web_order_line_item_id":2000000022246587,"quantity":1,"transaction_id":"2000000291256631","product_id":"pdr_099_3m","purchase_date":"2023-03-05T15:38:59Z","original_transaction_id":"2000000269969673","product_type":3,"original_purchase_date":"2023-02-07T21:53:01Z","is_in_trial_period":false,"expires_date":"2023-03-05T15:53:59Z","is_in_intro_offer_period":false},{"expires_date":"2023-03-05T16:08:59Z","product_type":3,"purchase_date":"2023-03-05T15:53:59Z","quantity":1,"original_purchase_date":"2023-02-07T21:53:01Z","is_in_trial_period":false,"original_transaction_id":"2000000269969673","is_in_intro_offer_period":false,"transaction_id":"2000000291258851","web_order_line_item_id":2000000022267562,"product_id":"pdr_099_3m"},{"purchase_date":"2023-03-05T16:08:59Z","product_type":3,"is_in_intro_offer_period":false,"expires_date":"2023-03-05T16:23:59Z","web_order_line_item_id":2000000022267944,"transaction_id":"2000000291261249","original_transaction_id":"2000000269969673","original_purchase_date":"2023-02-07T21:53:01Z","product_id":"pdr_099_3m","quantity":1,"is_in_trial_period":false},{"transaction_id":"2000000291263076","is_in_intro_offer_period":false,"expires_date":"2023-03-05T16:38:59Z","is_in_trial_period":false,"product_id":"pdr_099_3m","product_type":3,"web_order_line_item_id":2000000022268328,"purchase_date":"2023-03-05T16:23:59Z","original_transaction_id":"2000000269969673","original_purchase_date":"2023-02-07T21:53:01Z","quantity":1},{"is_in_intro_offer_period":false,"quantity":1,"product_id":"pdr_099_3m","original_purchase_date":"2023-02-07T21:53:01Z","product_type":3,"expires_date":"2023-03-05T16:53:59Z","is_in_trial_period":false,"original_transaction_id":"2000000269969673","transaction_id":"2000000291264733","purchase_date":"2023-03-05T16:38:59Z","web_order_line_item_id":2000000022268686},{"is_in_trial_period":false,"is_in_intro_offer_period":false,"purchase_date":"2023-03-05T16:53:59Z","web_order_line_item_id":2000000022269076,"product_type":3,"quantity":1,"transaction_id":"2000000291267078","product_id":"pdr_099_3m","original_purchase_date":"2023-02-07T21:53:01Z","expires_date":"2023-03-05T17:08:59Z","original_transaction_id":"2000000269969673"},{"is_in_trial_period":false,"product_id":"pdr_099_3m","product_type":3,"original_purchase_date":"2023-02-07T21:53:01Z","expires_date":"2023-03-05T17:23:59Z","original_transaction_id":"2000000269969673","web_order_line_item_id":2000000022269457,"transaction_id":"2000000291270257","purchase_date":"2023-03-05T17:08:59Z","quantity":1,"is_in_intro_offer_period":false},{"product_type":3,"original_purchase_date":"2023-02-07T21:53:01Z","is_in_trial_period":false,"purchase_date":"2023-03-05T17:23:59Z","product_id":"pdr_099_3m","web_order_line_item_id":2000000022269874,"expires_date":"2023-03-05T17:38:59Z","quantity":1,"original_transaction_id":"2000000269969673","is_in_intro_offer_period":false,"transaction_id":"2000000291271858"},{"product_id":"pdr_099_3m","original_purchase_date":"2023-02-07T21:53:01Z","is_in_trial_period":false,"is_in_intro_offer_period":false,"product_type":3,"quantity":1,"purchase_date":"2023-03-05T17:38:59Z","original_transaction_id":"2000000269969673","transaction_id":"2000000291274301","expires_date":"2023-03-05T17:53:59Z","web_order_line_item_id":2000000022270291},{"product_id":"pdr_099_3m","original_purchase_date":"2023-02-07T21:53:01Z","expires_date":"2023-03-05T18:08:59Z","is_in_trial_period":false,"is_in_intro_offer_period":false,"quantity":1,"web_order_line_item_id":2000000022270677,"original_transaction_id":"2000000269969673","purchase_date":"2023-03-05T17:53:59Z","transaction_id":"2000000291276309","product_type":3},{"quantity":1,"transaction_id":"2000000291278596","product_id":"pdr_099_3m","is_in_intro_offer_period":false,"expires_date":"2023-03-05T18:23:59Z","is_in_trial_period":false,"web_order_line_item_id":2000000022271072,"product_type":3,"original_purchase_date":"2023-02-07T21:53:01Z","original_transaction_id":"2000000269969673","purchase_date":"2023-03-05T18:08:59Z"},{"product_id":"pdr_099_3m","original_purchase_date":"2023-02-07T21:53:01Z","expires_date":"2023-03-05T18:38:59Z","is_in_trial_period":false,"is_in_intro_offer_period":false,"purchase_date":"2023-03-05T18:23:59Z","web_order_line_item_id":2000000022271463,"transaction_id":"2000000291282229","product_type":3,"original_transaction_id":"2000000269969673","quantity":1},{"is_in_trial_period":false,"quantity":1,"original_purchase_date":"2023-02-07T21:53:01Z","product_type":3,"is_in_intro_offer_period":false,"purchase_date":"2023-03-05T23:20:09Z","web_order_line_item_id":2000000022271853,"original_transaction_id":"2000000269969673","transaction_id":"2000000291321767","expires_date":"2023-03-05T23:35:09Z","product_id":"pdr_099_3m"},{"original_transaction_id":"2000000269969673","is_in_trial_period":false,"expires_date":"2023-03-05T23:50:09Z","quantity":1,"product_type":3,"purchase_date":"2023-03-05T23:35:09Z","original_purchase_date":"2023-02-07T21:53:01Z","web_order_line_item_id":2000000022278859,"product_id":"pdr_099_3m","is_in_intro_offer_period":false,"transaction_id":"2000000291324308"},{"product_id":"pdr_099_3m","product_type":3,"transaction_id":"2000000291326214","quantity":1,"is_in_trial_period":false,"is_in_intro_offer_period":false,"original_transaction_id":"2000000269969673","web_order_line_item_id":2000000022279183,"original_purchase_date":"2023-02-07T21:53:01Z","purchase_date":"2023-03-05T23:50:09Z","expires_date":"2023-03-06T00:05:09Z"},{"transaction_id":"2000000291327521","purchase_date":"2023-03-06T00:05:09Z","product_type":3,"original_purchase_date":"2023-02-07T21:53:01Z","expires_date":"2023-03-06T00:20:09Z","is_in_trial_period":false,"web_order_line_item_id":2000000022279538,"is_in_intro_offer_period":false,"product_id":"pdr_099_3m","original_transaction_id":"2000000269969673","quantity":1},{"quantity":1,"product_type":3,"is_in_trial_period":false,"is_in_intro_offer_period":false,"original_transaction_id":"2000000269969673","original_purchase_date":"2023-02-07T21:53:01Z","expires_date":"2023-03-06T00:35:09Z","product_id":"pdr_099_3m","web_order_line_item_id":2000000022279850,"purchase_date":"2023-03-06T00:20:09Z","transaction_id":"2000000291330219"},{"product_id":"pdr_099_3m","original_purchase_date":"2023-02-07T21:53:01Z","original_transaction_id":"2000000269969673","expires_date":"2023-03-06T00:50:09Z","is_in_intro_offer_period":false,"web_order_line_item_id":2000000022280177,"quantity":1,"product_type":3,"is_in_trial_period":false,"transaction_id":"2000000291331982","purchase_date":"2023-03-06T00:35:09Z"},{"original_purchase_date":"2023-02-07T21:53:01Z","expires_date":"2023-03-06T01:05:09Z","quantity":1,"is_in_trial_period":false,"transaction_id":"2000000291335645","is_in_intro_offer_period":false,"original_transaction_id":"2000000269969673","web_order_line_item_id":2000000022280506,"product_id":"pdr_099_3m","purchase_date":"2023-03-06T00:50:09Z","product_type":3},{"expires_date":"2023-03-06T01:20:09Z","purchase_date":"2023-03-06T01:05:09Z","original_purchase_date":"2023-02-07T21:53:01Z","web_order_line_item_id":2000000022280862,"original_transaction_id":"2000000269969673","is_in_trial_period":false,"transaction_id":"2000000291338646","product_type":3,"product_id":"pdr_099_3m","is_in_intro_offer_period":false,"quantity":1},{"expires_date":"2023-03-06T01:35:09Z","is_in_trial_period":false,"is_in_intro_offer_period":false,"web_order_line_item_id":2000000022281216,"purchase_date":"2023-03-06T01:20:09Z","original_purchase_date":"2023-02-07T21:53:01Z","product_type":3,"transaction_id":"2000000291340973","quantity":1,"product_id":"pdr_099_3m","original_transaction_id":"2000000269969673"},{"product_type":3,"purchase_date":"2023-03-06T01:35:09Z","original_transaction_id":"2000000269969673","web_order_line_item_id":2000000022281589,"quantity":1,"product_id":"pdr_099_3m","is_in_intro_offer_period":false,"original_purchase_date":"2023-02-07T21:53:01Z","is_in_trial_period":false,"expires_date":"2023-03-06T01:50:09Z","transaction_id":"2000000291344382"},{"original_transaction_id":"2000000269969673","product_id":"pdr_099_3m","original_purchase_date":"2023-02-07T21:53:01Z","is_in_trial_period":false,"quantity":1,"expires_date":"2023-03-06T02:05:09Z","is_in_intro_offer_period":false,"web_order_line_item_id":2000000022282020,"product_type":3,"purchase_date":"2023-03-06T01:50:09Z","transaction_id":"2000000291348876"},{"purchase_date":"2023-03-06T02:05:09Z","product_type":3,"product_id":"pdr_099_3m","expires_date":"2023-03-06T02:20:09Z","is_in_intro_offer_period":false,"web_order_line_item_id":2000000022282574,"original_transaction_id":"2000000269969673","transaction_id":"2000000291354860","quantity":1,"is_in_trial_period":false,"original_purchase_date":"2023-02-07T21:53:01Z"},{"original_purchase_date":"2023-02-07T21:53:01Z","original_transaction_id":"2000000269969673","expires_date":"2023-03-06T16:05:15Z","is_in_intro_offer_period":false,"product_id":"pdr_099_3m","web_order_line_item_id":2000000022283118,"quantity":1,"is_in_trial_period":false,"purchase_date":"2023-03-06T15:50:15Z","product_type":3,"transaction_id":"2000000291809453"},{"web_order_line_item_id":2000000022340024,"product_type":3,"product_id":"pdr_099_3m","transaction_id":"2000000291815425","is_in_intro_offer_period":false,"expires_date":"2023-03-06T16:20:15Z","quantity":1,"original_transaction_id":"2000000269969673","original_purchase_date":"2023-02-07T21:53:01Z","purchase_date":"2023-03-06T16:05:15Z","is_in_trial_period":false},{"original_purchase_date":"2023-02-07T21:53:01Z","product_type":3,"original_transaction_id":"2000000269969673","product_id":"pdr_099_3m","transaction_id":"2000000291823117","is_in_intro_offer_period":false,"purchase_date":"2023-03-06T16:20:15Z","quantity":1,"is_in_trial_period":false,"expires_date":"2023-03-06T16:35:15Z","web_order_line_item_id":2000000022341014},{"product_id":"pdr_099_3m","quantity":1,"is_in_trial_period":false,"product_type":3,"original_purchase_date":"2023-02-07T21:53:01Z","original_transaction_id":"2000000269969673","web_order_line_item_id":2000000022341913,"is_in_intro_offer_period":false,"purchase_date":"2023-03-06T16:35:15Z","transaction_id":"2000000291829248","expires_date":"2023-03-06T16:50:15Z"},{"original_purchase_date":"2023-02-07T21:53:01Z","web_order_line_item_id":2000000022342866,"product_type":3,"original_transaction_id":"2000000269969673","transaction_id":"2000000291835168","quantity":1,"is_in_intro_offer_period":false,"product_id":"pdr_099_3m","expires_date":"2023-03-06T17:05:15Z","is_in_trial_period":false,"purchase_date":"2023-03-06T16:50:15Z"},{"is_in_intro_offer_period":false,"purchase_date":"2023-03-06T17:05:15Z","product_id":"pdr_099_3m","web_order_line_item_id":2000000022343784,"quantity":1,"expires_date":"2023-03-06T17:20:15Z","original_purchase_date":"2023-02-07T21:53:01Z","product_type":3,"transaction_id":"2000000291841072","original_transaction_id":"2000000269969673","is_in_trial_period":false},{"is_in_intro_offer_period":false,"original_transaction_id":"2000000269969673","product_type":3,"product_id":"pdr_099_3m","original_purchase_date":"2023-02-07T21:53:01Z","purchase_date":"2023-03-06T17:20:15Z","transaction_id":"2000000291845455","is_in_trial_period":false,"web_order_line_item_id":2000000022344795,"quantity":1,"expires_date":"2023-03-06T17:35:15Z"},{"product_type":3,"quantity":1,"purchase_date":"2023-03-06T17:35:15Z","expires_date":"2023-03-06T17:50:15Z","transaction_id":"2000000291852114","is_in_intro_offer_period":false,"original_transaction_id":"2000000269969673","is_in_trial_period":false,"original_purchase_date":"2023-02-07T21:53:01Z","product_id":"pdr_099_3m","web_order_line_item_id":2000000022345754},{"is_in_intro_offer_period":false,"expires_date":"2023-03-06T18:05:15Z","is_in_trial_period":false,"original_purchase_date":"2023-02-07T21:53:01Z","transaction_id":"2000000291856802","purchase_date":"2023-03-06T17:50:15Z","web_order_line_item_id":2000000022346712,"product_id":"pdr_099_3m","original_transaction_id":"2000000269969673","product_type":3,"quantity":1},{"transaction_id":"2000000291861325","original_purchase_date":"2023-02-07T21:53:01Z","is_in_intro_offer_period":false,"product_type":3,"original_transaction_id":"2000000269969673","is_in_trial_period":false,"web_order_line_item_id":2000000022347540,"quantity":1,"purchase_date":"2023-03-06T18:05:15Z","product_id":"pdr_099_3m","expires_date":"2023-03-06T18:20:15Z"},{"quantity":1,"original_transaction_id":"2000000269969673","original_purchase_date":"2023-02-07T21:53:01Z","web_order_line_item_id":2000000022348340,"transaction_id":"2000000291865352","product_id":"pdr_099_3m","expires_date":"2023-03-06T18:35:15Z","is_in_trial_period":false,"product_type":3,"is_in_intro_offer_period":false,"purchase_date":"2023-03-06T18:20:15Z"},{"purchase_date":"2023-03-06T18:35:15Z","expires_date":"2023-03-06T18:50:15Z","original_purchase_date":"2023-02-07T21:53:01Z","original_transaction_id":"2000000269969673","product_type":3,"is_in_trial_period":false,"transaction_id":"2000000291869645","quantity":1,"web_order_line_item_id":2000000022349067,"product_id":"pdr_099_3m","is_in_intro_offer_period":false},{"is_in_intro_offer_period":false,"expires_date":"2023-03-06T20:09:18Z","quantity":1,"product_id":"pdr_099_3m","is_in_trial_period":false,"web_order_line_item_id":2000000022349807,"product_type":3,"original_purchase_date":"2023-02-07T21:53:01Z","transaction_id":"2000000291891750","original_transaction_id":"2000000269969673","purchase_date":"2023-03-06T19:54:18Z"},{"transaction_id":"2000000291895765","product_type":3,"purchase_date":"2023-03-06T20:09:18Z","original_transaction_id":"2000000269969673","quantity":1,"is_in_trial_period":false,"web_order_line_item_id":2000000022353963,"expires_date":"2023-03-06T20:24:18Z","is_in_intro_offer_period":false,"original_purchase_date":"2023-02-07T21:53:01Z","product_id":"pdr_099_3m"},{"web_order_line_item_id":2000000022354729,"transaction_id":"2000000291901701","quantity":1,"product_type":3,"is_in_intro_offer_period":false,"original_purchase_date":"2023-02-07T21:53:01Z","original_transaction_id":"2000000269969673","expires_date":"2023-03-06T20:39:53Z","product_id":"pdr_099_3m","purchase_date":"2023-03-06T20:24:53Z","is_in_trial_period":false},{"transaction_id":"2000000291905974","is_in_trial_period":false,"product_type":3,"is_in_intro_offer_period":false,"web_order_line_item_id":2000000022355525,"original_purchase_date":"2023-02-07T21:53:01Z","purchase_date":"2023-03-06T20:39:54Z","original_transaction_id":"2000000269969673","product_id":"pdr_099_3m","quantity":1,"expires_date":"2023-03-06T20:54:54Z"},{"is_in_intro_offer_period":false,"transaction_id":"2000000291908858","original_transaction_id":"2000000269969673","quantity":1,"product_type":3,"is_in_trial_period":false,"purchase_date":"2023-03-06T20:54:54Z","original_purchase_date":"2023-02-07T21:53:01Z","expires_date":"2023-03-06T21:09:54Z","product_id":"pdr_099_3m","web_order_line_item_id":2000000022356261},{"purchase_date":"2023-03-06T21:09:54Z","product_id":"pdr_099_3m","is_in_trial_period":false,"quantity":1,"web_order_line_item_id":2000000022356972,"original_purchase_date":"2023-02-07T21:53:01Z","is_in_intro_offer_period":false,"original_transaction_id":"2000000269969673","product_type":3,"expires_date":"2023-03-06T21:24:54Z","transaction_id":"2000000291911795"},{"is_in_trial_period":false,"is_in_intro_offer_period":false,"purchase_date":"2023-03-06T21:24:54Z","product_id":"pdr_099_3m","web_order_line_item_id":2000000022357623,"original_purchase_date":"2023-02-07T21:53:01Z","expires_date":"2023-03-06T21:39:54Z","quantity":1,"original_transaction_id":"2000000269969673","transaction_id":"2000000291915094","product_type":3},{"expires_date":"2023-03-06T21:54:54Z","is_in_intro_offer_period":false,"product_type":3,"purchase_date":"2023-03-06T21:39:54Z","product_id":"pdr_099_3m","original_transaction_id":"2000000269969673","web_order_line_item_id":2000000022358295,"transaction_id":"2000000291919281","original_purchase_date":"2023-02-07T21:53:01Z","is_in_trial_period":false,"quantity":1},{"product_type":3,"product_id":"pdr_099_3m","original_purchase_date":"2023-02-07T21:53:01Z","is_in_intro_offer_period":false,"purchase_date":"2023-03-06T21:54:54Z","transaction_id":"2000000291922870","original_transaction_id":"2000000269969673","quantity":1,"expires_date":"2023-03-06T22:09:54Z","web_order_line_item_id":2000000022358999,"is_in_trial_period":false},{"is_in_trial_period":false,"transaction_id":"2000000291927950","original_transaction_id":"2000000269969673","quantity":1,"product_id":"pdr_099_3m","product_type":3,"original_purchase_date":"2023-02-07T21:53:01Z","is_in_intro_offer_period":false,"web_order_line_item_id":2000000022359736,"purchase_date":"2023-03-06T22:09:54Z","expires_date":"2023-03-06T22:24:54Z"},{"original_transaction_id":"2000000269969673","web_order_line_item_id":2000000022360458,"purchase_date":"2023-03-06T22:24:54Z","quantity":1,"expires_date":"2023-03-06T22:39:54Z","is_in_trial_period":false,"is_in_intro_offer_period":false,"product_type":3,"original_purchase_date":"2023-02-07T21:53:01Z","product_id":"pdr_099_3m","transaction_id":"2000000291931595"},{"is_in_trial_period":false,"web_order_line_item_id":2000000022361114,"transaction_id":"2000000291937727","is_in_intro_offer_period":false,"purchase_date":"2023-03-06T22:39:54Z","original_transaction_id":"2000000269969673","product_type":3,"original_purchase_date":"2023-02-07T21:53:01Z","quantity":1,"product_id":"pdr_099_3m","expires_date":"2023-03-06T22:54:54Z"},{"is_in_intro_offer_period":false,"product_type":3,"is_in_trial_period":false,"expires_date":"2023-03-07T00:39:18Z","purchase_date":"2023-03-07T00:24:18Z","quantity":1,"original_purchase_date":"2023-02-07T21:53:01Z","original_transaction_id":"2000000269969673","web_order_line_item_id":2000000022361762,"transaction_id":"2000000291961156","product_id":"pdr_099_3m"},{"purchase_date":"2023-03-07T00:39:18Z","quantity":1,"product_type":3,"expires_date":"2023-03-07T00:54:18Z","is_in_intro_offer_period":false,"web_order_line_item_id":2000000022365805,"transaction_id":"2000000291965535","product_id":"pdr_099_3m","original_transaction_id":"2000000269969673","is_in_trial_period":false,"original_purchase_date":"2023-02-07T21:53:01Z"},{"product_id":"pdr_099_3m","purchase_date":"2023-03-07T00:54:18Z","quantity":1,"original_purchase_date":"2023-02-07T21:53:01Z","expires_date":"2023-03-07T01:09:18Z","web_order_line_item_id":2000000022366348,"transaction_id":"2000000291971243","product_type":3,"is_in_trial_period":false,"original_transaction_id":"2000000269969673","is_in_intro_offer_period":false},{"original_purchase_date":"2023-02-07T21:53:01Z","expires_date":"2023-03-07T01:24:18Z","is_in_trial_period":false,"product_id":"pdr_099_3m","web_order_line_item_id":2000000022366943,"is_in_intro_offer_period":false,"transaction_id":"2000000291974472","product_type":3,"quantity":1,"purchase_date":"2023-03-07T01:09:18Z","original_transaction_id":"2000000269969673"},{"original_transaction_id":"2000000269969673","original_purchase_date":"2023-02-07T21:53:01Z","quantity":1,"product_id":"pdr_099_3m","expires_date":"2023-03-07T01:39:18Z","purchase_date":"2023-03-07T01:24:18Z","is_in_intro_offer_period":false,"is_in_trial_period":false,"transaction_id":"2000000291977737","web_order_line_item_id":2000000022367531,"product_type":3},{"product_type":3,"product_id":"pdr_099_3m","original_transaction_id":"2000000269969673","expires_date":"2023-03-07T01:54:18Z","quantity":1,"purchase_date":"2023-03-07T01:39:18Z","transaction_id":"2000000291982605","web_order_line_item_id":2000000022368114,"original_purchase_date":"2023-02-07T21:53:01Z","is_in_intro_offer_period":false,"is_in_trial_period":false},{"product_id":"pdr_099_3m","original_purchase_date":"2023-02-07T21:53:01Z","web_order_line_item_id":2000000022368741,"purchase_date":"2023-03-07T01:54:18Z","transaction_id":"2000000291988708","is_in_trial_period":false,"original_transaction_id":"2000000269969673","expires_date":"2023-03-07T02:09:18Z","quantity":1,"product_type":3,"is_in_intro_offer_period":false},{"original_purchase_date":"2023-02-07T21:53:01Z","original_transaction_id":"2000000269969673","expires_date":"2023-03-07T02:24:18Z","transaction_id":"2000000291995352","is_in_intro_offer_period":false,"product_id":"pdr_099_3m","purchase_date":"2023-03-07T02:09:18Z","is_in_trial_period":false,"web_order_line_item_id":2000000022369421,"quantity":1,"product_type":3},{"product_id":"pdr_099_3m","original_purchase_date":"2023-02-07T21:53:01Z","quantity":1,"product_type":3,"is_in_intro_offer_period":false,"web_order_line_item_id":2000000022370117,"transaction_id":"2000000292001644","original_transaction_id":"2000000269969673","purchase_date":"2023-03-07T02:24:18Z","expires_date":"2023-03-07T02:39:18Z","is_in_trial_period":false},{"web_order_line_item_id":2000000022370773,"quantity":1,"product_type":3,"product_id":"pdr_099_3m","expires_date":"2023-03-07T02:54:18Z","is_in_trial_period":false,"is_in_intro_offer_period":false,"transaction_id":"2000000292006971","purchase_date":"2023-03-07T02:39:18Z","original_transaction_id":"2000000269969673","original_purchase_date":"2023-02-07T21:53:01Z"},{"purchase_date":"2023-03-07T02:54:18Z","expires_date":"2023-03-07T03:09:18Z","product_id":"pdr_099_3m","is_in_trial_period":false,"original_transaction_id":"2000000269969673","quantity":1,"transaction_id":"2000000292011542","is_in_intro_offer_period":false,"original_purchase_date":"2023-02-07T21:53:01Z","web_order_line_item_id":2000000022371512,"product_type":3},{"quantity":1,"product_id":"pdr_099_3m","expires_date":"2023-03-07T03:25:11Z","is_in_trial_period":false,"original_purchase_date":"2023-02-07T21:53:01Z","transaction_id":"2000000292016734","is_in_intro_offer_period":false,"web_order_line_item_id":2000000022372287,"purchase_date":"2023-03-07T03:10:11Z","product_type":3,"original_transaction_id":"2000000269969673"},{"transaction_id":"2000000292424613","web_order_line_item_id":2000000022373186,"original_purchase_date":"2023-02-07T21:53:01Z","is_in_intro_offer_period":false,"is_in_trial_period":false,"expires_date":"2023-03-07T13:57:56Z","original_transaction_id":"2000000269969673","purchase_date":"2023-03-07T13:42:56Z","quantity":1,"product_type":3,"product_id":"pdr_099_3m"},{"original_transaction_id":"2000000269969673","quantity":1,"product_id":"pdr_099_3m","original_purchase_date":"2023-02-07T21:53:01Z","expires_date":"2023-03-07T14:12:56Z","product_type":3,"purchase_date":"2023-03-07T13:57:56Z","is_in_trial_period":false,"is_in_intro_offer_period":false,"web_order_line_item_id":2000000022421361,"transaction_id":"2000000292434492"},{"transaction_id":"2000000292443773","web_order_line_item_id":2000000022422606,"is_in_trial_period":false,"product_type":3,"original_transaction_id":"2000000269969673","purchase_date":"2023-03-07T14:12:56Z","original_purchase_date":"2023-02-07T21:53:01Z","expires_date":"2023-03-07T14:27:56Z","is_in_intro_offer_period":false,"product_id":"pdr_099_3m","quantity":1},{"original_purchase_date":"2023-02-07T21:53:01Z","web_order_line_item_id":2000000022423810,"purchase_date":"2023-03-07T14:27:56Z","transaction_id":"2000000292451327","product_type":3,"expires_date":"2023-03-07T14:42:56Z","is_in_trial_period":false,"is_in_intro_offer_period":false,"original_transaction_id":"2000000269969673","quantity":1,"product_id":"pdr_099_3m"},{"original_transaction_id":"2000000269969673","original_purchase_date":"2023-02-07T21:53:01Z","product_id":"pdr_099_3m","is_in_trial_period":false,"web_order_line_item_id":2000000022424922,"quantity":1,"transaction_id":"2000000<…>

DEBUG: ℹ️ There are no requests currently running, starting request POST /v1/receipts

DEBUG: ℹ️ API request started: POST '/v1/receipts'

DEBUG: ℹ️ API request completed: POST '/v1/receipts' (200)

DEBUG: ℹ️ PostReceiptDataOperation: Finished

DEBUG: ℹ️ Serial request done: POST /v1/receipts, 0 requests left in the queue

DEBUG: Restored purchases successfully with unlocked subscriptions


7 replies

Userlevel 2
Badge +4

This is purchasing via device and not the simulator.

Badge +1

facing same issue =((

Userlevel 3
Badge +5

Hi! Thank you for raising this issue. Would you mind sharing your code snippet where you call the PaywallView, so I can work on recreating the issue and investigating further on my end? If you would prefer not to share your code publicly, you can also open an individual support ticket. 

Userlevel 2
Badge +4

Hi! Thank you for raising this issue. Would you mind sharing your code snippet where you call the PaywallView, so I can work on recreating the issue and investigating further on my end? If you would prefer not to share your code publicly, you can also open an individual support ticket. 

Sure! I’ve got it commented out right now with my old paywall active but you’ll get the idea.  This is just me playing around to see if the functionality works, so please ignore the rough code and silly names. 😃

 

        .sheet(item: $weatherData.sheetLogic) { theItem in
switch theItem {
case SheetType.upgradeEnticement:
// PaywallView(displayCloseButton: true)
// .onPurchaseCompleted({ stuff in
// successfulUnlock()
// })
// .onRestoreCompleted( { stuff in
// successfulUnlock()
//
// // do i need a dismiss here???
// // doesn't seem to work
// //dismiss()
// })

// old first part of paywall
Enticement()

 

About weatherData:

 

@MainActor
final class WeatherData: ObservableObject {
@Published var sheetLogic : SheetType? = nil
}

@EnvironmentObject var weatherData: WeatherData

 

Then if the user hits the upgrade button:

 

                    if nil == weatherData.sheetLogic {
weatherData.sheetLogic = .upgradeEnticement
}

 

Userlevel 2
Badge +4

I don’t know if it’s related, but what Marco is describing here sounds like it could be similar to the behavior that I was seeing with the restore button:

https://mastodon.social/@marcoarment/112459857539967547

Userlevel 3
Badge +5

Hi Chris! I apologize for the delay. If you are just using PaywallView, you will need to dismiss the paywall yourself if the user has the necessary entitlement after their purchases have been restored in .onRestoreCompleted. If you use presentPaywallIfNeeded, that behavior will happen automatically. Let me know if there is anything else that we can assist with.

Userlevel 2
Badge +4

Hi Chris! I apologize for the delay. If you are just using PaywallView, you will need to dismiss the paywall yourself if the user has the necessary entitlement after their purchases have been restored in .onRestoreCompleted. If you use presentPaywallIfNeeded, that behavior will happen automatically. Let me know if there is anything else that we can assist with.

 

Hi Wes.  Thanks for responding and no worries about the delay. I tried to add more detail recently but the thread was closed for comments!

It still seems less than ideal that the user is shown “Purchases restored successfully!” in a popup after clicking the ‘restore purchases’ button when there is nothing to restore. I’m worried it would cause confusion with my users.

What I’ve decided to do (for now) is just turn off the restore purchases button in the RC generated paywall and add my own restore purchases button that uses logic from my old paywall in another part of my UI.  That calls Purchases.shared.restorePurchases and will display an error when there is nothing to restore as well as performing a restore if there actually is a subscription to restore.

Reply