Skip to content

Commit

Permalink
Merge branch 'release/0.2.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
zunkas committed Aug 12, 2020
2 parents 4d241c0 + 34cbb9b commit f3db9c4
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 13 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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; }
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
8 changes: 1 addition & 7 deletions src/Svea.WebPay.SDK/MinorUnit.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using Newtonsoft.Json;
using Newtonsoft.Json;

namespace Svea.WebPay.SDK
{
Expand All @@ -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);
}

Expand Down

0 comments on commit f3db9c4

Please sign in to comment.