Moncash Rest Api With C#: Documentation
Moncash Rest Api With C#: Documentation
C#
Documentation
INTRODUCTION 2
1
Introduction
Moncash REST API is a simple way of integrating the payment gateway into your site to
take payments. In this article we're going to look at a simple example that will use
Moncash SDK to take payments using C#.
using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using NetMonCashSDK.Http;
using NetMonCashSDK.Model;
using System.Net;
2
2. Let’s try to create a new moncash Payment
Assert.IsNotNull(capture.status);
Assert.AreEqual($"{(int)HttpStatusCode.OK}", capture.status);
Assert.AreEqual("successful", capture.payment.message, "Result must be successful");
3
4. Capture payment using the orderId