Esempio n. 1
0
        /// <summary>
        /// Execute a payment in realtime. Only supports realtime sources (credit cards).
        /// </summary>
        /// <param name="options"></param>
        /// <returns></returns>
        public async Task <ApiResponse <PaymentDetailed> > ExecuteRealtime(RealtimePaymentSaveOptions options)
        {
            var response = await PostHttp <PaymentDetailed>("payments/realtime", options);

            return(new ApiResponse <PaymentDetailed>()
            {
                Data = response.Data,
                Errors = response.Errors
            });
        }
Esempio n. 2
0
        /// <summary>
        /// Execute a payment in realtime. Only supports realtime sources (credit cards).
        /// </summary>
        /// <param name="options"></param>
        /// <returns></returns>
        public async Task <NonceApiResponse <PaymentDetailed> > ExecuteRealtime(RealtimePaymentSaveOptions options)
        {
            var response = await PostHttp <PaymentDetailed>("payments/realtime", options);

            return(response.ToNonceResponse());
        }