-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Terms of Service handling to checkout process (#648)
Introduced IHttpContextAccessor to CheckOutController for dynamically generating Terms of Service URL. Created a new TermsController with an associated view to display payment terms. Enhanced SwedbankPayCheckout view to open terms in a new tab.
- Loading branch information
Showing
4 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
src/Samples/Sample.AspNetCore/Controllers/TermsController.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
using Microsoft.AspNetCore.Mvc; | ||
|
||
namespace Sample.AspNetCore.Controllers; | ||
|
||
public class TermsController : Controller | ||
{ | ||
public IActionResult Index() | ||
{ | ||
return View(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<h1>Terms of Payment</h1> | ||
|
||
<p>By making a payment, you agree to the following terms and conditions:</p> | ||
|
||
<ul> | ||
<li>All payments are non-refundable unless otherwise stated.</li> | ||
<li>Payments must be made in full before the delivery of any goods or services.</li> | ||
<li>We accept the following payment methods: credit card, debit card, and PayPal.</li> | ||
<li>Any disputes regarding payments must be reported within 30 days of the transaction date.</li> | ||
<li>We reserve the right to change our payment terms at any time without prior notice.</li> | ||
</ul> | ||
|
||
<p>If you have any questions or concerns about our payment terms, please contact our support team.</p> |