Question

IOS : Cannot upgrade/crossgrade with Sandbox


Badge
  • New Member
  • 4 replies

Hi,

testing upgrading/crossgrading with no success.

 

 

RevenueCat (4.2.1)

Using Sandbox

Number of entilements: 3 (3 service levels)

Offerings: 1

Products: 9 (3 for each entilements: 1 month/6 months/12 months)

Subscription is ok

 

From https://docs.revenuecat.com/docs/managing-subscriptions#upgrade-or-downgrade-a-subscription my understanding is that for iOS I do not have to do anything specific for upgrading/crossgrading 

 

Tried with a fresh SANDBOX account, same issue.

 

Buying product (QQQ blue 1 month) from entilement BLUE is ok

 

2022-05-02 17:43:12.263427+0200 QQQ[96970:3093860] PurchasesBaseViewController | purchaseBasePurchaseButtonAction | sandbox | package selected is QQQPackageSandbox_BLUE_1month
2022-05-02 17:43:12.264164+0200 QQQ[96970:3093860] [Purchases] - DEBUG: ℹ️ Make purchase called: purchase(sk1Product:payment:package:completion:)
2022-05-02 17:43:12.265520+0200 QQQ[96970:3093860] [Purchases] - DEBUG: 💰 Purchasing product from package  - QQQSandbox_BLUE_1month in Offering QQQSandboxSubscriptionGroup1
2022-05-02 17:43:12.267666+0200 QQQ[96970:3093860] [Purchases] - DEBUG: ℹ️ PaymentQueue updatedTransaction: QQQSandbox_BLUE_1month  ()  - 0
2022-05-02 17:43:55.179084+0200 QQQ[96970:3093860] [Purchases] - DEBUG: ℹ️ applicationDidBecomeActive
2022-05-02 17:44:02.963070+0200 QQQ[96970:3093860] [Purchases] - DEBUG: ℹ️ applicationDidBecomeActive
2022-05-02 17:44:05.005295+0200 QQQ[96970:3093860] [Purchases] - DEBUG: ℹ️ PaymentQueue updatedTransaction: QQQSandbox_BLUE_1month 2000000045498111 () 2000000040576559 - 1
2022-05-02 17:44:05.005603+0200 QQQ[96970:3093860] [Purchases] - DEBUG: ℹ️ Loaded receipt from url file:///private/var/mobile/Containers/Data/Application/845AE003-50BD-4975-99FA-F6E4E63E43FD/StoreKit/sandboxReceipt
2022-05-02 17:44:05.005911+0200 QQQ[96970:3094018] [Purchases] - DEBUG: ℹ️ Skipping products request because products were already cached. products: ["QQQSandbox_BLUE_1month"]
2022-05-02 17:44:05.011342+0200 QQQ[96970:3093860] [Purchases] - DEBUG: ℹ️ Found 0 unsynced attributes for App User ID: ei9fwsfxXUZkMpsyUDrBH1j6jOe2
2022-05-02 17:44:05.024733+0200 QQQ[96970:3094018] [Purchases] - DEBUG: ℹ️ PostReceiptDataOperation: Started
2022-05-02 17:44:05.024828+0200 QQQ[96970:3094018] [Purchases] - DEBUG: ℹ️ There are no requests currently running, starting request POST receipts
2022-05-02 17:44:05.030598+0200 QQQ[96970:3094018] [Purchases] - DEBUG: ℹ️ API request started: POST /v1/receipts
2022-05-02 17:44:09.310865+0200 QQQ[96970:3094005] [Purchases] - DEBUG: ℹ️ API request completed: POST /v1/receipts 200
2022-05-02 17:44:09.338491+0200 QQQ[96970:3094005] [Purchases] - DEBUG: ℹ️ PostReceiptDataOperation: Finished
2022-05-02 17:44:09.338985+0200 QQQ[96970:3094005] [Purchases] - DEBUG: ℹ️ Serial request done: POST receipts, 0 requests left in the queue
2022-05-02 17:44:09.342261+0200 QQQ[96970:3093860] [Purchases] - DEBUG: ℹ️ Sending updated CustomerInfo to delegate.
2022-05-02 17:44:09.348140+0200 QQQ[96970:3093860] [Purchases] - DEBUG: ℹ️ Vending CustomerInfo from cache.
2022-05-02 17:44:09.349553+0200 QQQ[96970:3093860] NetworkClient | updateActiveTier | purchases user active subscription: QQQSandbox_BLUE_1month has purchase date: Optional(2022-04-25 16:09:21 +0000)
2022-05-02 17:44:09.349707+0200 QQQ[96970:3093860] NetworkClient | updateActiveTier | purchases user active subscription: QQQSandbox_BLUE_1month has expiration date: Optional(2022-05-02 15:48:56 +0000)
2022-05-02 17:44:09.350864+0200 QQQ[96970:3093860] NetworkClient | updateActiveTier | purchases user active subscription: QQQSandbox_BLUE_1month has period type: PeriodType(rawValue: 0)
2022-05-02 17:44:09.350961+0200 QQQ[96970:3093860] NetworkClient | updateActiveTier | purchases user active subscription: QQQSandbox_BLUE_1month has purchaseLatestPurchaseDate: Optional(2022-05-02 15:43:56 +0000)
2022-05-02 17:44:09.351031+0200 QQQ[96970:3093860] NetworkClient | updateActiveTier | purchases user active subscription: QQQSandbox_BLUE_1month has purchaseUnsubscribeDetectedAt: nil
2022-05-02 17:44:09.351095+0200 QQQ[96970:3093860] NetworkClient | updateActiveTier | purchases user active subscription: QQQSandbox_BLUE_1month has purchaseBillingIssueDetectedAt: nil
2022-05-02 17:44:09.351158+0200 QQQ[96970:3093860] NetworkClient | updateActiveTier | purchases user active subscription: QQQSandbox_BLUE_1month has purchaseWillRenew: true
2022-05-02 17:44:09.351298+0200 QQQ[96970:3093860] NetworkClient | updateActiveTier | purchases user active subscription: QQQSandbox_BLUE_1month has raw data: ["grace_period_expires_date": <null>, "expires_date": 2022-05-02T15:48:56Z, "purchase_date": 2022-05-02T15:43:56Z, "product_identifier": QQQSandbox_BLUE_1month]
2022-05-02 17:44:09.351525+0200 QQQ[96970:3093860] NetworkClient | updateActiveTier | purchases tier 1 activated
2022-05-02 17:44:09.355461+0200 QQQ[96970:3093860] PurchasesBaseViewController | purchaseBasePurchaseButtonAction | sandbox | purchases updated active tier to 1 and package selected is QQQPackageSandbox_BLUE_1month
2022-05-02 17:44:09.365143+0200 QQQ[96970:3093860] PurchasesBaseViewController | purchaseBasePurchaseButtonAction | sandbox | purchases user has now subscriptions active: ["QQQSandbox_BLUE_1month"]
2022-05-02 17:44:09.365271+0200 QQQ[96970:3093860] [Purchases] - DEBUG: 💰 Finishing transaction QQQSandbox_BLUE_1month 2000000045498111 (2000000040576559)
2022-05-02 17:44:10.042230+0200 QQQ[96970:3093860] [Purchases] - DEBUG: ℹ️ PaymentQueue removedTransaction: QQQSandbox_BLUE_1month 2000000045498111 (2000000040576559   - 1
 

 

 

Upgrading to (QQQ black 1 month) from entilement BLACK is KO

 

2022-05-02 17:45:01.885476+0200 QQQ[97000:3095691] [Purchases] - WARN: ⚠️ Unknown subscription length for package 'QQQSandboxSubscriptionGroup1': PackageType(rawValue: -1). Ignoring.
2022-05-02 17:45:01.885721+0200 QQQ[97000:3095691] [Purchases] - WARN: ⚠️ Unknown subscription length for package 'QQQSandboxSubscriptionGroup1': PackageType(rawValue: -1). Ignoring.
2022-05-02 17:45:01.885839+0200 QQQ[97000:3095691] [Purchases] - WARN: ⚠️ Unknown subscription length for package 'QQQSandboxSubscriptionGroup1': PackageType(rawValue: -1). Ignoring.
2022-05-02 17:45:02.056876+0200 QQQ[97000:3095692] [Purchases] - DEBUG: ℹ️ API request completed: GET /v1/subscribers/ei9fwsfxXUZkMpsyUDrBH1j6jOe2 200
2022-05-02 17:45:02.073046+0200 QQQ[97000:3095692] [Purchases] - DEBUG: ℹ️ Sending updated CustomerInfo to delegate.
2022-05-02 17:45:02.073425+0200 QQQ[97000:3095692] [Purchases] - DEBUG: 😻 CustomerInfo updated from network.
2022-05-02 17:45:02.073683+0200 QQQ[97000:3095692] [Purchases] - DEBUG: ℹ️ GetCustomerInfoOperation: Finished
2022-05-02 17:45:02.073977+0200 QQQ[97000:3095692] [Purchases] - DEBUG: ℹ️ Serial request done: GET subscribers/ei9fwsfxXUZkMpsyUDrBH1j6jOe2, 0 requests left in the queue
2022-05-02 17:45:22.060461+0200 QQQ[97000:3095454] PurchasesBaseViewController | purchaseBasePurchaseButtonAction | >>>ENTERED<<<
2022-05-02 17:45:22.060919+0200 QQQ[97000:3095454] PurchasesBaseViewController | purchaseBasePurchaseButtonAction | tier shown is: 2
2022-05-02 17:45:22.061219+0200 QQQ[97000:3095454] PurchasesBaseViewController | purchaseBasePurchaseButtonAction | 1 months isSelected: true
2022-05-02 17:45:22.061525+0200 QQQ[97000:3095454] PurchasesBaseViewController | purchaseBasePurchaseButtonAction | 6 months isSelected: false
2022-05-02 17:45:22.061804+0200 QQQ[97000:3095454] PurchasesBaseViewController | purchaseBasePurchaseButtonAction | 12 months isSelected: false
2022-05-02 17:45:22.116575+0200 QQQ[97000:3095454] PurchasesBaseViewController | purchaseBasePurchaseButtonAction | sandbox | package selected is QQQPackageSandbox_BLACK_1month
2022-05-02 17:45:22.117027+0200 QQQ[97000:3095454] [Purchases] - DEBUG: ℹ️ Make purchase called: purchase(sk1Product:payment:package:completion:)
2022-05-02 17:45:22.118095+0200 QQQ[97000:3095454] [Purchases] - DEBUG: 💰 Purchasing product from package  - QQQSandbox_BLACK_1month in Offering QQQSandboxSubscriptionGroup1
2022-05-02 17:45:22.120271+0200 QQQ[97000:3095454] [Purchases] - DEBUG: ℹ️ PaymentQueue updatedTransaction: QQQSandbox_BLACK_1month  ()  - 0
    "_sc" = PurchasesBaseViewController;
2022-05-02 17:45:56.163552+0200 QQQ[97000:3095454] [Purchases] - DEBUG: ℹ️ applicationDidBecomeActive
2022-05-02 17:46:01.719299+0200 QQQ[97000:3095454] [Purchases] - DEBUG: ℹ️ applicationDidBecomeActive
2022-05-02 17:46:03.675070+0200 QQQ[97000:3095454] [Purchases] - DEBUG: ℹ️ PaymentQueue updatedTransaction: QQQSandbox_BLACK_1month 2000000045498111 () 2000000040576559 - 1
2022-05-02 17:46:03.675408+0200 QQQ[97000:3095454] [Purchases] - DEBUG: ℹ️ Loaded receipt from url file:///private/var/mobile/Containers/Data/Application/52E6403E-2582-488A-99F6-C12F18EB8A4A/StoreKit/sandboxReceipt
2022-05-02 17:46:03.675691+0200 QQQ[97000:3095594] [Purchases] - DEBUG: ℹ️ Skipping products request because products were already cached. products: ["QQQSandbox_BLACK_1month"]
2022-05-02 17:46:03.676569+0200 QQQ[97000:3095454] [Purchases] - DEBUG: ℹ️ Found 0 unsynced attributes for App User ID: ei9fwsfxXUZkMpsyUDrBH1j6jOe2
2022-05-02 17:46:03.676827+0200 QQQ[97000:3096307] 6.30.0 - [Firebase/Analytics][I-ACS023141] Purchase is a duplicate and will not be reported. Product ID: QQQSandbox_BLACK_1month
2022-05-02 17:46:03.693359+0200 QQQ[97000:3096307] [Purchases] - DEBUG: ℹ️ PostReceiptDataOperation: Started
2022-05-02 17:46:03.693552+0200 QQQ[97000:3096307] [Purchases] - DEBUG: ℹ️ There are no requests currently running, starting request POST receipts
2022-05-02 17:46:03.700962+0200 QQQ[97000:3096307] [Purchases] - DEBUG: ℹ️ API request started: POST /v1/receipts
2022-05-02 17:46:05.730795+0200 QQQ[97000:3096307] [Purchases] - DEBUG: ℹ️ API request completed: POST /v1/receipts 200
2022-05-02 17:46:05.751467+0200 QQQ[97000:3096307] [Purchases] - DEBUG: ℹ️ PostReceiptDataOperation: Finished
2022-05-02 17:46:05.751651+0200 QQQ[97000:3096307] [Purchases] - DEBUG: ℹ️ Serial request done: POST receipts, 0 requests left in the queue
2022-05-02 17:46:05.753179+0200 QQQ[97000:3095454] [Purchases] - DEBUG: ℹ️ Sending updated CustomerInfo to delegate.
2022-05-02 17:46:05.756855+0200 QQQ[97000:3095454] [Purchases] - DEBUG: ℹ️ Vending CustomerInfo from cache.
2022-05-02 17:46:05.758144+0200 QQQ[97000:3095454] NetworkClient | updateActiveTier | purchases user active subscription: QQQSandbox_BLUE_1month has purchase date: Optional(2022-04-25 16:09:21 +0000)
2022-05-02 17:46:05.758252+0200 QQQ[97000:3095454] NetworkClient | updateActiveTier | purchases user active subscription: QQQSandbox_BLUE_1month has expiration date: Optional(2022-05-02 15:48:56 +0000)
2022-05-02 17:46:05.759937+0200 QQQ[97000:3095454] NetworkClient | updateActiveTier | purchases user active subscription: QQQSandbox_BLUE_1month has period type: PeriodType(rawValue: 0)
2022-05-02 17:46:05.760037+0200 QQQ[97000:3095454] NetworkClient | updateActiveTier | purchases user active subscription: QQQSandbox_BLUE_1month has purchaseLatestPurchaseDate: Optional(2022-05-02 15:43:56 +0000)
2022-05-02 17:46:05.760108+0200 QQQ[97000:3095454] NetworkClient | updateActiveTier | purchases user active subscription: QQQSandbox_BLUE_1month has purchaseUnsubscribeDetectedAt: nil
2022-05-02 17:46:05.760179+0200 QQQ[97000:3095454] NetworkClient | updateActiveTier | purchases user active subscription: QQQSandbox_BLUE_1month has purchaseBillingIssueDetectedAt: nil
2022-05-02 17:46:05.760245+0200 QQQ[97000:3095454] NetworkClient | updateActiveTier | purchases user active subscription: QQQSandbox_BLUE_1month has purchaseWillRenew: true
2022-05-02 17:46:05.760367+0200 QQQ[97000:3095454] NetworkClient | updateActiveTier | purchases user active subscription: QQQSandbox_BLUE_1month has raw data: ["grace_period_expires_date": <null>, "product_identifier": QQQSandbox_BLUE_1month, "purchase_date": 2022-05-02T15:43:56Z, "expires_date": 2022-05-02T15:48:56Z]
2022-05-02 17:46:05.760427+0200 QQQ[97000:3095454] NetworkClient | updateActiveTier | purchases tier 1 activated
2022-05-02 17:46:05.764596+0200 QQQ[97000:3095454] PurchasesBaseViewController | purchaseBasePurchaseButtonAction | sandbox | purchases updated active tier to 1 and package selected is QQQPackageSandbox_BLACK_1month
2022-05-02 17:46:05.770496+0200 QQQ[97000:3095454] PurchasesBaseViewController | purchaseBasePurchaseButtonAction | sandbox | purchases user has now subscriptions active: ["QQQSandbox_BLUE_1month"]
2022-05-02 17:46:05.770590+0200 QQQ[97000:3095454] [Purchases] - DEBUG: 💰 Finishing transaction QQQSandbox_BLACK_1month 2000000045498111 (2000000040576559)
2022-05-02 17:46:05.779953+0200 QQQ[97000:3095454] [Purchases] - DEBUG: ℹ️ PaymentQueue removedTransaction: QQQSandbox_BLACK_1month 2000000045498111 (2000000040576559   - 1

 

 

Questions

 

  • Is upgrading/crossgrading supposed to work in sandbox environment?
  • If so I need an help in fixing this and move further please

0 replies

Be the first to reply!

Reply