Skip to content

Commit c4379c2

Browse files
andriibiloussigmastrazhnyk
authored andcommitted
init
Update .gitignore Signed-off-by: andriibiloussigma <[email protected]> Delete app/private.key Signed-off-by: andriibiloussigma <[email protected]>
1 parent 8798044 commit c4379c2

File tree

4 files changed

+11771
-13
lines changed

4 files changed

+11771
-13
lines changed

.env

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
# Configuration file for the example
22
##
33
# Integration key is the same as client ID
4-
DS_CLIENT_ID={DS_CLIENT_ID}
4+
DS_CLIENT_ID=95157842-624a-4cba-8c73-59004b270417
55
# Integration secret key
6-
DS_CLIENT_SECRET={DS_CLIENT_SECRET}
6+
DS_CLIENT_SECRET=f9c17b5c-973e-4f31-acf3-1dec7222170e
77

88
# API Username
9-
DS_IMPERSONATED_USER_GUID={DS_USER_GUID}
9+
DS_IMPERSONATED_USER_GUID=8a1318df-e2d3-48af-ae26-27fa85fe80e9
1010

1111
# Target account ID. Use FALSE to indicate that the user's default account should be used.
1212
DS_TARGET_ACCOUNT_ID=FALSE
1313

14-
DS_PAYMENT_GATEWAY_ID={DS_PAYMENT_GATEWAY_ID}
15-
DS_PAYMENT_GATEWAY_NAME={DS_PAYMENT_GATEWAY_NAME}
16-
DS_PAYMENT_GATEWAY_DISPLAY_NAME={DS_PAYMENT_GATEWAY_DISPLAY_NAME}
14+
PAYMENT_GATEWAY_ACCOUNT_ID=8e0c89fd-ff6f-4bbf-98fc-95e10596e120
15+
PAYMENT_GATEWAY_NAME=Stripe_3758
16+
PAYMENT_GATEWAY_DISPLAY_NAME=Stripe_3758
1717

1818
# Private key string - source or path, for instance: /home/user/app/id_rsa
1919
# NOTE: the Python config file parser requires that you
2020
# add a space at the beginning of the second and
2121
# subsequent lines of the multiline key value:
22-
DS_PRIVATE_KEY={RSA_KEY}
22+
DS_PRIVATE_KEY=./app/private.key
2323

2424
# React environment variables
2525
# UI and BE links

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "0.1.0",
44
"private": true,
55
"dependencies": {
6-
"@popperjs/core": "^2.11.8",
6+
"popper.js": "^1.16.1",
77
"@testing-library/jest-dom": "^5.17.0",
88
"@testing-library/react": "^14.3.1",
99
"@testing-library/user-event": "^14.5.2",

public/index.html

Lines changed: 26 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,32 @@
22
<html lang="en">
33
<head>
44
<!-- Google Tag Manager -->
5-
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
6-
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
7-
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
8-
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
9-
})(window,document,'script','dataLayer','GTM-WPK6FN5');</script>
5+
<script>
6+
window.dataLayer = window.dataLayer || [];
7+
if (!window.google_tag_manager) {
8+
console.warn("GTM is not initialized.");
9+
return;
10+
}
11+
(function(w, d, s, l, i) {
12+
try {
13+
w[l] = w[l] || [];
14+
w[l].push({ 'gtm.start': new Date().getTime(), event: 'gtm.js' });
15+
var f = d.getElementsByTagName(s)[0];
16+
var j = d.createElement(s);
17+
var dl = l != 'dataLayer' ? '&l=' + l : '';
18+
j.async = true;
19+
j.src = 'https://www.googletagmanager.com/gtm.js?id=' + i + dl;
20+
21+
if (f && f.parentNode) {
22+
f.parentNode.insertBefore(j, f);
23+
} else {
24+
console.warn('GTM script insertion failed.');
25+
}
26+
} catch (err) {
27+
console.error('Error initializing GTM:', err);
28+
}
29+
})(window, document, 'script', 'dataLayer', 'GTM-WPK6FN5');
30+
</script>
1031
<!-- End Google Tag Manager -->
1132
<meta charset="utf-8" />
1233
<link rel="icon" href="favicon.png" />

0 commit comments

Comments
 (0)