/** * Returns the label for the selected shipping option. * * @return The label for the selected shipping option or null. */ public String getSelectedShippingOptionLabel() { PaymentOption option = mShippingOptions.getSelectedItem(); return option != null ? option.getLabel() : null; }
/** * Returns the sublabel for the selected shipping address. * * @return The sublabel for the selected shipping address or null. */ public String getSelectedShippingAddressSublabel() { PaymentOption address = mShippingAddresses.getSelectedItem(); return address != null ? address.getSublabel() : null; }