Question

func purchase(package: Package, completion: @escaping PurchaseCompletedBlock) Why no callbacks?

  • 1 April 2024
  • 3 replies
  • 20 views

Badge +2

Swift Package Manager,version4.39.0。 some users Why don't have callbacks?


This post has been closed for comments

3 replies

Userlevel 4
Badge +6

Hey @popshort-03c441 !

 

The purchase(package:) completion block will contain an updated CustomerInfo object if successful, along with some details about the transaction.

 

Are you calling getCustomerInfo() after the purchase is finished?

Badge

Hi @Michael Fogel, I sent u message, please check.

Badge

I’m also having issue with 
 

const { customerInfo } = await Purchases.purchasePackage(androidPackage);

I’m not getting anything in here.