Skip to main content
Question

original_transaction_id is empty


Forum|alt.badge.img+1

Hey guys,

We are having difficulties with transaction_id and original_transaction_id fields which can be accessed from the SDK. Sometimes both of these fields have values and sometimes original_transaction_id is simply empty. When we take a look at the events which are being send via web hooks, we can actually see that original_transaction_id is not empty.

Can you please tell us why is this happening?

Also, I would like to know if there is a rule which is dictating the behavior where original_transaction_id would be empty after successful purchase?

Kind regards,

Aleksandar

5 replies

tina
RevenueCat Staff
Forum|alt.badge.img+10
  • RevenueCat Staff
  • 338 replies
  • March 3, 2022

Hey @Aleksandar Draskovic 

Can you walk me through how you are collecting these values from the SDK?


Forum|alt.badge.img+1

Hey,

        Purchases.shared.purchasePackage(self.products[index.row]) { (transaction, purchaserInfo, error, userCancelled) in {

print(transaction?.transactionIdentifier ?? "")

print(transaction?.original?.transactionIdentifier ?? "")

}


tina
RevenueCat Staff
Forum|alt.badge.img+10
  • RevenueCat Staff
  • 338 replies
  • March 4, 2022

Hi @Aleksandar Draskovic 

Thanks for that information! What SDK + version are you using? I’m going to try to see if I can reproduce this myself. How often are you noticing this behavior?


Forum|alt.badge.img+1

Hi,

In Pods version, in Xcode project the version is displayed as 3.12.8.

It seems to me that it happens every time when new AppleId subscribes to a new package for the first time. SDK gives empty value for origingal_transaction_id but in the RC console, when I explore events for that user, it is stated that origingal_transaction_id and transaction_id are equal (have same non null value).

KR,

Aleksandar


Forum|alt.badge.img+1

Hi @tina,

Is there a way maybe to check which type of event happened during a purchase in the SDK? Web hook has this type field which can have multiple values. I am interested whether there is a way to read this value from the SDK?

KR,

ALeksandar


Reply


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