public virtual void SettlePayment(PaymentMethod paymentMethod, int paymentProductId, long orderId) { var request = new SetPayment() { Meta = { MerchantId = paymentMethod.DynamicProperty <int>().MerchantId }, Payment = { PaymentProductId = paymentProductId, OrderId = orderId } }; SendTextAndCheckResponseForErrors(GetServiceUrl(paymentMethod), request.ToString()); }
public void SetPayment() { // Arrange var request = new SetPayment() { Meta = { MerchantId = 7454 }, Payment = { PaymentProductId = 123, OrderId = 1200003770 } }; var text = request.ToString(); var caller = new ServiceApiCaller("HTTPS://ps.gcsip.nl/wdl/wdl"); // Act var responseText = caller.Send(text); // Assert AssertResponseOk(responseText); }