Skip to content

Commit

Permalink
It looks like that we are in the headless context if CheckoutParamete…
Browse files Browse the repository at this point in the history
…rs are not null. This fix should restore right behavior.
  • Loading branch information
StanislavSmetaninSSM committed Oct 3, 2024
1 parent 0374b37 commit bc453f0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/DibsEasyCheckout.cs
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,9 @@ public override OutputResult BeginCheckout(Order order, CheckoutParameters param
{
LogEvent(order, "Checkout started");


bool headless = parameters is not null;
var formTemplate = new Template(TemplateHelper.GetTemplatePath(PostTemplate, PostTemplateFolder));
return RenderPaymentForm(order, formTemplate, true, parameters?.ReceiptUrl);
return RenderPaymentForm(order, formTemplate, headless, parameters?.ReceiptUrl);
}

protected override string GetBaseUrl(Order order, bool headless = false)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<VersionPrefix>10.6.0</VersionPrefix>
<VersionPrefix>10.6.1</VersionPrefix>
<AssemblyVersion>1.0.0.0</AssemblyVersion>
<Title>Nets Easy Checkout</Title>
<Description>Nets Easy Checkout</Description>
Expand Down

0 comments on commit bc453f0

Please sign in to comment.