Example #1
0
        /// <summary>
        /// Create or update a scheduled payment. Updates not supported after the payment has been processed.
        /// </summary>
        /// <param name="options"></param>
        /// <returns></returns>
        public async Task <ApiResponse <PaymentDetailed> > Save(PaymentSaveOptions options)
        {
            var response = await PostHttp <PaymentDetailed>("payments", options);

            return(new ApiResponse <PaymentDetailed>()
            {
                Data = response.Data,
                Errors = response.Errors
            });
        }
Example #2
0
        /// <summary>
        /// Create or update a scheduled payment. Updates not supported after the payment has been processed.
        /// </summary>
        /// <param name="options"></param>
        /// <returns></returns>
        public async Task <NonceApiResponse <PaymentDetailed> > Save(PaymentSaveOptions options)
        {
            var response = await PostHttp <PaymentDetailed>("payments", options);

            return(response.ToNonceResponse());
        }