Skip to main content
Question

Trouble Getting the Original Transaction ID

  • April 3, 2025
  • 1 reply
  • 16 views

Forum|alt.badge.img

Contextual closure type '@MainActor @Sendable (CustomerInfo) -> Void' expects 1 argument, but 2 were used in closure body
 

 

.onPurchaseCompleted { customerInfo, storeTransaction in

                    print("Purchase Completed: \(customerInfo.entitlements)")

 

I’m trying to get the original transaction ID from an ios subscription purchase using consumerInfo in revenue Cat but consumer info is found in the package. Need the original transaction ID to match to my backend. Any ideas on how to this?

Thanks!

This post has been closed for comments

1 reply

joan-cardona
RevenueCat Staff
Forum|alt.badge.img+6
  • RevenueCat Staff
  • 381 replies
  • April 7, 2025

Hi ​@adam-bhaloo-0ba0bf,

Where do you need the transaction id, in the client or in the backend? And would you mind sharing a bit more of your use case to understand and provide potential solutions? We don’t expose the transaction id in the SDK at the moment but it’s something we are looking to provide. You can still get it querying StoreKit but there’s likely an easier solution.

 

Best,


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