protected void BtnCapture_Click(object sender, EventArgs e) { if (_order.PaymentInformation.PaymentMethodId != null) { PaymentMethod paymentMethod = PaymentMethodService.Instance.Get(_order.StoreId, _order.PaymentInformation.PaymentMethodId.Value); paymentMethod.CapturePayment(_order); SetTransactionPayment(paymentMethod); } }