Skip to main content
Question

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


Forum|alt.badge.img+3

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

This post has been closed for comments

3 replies

Michael Fogel
Forum|alt.badge.img+6
  • Dedicated Contributor
  • 382 replies
  • April 3, 2024

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?


Forum|alt.badge.img

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


Forum|alt.badge.img

I’m also having issue with 
 

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

I’m not getting anything in here.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings