createPaymentMethodFromCard method

Future<Map<String, dynamic>> createPaymentMethodFromCard(
  1. StripeCard card
)

Create a PaymentMethod from a card. This will only create a PaymentMethod with the minimum required properties. To include additional properties such as billing details, use StripeCard.toPaymentMethod, add additional details and then use createPaymentMethod.

Implementation

Future<Map<String, dynamic>> createPaymentMethodFromCard(StripeCard card) async {
  return createPaymentMethod(card.toPaymentMethod());
}