improved environment management

This commit is contained in:
2026-03-27 19:46:45 +02:00
parent d010ec75eb
commit 15f8e0dfd0
7 changed files with 120 additions and 55 deletions

View File

@@ -33,11 +33,12 @@
<title>Velocity</title>
<link rel="manifest" href="manifest.json">
<script src="https://na.gateway.mastercard.com/static/checkout/checkout.min.js">
</script>
<!-- <script src="https://test-gateway.mastercard.com/static/checkout/checkout.min.js"></script> -->
<script type="text/javascript">
function configure(sessionID) {
if (typeof Checkout === 'undefined') {
throw new Error('Checkout SDK not loaded.');
}
Checkout.configure({
session: {
id: sessionID
@@ -46,6 +47,10 @@
}
function showEmbeddedPage() {
if (typeof Checkout === 'undefined') {
throw new Error('Checkout SDK not loaded.');
}
Checkout.showEmbeddedPage('#embed-target');
}
</script>