Skip to main content
Question

Where can I find the original transaction id using UIKit and Paywalls?

  • 30 June 2024
  • 1 reply
  • 127 views

Forum|alt.badge.img

I need the original transaction id to send it to backend. We use original transaction id to check whether a used has renewed a subscription or not. I can’t check for renewals in the app because our service works outside the app, even if a user deletes the app. I was using StoreKit and had access to it but I can’t seem to find it when using RevenueCat Paywalls. How can I access the original transaction id?

This post has been closed for comments

1 reply

sharif
RevenueCat Staff
Forum|alt.badge.img+9
  • RevenueCat Staff
  • 513 replies
  • July 3, 2024

Hi @irmak-5f9246,

When completing a purchase via a RevenueCat paywall, the original transaction ID will be in the storeTransaction parameter of the callback:

            .presentPaywallIfNeeded(
                requiredEntitlementIdentifier: "pro",
                purchaseCompleted: { customerInfo, storeTransaction in
                    print("Purchase completed: \(customerInfo.entitlements)")
                }

Outside of that, you’ll have to get the original transaction ID by reading the receipt manually. You can use the built in LocalReceiptParsing package in the RevenueCat SDK to get that.


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