예제 #1
0
 public virtual StripeCharge Capture(string chargeId, StripeChargeCaptureOptions captureOptions, StripeRequestOptions requestOptions = null)
 {
     return(Mapper <StripeCharge> .MapFromJson(
                Requestor.PostString(this.ApplyAllParameters(captureOptions, $"{Urls.Charges}/{chargeId}/capture", false),
                                     SetupRequestOptions(requestOptions))
                ));
 }
예제 #2
0
 public virtual async Task <StripeCharge> CaptureAsync(string chargeId, StripeChargeCaptureOptions captureOptions, StripeRequestOptions requestOptions = null, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(Mapper <StripeCharge> .MapFromJson(
                await Requestor.PostStringAsync(this.ApplyAllParameters(captureOptions, $"{Urls.Charges}/{chargeId}/capture", false),
                                                SetupRequestOptions(requestOptions),
                                                cancellationToken)
                ));
 }