Skip to main content
Solved

How to detect a purchase cancellation?

  • Dec 27, 2021 9:00 PM UTC
  • 1 reply
  • 635 views

Forum|alt.badge.img+1

Hi, how can i detect the iTunes pop-up cancel button clicked ? Is there any delegation methods or someting?

 

Best answer by ryan

Hey @Eren Çelik!

In the purchase completion handler, the userCancelled boolean will be true if the customer cancelled the purchase. In addition, the error object will contain a PURCHASE_CANCELLED error: https://docs.revenuecat.com/docs/errors#--purchase_cancelled

View original
This post has been closed for comments

1 reply

ryan
RevenueCat Staff
Forum|alt.badge.img+9
  • RevenueCat Staff
  • Answer
  • Dec 27, 2021 9:29 PM UTC

Hey @Eren Çelik!

In the purchase completion handler, the userCancelled boolean will be true if the customer cancelled the purchase. In addition, the error object will contain a PURCHASE_CANCELLED error: https://docs.revenuecat.com/docs/errors#--purchase_cancelled