Skip to content

The completion block is not working when downgrade plan #3020

Description

@Abbott-Deng

Describe the bug
A clear and concise description of what the bug is. The more detail you can provide the faster our team will be able to triage and resolve the issue. Do not remove any of the steps from the template below. If a step is not applicable to your issue, please leave that step empty.

  1. Environment
    1. Platform: iOS
    2. SDK version:4.25.3
    3. OS version:iOS 17
  2. Steps to reproduce, I purchase / upgrade plan is working fine, But It's reproduced when I try to downgrade my plan.

Additional context

2023-08-15 10:40:29.153671+0800 Hobnob-Staging[1667:246401] [purchases] INFO: 💰 Purchasing Product 'staging_sub_premium_2_yearly'
2023-08-15 10:40:29.153911+0800 Hobnob-Staging[1667:246401] [purchases] DEBUG: ℹ️ Adding payment for product 'staging_sub_premium_2_yearly'. 0 transactions already in the queue.
2023-08-15 10:40:29.156959+0800 Hobnob-Staging[1667:247367] [purchases] DEBUG: ℹ️ StoreKit1Wrapper (0x00000002813a89c0) updatedTransaction: staging_sub_premium_2_yearly 0
2023-08-15 10:40:29.165165+0800 Hobnob-Staging[1667:247367] [purchases] VERBOSE: The SKPaymentTransaction has a nil value for transaction date - this is a bug in StoreKit.
2023-08-15 10:40:29.165220+0800 Hobnob-Staging[1667:247367] [purchases] VERBOSE: The SKPaymentTransaction has a nil value for transaction identifier - this is a bug in StoreKit.
2023-08-15 10:40:56.451599+0800 Hobnob-Staging[1667:247796] [purchases] DEBUG: ℹ️ StoreKit1Wrapper (0x00000002813a89c0) updatedTransaction: staging_sub_premium_2_yearly 2000000390174047 2000000390162515 1
2023-08-15 10:40:56.464335+0800 Hobnob-Staging[1667:247796] [purchases] DEBUG: ℹ️ TransactionPoster: handling transaction for product 'staging_sub_premium_2_yearly'
2023-08-15 10:40:58.494275+0800 Hobnob-Staging[1667:246401] [purchases] INFO: 💰 Finishing transaction '2000000390174047' for product 'staging_sub_premium_2_yearly'
2023-08-15 10:40:59.494227+0800 Hobnob-Staging[1667:247800] [purchases] DEBUG: ℹ️ StoreKit1Wrapper (0x00000002813a89c0) removedTransaction: staging_sub_premium_2_yearly 2000000390174047 2000000390162515 1
2023-08-15 10:40:59.502499+0800 Hobnob-Staging[1667:246401] [purchases] INFO: 😻💰 Purchased product - 'staging_sub_premium_2_yearly'
2023-08-15 10:41:07.178494+0800 Hobnob-Staging[1667:247800] [purchases] DEBUG: ℹ️ StoreKit.Transaction.updates: received transaction for product 'staging_sub_premium_2_yearly'
2023-08-15 10:41:07.178770+0800 Hobnob-Staging[1667:247800] [purchases] DEBUG: ℹ️ TransactionPoster: handling transaction for product 'staging_sub_premium_2_yearly'
2023-08-15 10:41:08.140567+0800 Hobnob-Staging[1667:246401] [purchases] INFO: 💰 Finishing transaction '2000000390174047' for product 'staging_sub_premium_2_yearly'
2023-08-15 10:43:54.146842+0800 Hobnob-Staging[1667:246401] [purchases] INFO: 💰 Purchasing Product 'staging_sub_new_essentials_1_month'
2023-08-15 10:43:54.146997+0800 Hobnob-Staging[1667:246401] [purchases] DEBUG: ℹ️ Adding payment for product 'staging_sub_new_essentials_1_month'. 0 transactions already in the queue.
2023-08-15 10:43:54.150384+0800 Hobnob-Staging[1667:248745] [purchases] DEBUG: ℹ️ StoreKit1Wrapper (0x00000002813a89c0) updatedTransaction: staging_sub_new_essentials_1_month 0
2023-08-15 10:43:54.150488+0800 Hobnob-Staging[1667:248745] [purchases] VERBOSE: The SKPaymentTransaction has a nil value for transaction date - this is a bug in StoreKit.
2023-08-15 10:43:54.150517+0800 Hobnob-Staging[1667:248745] [purchases] VERBOSE: The SKPaymentTransaction has a nil value for transaction identifier - this is a bug in StoreKit.
2023-08-15 10:44:17.738108+0800 Hobnob-Staging[1667:249090] [purchases] DEBUG: ℹ️ StoreKit1Wrapper (0x00000002813a89c0) updatedTransaction: staging_sub_new_essentials_1_month 2000000390174047 2000000390162515 1
2023-08-15 10:44:17.755479+0800 Hobnob-Staging[1667:249090] [purchases] DEBUG: ℹ️ TransactionPoster: handling transaction for product 'staging_sub_new_essentials_1_month'
2023-08-15 10:44:19.659670+0800 Hobnob-Staging[1667:246401] [purchases] INFO: 💰 Finishing transaction '2000000390174047' for product 'staging_sub_new_essentials_1_month'
2023-08-15 10:44:19.673546+0800 Hobnob-Staging[1667:249092] [purchases] DEBUG: ℹ️ StoreKit1Wrapper (0x00000002813a89c0) removedTransaction: staging_sub_new_essentials_1_month 2000000390174047 2000000390162515 1
2023-08-15 10:44:19.677143+0800 Hobnob-Staging[1667:246401] [purchases] VERBOSE: PurchasesOrchestrator (0x00000001083f17f0): will not notify callback for transaction '2000000390174047'. Transaction date '2023-08-15 2:40:52 AM +0000' - callback date

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions