setSelectedPaymentOption
abstract suspend fun setSelectedPaymentOption(paymentOption: CustomerAdapter.PaymentOption?): CustomerAdapter.Result<Unit>
Saves the payment option to a data store.
Return
success if the PaymentOption was persisted, failure otherwise.
Parameters
paymentOption
the PaymentOption to save to the data store. If null, the selected payment method option will be cleared from the data store.