Learn Courses My Dashboard

RevenueCat purchase

Hi, I’m having problems with RevenueCat , when the user clicks purchase, then cancel, doesn’t complete the purchase. it shows error message “Thread 1: Fatal error: Unexpectedly found nil while unwrapping an Optional value”

customerInfo is nil, and unwrapping a nil variable results in a crash.

You should probably check userCancelled first