restore

fun restore(supportFragmentManager: FragmentManager, paymentDelegate: PaymentDelegate)

Function responsible for restoring the PaymentDelegate callback after a process death occurred.

If the Payment.Sheet was open during process death, system will automatically open it again after user comes back to the app. In this case you need to call this method to restore the callback and receive transaction information.