Question

no payment form shown for non subscription purchase

  • 16 February 2023
  • 5 replies
  • 53 views

Badge +2

Skipping products request for these products because they were already cached: ["company.product.id"]
 

INFO: ℹ️ Receipt parsed successfully

2023-02-16 21:00:14.398595+0200 MyAPP[96563:5580791] [Purchases] - DEBUG: ℹ️ PostReceiptDataOperation: Posting receipt: {


This is what I see in the log. When testing consumable purchases according to this guide 
https://www.revenuecat.com/docs/non-subscriptions

is it expected behaviour on sandbox which won’t happen in production or I have error in my setup? 

My Expected result is that payment form shows up on each consumable purchase 


5 replies

Userlevel 6
Badge +8

Hey @Roman Herman! Happy to help here.

Which version of the SDK are you using? I’m expecting this is a sandbox quirk, but want to see if there’s anything unique about the version you’re using.

Badge +2

Hey @cody 

Thanks for your reply 
I’m using SDK 4.14.3 installed from SPM

Badge +2

also when I fetch `Purchases.shared.getCustomerInfo` I can always see those purchases in `customerInfo?.allPurchasedProductIdentifiers` and they never adding more consumables to the array/ I always see array with unique consumables e.g. [consumable-id-1, consumable-id-2]  

Userlevel 6
Badge +8

Hey @Roman Herman!

It looks like that SDK version is from a few months back - I’d recommend upgrading to our latest SDK version (4.17.7) as we’ve published fixes for the issue you’re encountering.

I can always see those purchases in `customerInfo?.allPurchasedProductIdentifiers` and they never adding more consumables to the array/ I always see array with unique consumables e.g. [consumable-id-1, consumable-id-2] 

This is expected behavior at this time - only unique identifiers will be included in this array.

Badge +2

Thanks @cody I updated the SDK but unfortunately still facing this issue. 

Should I add some additional logs? 

Any additional steps to check that consumable has been configured properly except making sure it’s not in the entitlements?

```

[60082:9508409] [Purchases] - DEBUG: ℹ️ API request completed: POST /v1/receipts (200)

[60082:9508409] [Purchases] - DEBUG: ℹ️ PostReceiptDataOperation: Finished

[60082:9508409] [Purchases] - DEBUG: ℹ️ Serial request done: POST receipts, 0 requests left in the queue

[60082:9507233] [Purchases] - DEBUG: ℹ️ Sending updated CustomerInfo to delegate.

[60082:9507233] [Purchases] - DEBUG: ℹ️ Detected active subscriptions changed. Clearing trial or intro eligibility cache.

[60082:9507233] [Purchases] - INFO: 💰 Finishing transaction '2000000247691852' for product 'app.template.portrait'

2023-02-25 23:02:06.910378+0200 BumprNew[60082:9508411] [Purchases] - INFO: 😻💰 Purchased product - 'app.template.portrait'

```

Reply