Skip to main content

Hello,

 

I am testing my purchases with a test user and when I do my very first purchase I get presented with two purchase sheet from apple. After I enter the password to confirm the purchase on the first one, a second purchase sheet is shown after. Then I re enter the password a second time an I am able to do the purchase. This happens only on the very first purchase, the following purchases do not show this behaviour.

 

Here’s my traces:

2021-11-30 08:47:05.098181+0100 StickerTuneT569:24807] 0Purchases] - DEBUG: ℹ️ makePurchase
2021-11-30 08:47:05.100231+0100 StickerTunec569:24807] :Purchases] - DEBUG: 💰 Purchasing product from package - st_499_1m in Offering st_monthly_yearly
2021-11-30 08:47:05.110488+0100 StickerTuneS569:24807] 5Purchases] - DEBUG: ℹ️ PaymentQueue updatedTransaction: st_499_1m (null) ((null)) (null) - 0
2021-11-30 08:47:21.310017+0100 StickerTune1569:24807] uPurchases] - DEBUG: ℹ️ applicationDidBecomeActive
2021-11-30 08:47:22.494746+0100 StickerTune4569:25165] ktcp] tcp_output ]C1.1:3] flags=pR.] seq=359701540, ack=2894476465, win=2047 state=CLOSED rcv_nxt=2894476465, snd_una=359701463
2021-11-30 08:47:38.795250+0100 StickerTune5569:24807] kPurchases] - DEBUG: ℹ️ applicationDidBecomeActive
2021-11-30 08:47:43.676144+0100 StickerTune6569:24807] SPurchases] - DEBUG: ℹ️ PaymentQueue updatedTransaction: st_499_1m 1000000920701796 ((null)) (null) - 1
2021-11-30 08:47:43.680226+0100 StickerTune:569:24807] 1Purchases] - DEBUG: ℹ️ Loaded receipt from url file:///private/var/mobile/Containers/Data/Application/F60D1DC2-8F59-4134-8E09-516C52DE15A1/StoreKit/sandboxReceipt
2021-11-30 08:47:43.680426+0100 StickerTune8569:24807] 2Purchases] - DEBUG: ℹ️ Found 0 unsynced attributes for App User ID: $RCAnonymousID:d9553d3dd15e4aec9f5eecda5d06869e
2021-11-30 08:47:43.682637+0100 StickerTune3569:24807] 6Purchases] - DEBUG: ℹ️ There are no requests currently running, starting request POST /receipts
2021-11-30 08:47:43.682729+0100 StickerTune-569:24807] :Purchases] - DEBUG: ℹ️ API request started: POST /v1/receipts
2021-11-30 08:47:43.902555+0100 StickerTune2569:24807] 8Purchases] - DEBUG: ℹ️ applicationDidBecomeActive
2021-11-30 08:47:44.990300+0100 StickerTuner569:25606] 3Purchases] - DEBUG: ℹ️ API request completed with status: POST /v1/receipts 200
2021-11-30 08:47:44.996460+0100 StickerTune0569:25606] -Purchases] - DEBUG: ℹ️ Serial request done: POST /receipts, 0 requests left in the queue
2021-11-30 08:47:44.999024+0100 StickerTune 569:24807] 2Purchases] - DEBUG: 💰 Finishing transaction st_499_1m 1000000920701796 ((null))
2021-11-30 08:47:45.001321+0100 StickerTune 569:24807] Purchases] - DEBUG: ℹ️ Vending PurchaserInfo from cache.
2021-11-30 08:47:45.554296+0100 StickerTuneo569:24807] .Purchases] - DEBUG: ℹ️ PaymentQueue removedTransaction: st_499_1m 1000000920701796 ((null) (null)) (null) - 1
2021-11-30 08:48:15.087654+0100 StickerTunen569:25948] )tcp] tcp_input 1C4.1:3] flags=0R] seq=2954479620, ack=0, win=0 state=LAST_ACK rcv_nxt=2954479621, snd_una=318890755
2021-11-30 08:48:15.088228+0100 StickerTunes569:25948] 9tcp] tcp_input 1C4.1:3] flags=0R] seq=2954479621, ack=0, win=0 state=LAST_ACK rcv_nxt=2954479621, snd_una=318890755

Is this the expected behaviour for the first very purchase done with the sdk?

 

Thanks in advance,

Libero

Hey @libe 

This is actually an Apple sandbox quirk. Other developers and myself have also experienced seeing the payment sheet twice (sometimes even more) when performing a test purchase. Nothing to worry about here! The production environment once you ship your app is much more stable.


Reply