diff --git a/README.md b/README.md index 0c629065..151a01de 100644 --- a/README.md +++ b/README.md @@ -45,11 +45,11 @@ Step 1: "Secret": "xxxxxxx" }, "MerchantSettings": { - "PushUri": "https://localhost:4434/push/{checkout.order.uri}", - "TermsUri": "https://localhost:4434/terms", - "CheckoutUri": "https://localhost:44345/CheckOut/LoadPaymentMenu", - "ConfirmationUri": "https://localhost:44345/checkout/thankyou", - "CheckoutValidationCallbackUri": "https://localhost:4434/validation/{checkout.order.uri}" + "PushUri": "https://{Your domain}/push/{checkout.order.uri}", + "TermsUri": "https://{Your domain}/terms", + "CheckoutUri": "https://{Your domain}/CheckOut/LoadPaymentMenu", + "ConfirmationUri": "https://{Your domain}/checkout/thankyou", + "CheckoutValidationCallbackUri": "https://{Your domain}/validation/{checkout.order.uri}" } } diff --git a/src/Samples/Sample.AspNetCore.SystemTests/PageObjectModels/Payment/TrustlyPaymentPage.cs b/src/Samples/Sample.AspNetCore.SystemTests/PageObjectModels/Payment/TrustlyPaymentPage.cs index 0bfbd31a..ef488147 100644 --- a/src/Samples/Sample.AspNetCore.SystemTests/PageObjectModels/Payment/TrustlyPaymentPage.cs +++ b/src/Samples/Sample.AspNetCore.SystemTests/PageObjectModels/Payment/TrustlyPaymentPage.cs @@ -26,6 +26,7 @@ public class TrustlyPaymentPage : Page<_> [FindByClass("options")] public Control<_> AccountOptions { get; private set; } + [Wait(1, TriggerEvents.BeforeClick)] [FindByClass("button_next")] public Link<_> Next { get; private set; } } diff --git a/src/Samples/Sample.AspNetCore.SystemTests/Test/Helpers/PaymentHelper.cs b/src/Samples/Sample.AspNetCore.SystemTests/Test/Helpers/PaymentHelper.cs index f19b3c2b..601ef431 100644 --- a/src/Samples/Sample.AspNetCore.SystemTests/Test/Helpers/PaymentHelper.cs +++ b/src/Samples/Sample.AspNetCore.SystemTests/Test/Helpers/PaymentHelper.cs @@ -66,7 +66,7 @@ public static SveaPaymentFramePage PayWithTrustly(this SveaPaymentFramePage page .MessageCode.StoreValue(out string code) .Code.Set(code) .Next.Click() - .AccountOptions.IsVisible.WaitTo.BeTrue() + .AccountOptions.IsVisible.WaitTo.Within(60).BeTrue() .Next.Click() .MessageCode.StoreValue(out code) .Code.Set(code) diff --git a/src/Svea.WebPay.SDK/MinorUnit.cs b/src/Svea.WebPay.SDK/MinorUnit.cs index 8c70bde3..0a141b8e 100644 --- a/src/Svea.WebPay.SDK/MinorUnit.cs +++ b/src/Svea.WebPay.SDK/MinorUnit.cs @@ -1,5 +1,4 @@ -using System; -using Newtonsoft.Json; +using Newtonsoft.Json; namespace Svea.WebPay.SDK { @@ -8,11 +7,6 @@ public class MinorUnit [JsonConstructor] private MinorUnit(decimal value) { - if (value < 0) - { - throw new ArgumentOutOfRangeException(nameof(value), "Negative amount value is not allowed."); - } - Value = decimal.ToInt32(value); }