Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
748 B
1
Indexable
Never
var client = new RestClient("https://testsecure.peachpayments.com/checkout/initiate");
var request = new RestRequest(Method.POST);
request.AddHeader("accept", "application/json");
request.AddHeader("Referer", "https://my-staging.vhsonline.co.za/");
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\"paymentType\":\"DB\",\"authentication.entityId\":\"8ac7a4c98532ad680185341d6ccb0123\",\"signature\":\"8c3782daf38b3928e8f49c7e5925dbd4d34605281da3beb84451c053ddcfa0bc\",\"merchantTransactionId\":\"fdasdfdd\",\"amount\":1.23,\"nonce\":\"1234\",\"shopperResultUrl\":\"https://www.peachpayments.com\",\"currency\":\"ZAR\"}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);