restore Purchase
fun restorePurchase(storeOrderId: String?, zsCustomFields: ArrayList<ZSCustomField> = ArrayList(), restorePurchaseListener: RestorePurchaseListener)
If a subscription is active in Play Store and is yet to be synced in Zoho Billing, this method can be called. This method can be called while the user clicks on the ‘Restore’ button from the subscription screen. This method does not support restoring multiple purchases.
Parameters
store Order Id
The store order ID of the current plan.
zs Custom Fields
An optional array of custom fields ZSCustomField to be sent along with the subscription data to Zoho Billing.
restore Purchase Listener
An interface which handles the success or failure result of the restore purchase flow.