Handling refund inside App?

Is there a way to handle refund inside the application using ionic native plugin in-app purchase-2. I’m implementing a non-renewable subscription based application in iOS. I would like to know if in any case the payment got refunded due to server issues.