public DoXPayTokenCall ( string baseUri, string resourcePath, string queryString, string method, string testInfo, string requestBodyString ) : string | ||
baseUri | string | |
resourcePath | string | |
queryString | string | |
method | string | |
testInfo | string | |
requestBodyString | string | |
Résultat | string |
public void TestPaymentAuthorizations() { string baseUri = "cybersource/"; string resourcePath = "payments/v1/authorizations"; string queryString = "apikey=" + ConfigurationManager.AppSettings["apiKey"]; string status = visaAPIClient.DoXPayTokenCall(baseUri, resourcePath, queryString, "POST", "Cybersouce Payments Authorization Test", paymentAuthorizationRequest); Assert.AreEqual(status, "Created"); }
public void TestUpdatePaymentInfo() { string baseUri = "wallet-services-web/"; string resourcePath = "payment/info/{callId}"; resourcePath = resourcePath.Replace("{callId}", ConfigurationManager.AppSettings["checkoutCallId"]); string queryString = "apikey=" + apikey; string status = visaAPIClient.DoXPayTokenCall(baseUri, resourcePath, queryString, "PUT", "Update Payment Information Test", updatePaymentInfoRequest); Assert.AreEqual(status, "OK"); }