public VerificationSession Create(VerificationSessionCreateOptions options, RequestOptions requestOptions = null) { if (options.StripeVersion == null) { throw new System.ArgumentException("The StripeVersion parameter has to be set when creating a Verification Session", "StripeVersion"); } // Creating a Verification Session requires a specific API version to be set. This is handled as a parameter // but has to be set on the RequestOptions instead. requestOptions = requestOptions ?? new RequestOptions(); requestOptions.StripeVersion = options.StripeVersion; return(this.CreateEntity(options, requestOptions)); }
public Task <VerificationSession> CreateAsync(VerificationSessionCreateOptions options, RequestOptions requestOptions = null, CancellationToken cancellationToken = default) { return(this.CreateEntityAsync(options, requestOptions, cancellationToken)); }