public virtual StripeCard Create(string recipientId, StripeCreditCardOptions createOptions, StripeRequestOptions requestOptions = null) { var url = SetupUrl(recipientId, true); return(Mapper <StripeCard> .MapFromJson( Requestor.PostString(this.ApplyAllParameters(createOptions, url, false), SetupRequestOptions(requestOptions)) )); }
public virtual async Task <StripeCard> CreateAsync(string recipientId, StripeCreditCardOptions createOptions, StripeRequestOptions requestOptions = null, CancellationToken cancellationToken = default(CancellationToken)) { var url = SetupUrl(recipientId, true); return(Mapper <StripeCard> .MapFromJson( await Requestor.PostStringAsync(this.ApplyAllParameters(createOptions, url, false), SetupRequestOptions(requestOptions), cancellationToken) )); }