sveawebpay / dotnet-integration

SDK for Sveas standalone payment methods
Other
5 stars 14 forks source link

WebpayWS service reference updates and NavigationURLs in OrderBuilder. #43

Closed ornfelt closed 1 year ago

ornfelt commented 1 year ago

I've updated the WebpayWS service reference and added support for NavigationURLs in OrderBuilder.

Example usage:

CreateOrderEuResponse response = WebpayConnection.CreateOrder(_conf) .AddOrderRow(TestingTool.CreateExVatBasedOrderRow()) .AddOrderRow(TestingTool.CreateExVatBasedOrderRow()) .AddCustomerDetails(Item.IndividualCustomer() .SetNationalIdNumber(TestingTool.DefaultTestIndividualNationalIdNumber) .SetIpAddress("123.123.123")) .SetCountryCode(TestingTool.DefaultTestCountryCode) .SetOrderDate(TestingTool.DefaultTestDate) .SetClientOrderNumber(TestingTool.DefaultTestClientOrderNumber) .SetCurrency(TestingTool.DefaultTestCurrency) .AddNavigationUrls("https://my_confirmation_url.se", "https://my_rejection_url.se") .UseInvoicePayment() .DoRequest();