restorePurchase

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

storeOrderId

The store order ID of the current plan.

zsCustomFields

An optional array of custom fields ZSCustomField to be sent along with the subscription data to Zoho Billing.

restorePurchaseListener

An interface which handles the success or failure result of the restore purchase flow.