attachPaymentMethod method

Future<Map<String, dynamic>> attachPaymentMethod(
  1. String paymentMethodId
)

Attach a payment method and refresh the store if there are any active listeners.

Implementation

Future<Map<String, dynamic>> attachPaymentMethod(String paymentMethodId) async {
  final paymentMethodFuture = await _customerSession.attachPaymentMethod(paymentMethodId);
  await refresh();
  return paymentMethodFuture;
}