createPaymentMethod method
Future<PaymentMethod>
createPaymentMethod(
- PaymentMethodParams data, [
- PaymentMethodOptions? options
override
Implementation
@override
Future<PaymentMethod> createPaymentMethod(
PaymentMethodParams data, [
PaymentMethodOptions? options,
]) async {
return data.maybeWhen(
card: (data) {
return _createCardPaymentMethod(data);
},
orElse: () {
throw UnimplementedError();
},
);
}