initCreditCardWithTemplateInDatabase method

  1. @override
Future<void> initCreditCardWithTemplateInDatabase (
  1. CreditCardCreationRequest req
)
override

Implementation

@override
Future<void> initCreditCardWithTemplateInDatabase(
    CreditCardCreationRequest req) async {
  // TODO(tianhaoz95): this should be deprecated in favor of
  // the addCreditCardToDatabase API.
  HttpBasedRequest httpRequest = buildHttpBasedRequest();
  httpRequest.creditCardCreationRequest = req;
  HttpBasedResponse response =
      await sendRequest(httpRequest, getCreditCardCreationEndpoint());
  maybePostException(response);
}