error with onCancelled in buyFeature

error to distinguish between user cancelled and any error using error
code with error object