setSelectedPaymentOption

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.