From 2dd25285240ec68c54d1fe8d72aa29eee7f888bb Mon Sep 17 00:00:00 2001 From: Jocelyn-paystack <78022506+Jocelyn-paystack@users.noreply.github.com> Date: Wed, 3 Mar 2021 01:29:01 -0800 Subject: [PATCH 1/8] Update App.js Updated private key --- src/App.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App.js b/src/App.js index 2b640cb..60f3b13 100644 --- a/src/App.js +++ b/src/App.js @@ -3,7 +3,7 @@ import { PaystackButton } from "react-paystack" import "./App.css" const App = () => { - const publicKey = "pk_your_public_key_here" + const publicKey = "ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad" const amount = 1000000 const [email, setEmail] = useState("") const [name, setName] = useState("") From 51263d47f02a00c8eeaa1609939a863ac571602c Mon Sep 17 00:00:00 2001 From: Jocelyn-paystack <78022506+Jocelyn-paystack@users.noreply.github.com> Date: Wed, 3 Mar 2021 01:30:31 -0800 Subject: [PATCH 2/8] Update App.js --- src/App.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App.js b/src/App.js index 60f3b13..d3b501d 100644 --- a/src/App.js +++ b/src/App.js @@ -3,7 +3,7 @@ import { PaystackButton } from "react-paystack" import "./App.css" const App = () => { - const publicKey = "ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad" + const publicKey = "Private" const amount = 1000000 const [email, setEmail] = useState("") const [name, setName] = useState("") From c41b91adb3f5275f609b42539abc81686c2dfc0a Mon Sep 17 00:00:00 2001 From: Jocelyn-paystack <78022506+Jocelyn-paystack@users.noreply.github.com> Date: Wed, 3 Mar 2021 01:38:55 -0800 Subject: [PATCH 3/8] Update codeql-analysis.yml --- .github/workflows/codeql-analysis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 03a6ef4..ae25b58 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -13,10 +13,10 @@ name: "CodeQL" on: push: - branches: [ master ] + branches: [ Testing ] pull_request: # The branches below must be a subset of the branches above - branches: [ master ] + branches: [ Testing ] schedule: - cron: '22 21 * * 3' From 58bed488b70aa38d3d5c82526477e6deabb68857 Mon Sep 17 00:00:00 2001 From: Jocelyn-paystack <78022506+Jocelyn-paystack@users.noreply.github.com> Date: Wed, 3 Mar 2021 01:40:23 -0800 Subject: [PATCH 4/8] Update App.js --- src/App.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App.js b/src/App.js index d3b501d..60f3b13 100644 --- a/src/App.js +++ b/src/App.js @@ -3,7 +3,7 @@ import { PaystackButton } from "react-paystack" import "./App.css" const App = () => { - const publicKey = "Private" + const publicKey = "ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad" const amount = 1000000 const [email, setEmail] = useState("") const [name, setName] = useState("") From 99c962d204ecea8e007609888171099bfb33e40e Mon Sep 17 00:00:00 2001 From: Jocelyn-paystack <78022506+Jocelyn-paystack@users.noreply.github.com> Date: Wed, 3 Mar 2021 01:52:02 -0800 Subject: [PATCH 5/8] Update App.js --- src/App.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App.js b/src/App.js index 60f3b13..f2604e2 100644 --- a/src/App.js +++ b/src/App.js @@ -3,7 +3,7 @@ import { PaystackButton } from "react-paystack" import "./App.css" const App = () => { - const publicKey = "ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad" + const publicKey = "ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015adba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad" const amount = 1000000 const [email, setEmail] = useState("") const [name, setName] = useState("") From 1b0938df272be5185ead48d4e6bada7424619748 Mon Sep 17 00:00:00 2001 From: Jocelyn-paystack <78022506+Jocelyn-paystack@users.noreply.github.com> Date: Wed, 3 Mar 2021 01:58:40 -0800 Subject: [PATCH 6/8] Update App.js --- src/App.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/App.js b/src/App.js index f2604e2..a497eae 100644 --- a/src/App.js +++ b/src/App.js @@ -3,7 +3,7 @@ import { PaystackButton } from "react-paystack" import "./App.css" const App = () => { - const publicKey = "ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015adba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad" + const privateKey = "ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015adba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad" const amount = 1000000 const [email, setEmail] = useState("") const [name, setName] = useState("") @@ -74,6 +74,9 @@ const App = () => { + + + ) } From a1e3cbcf7c0f1e25dd526676546cf36acd6e6bbf Mon Sep 17 00:00:00 2001 From: Jocelyn-paystack <78022506+Jocelyn-paystack@users.noreply.github.com> Date: Wed, 3 Mar 2021 02:06:03 -0800 Subject: [PATCH 7/8] Update codeql-analysis.yml --- .github/workflows/codeql-analysis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index ae25b58..f54b3c7 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -13,7 +13,7 @@ name: "CodeQL" on: push: - branches: [ Testing ] + branches: [ Development ] pull_request: # The branches below must be a subset of the branches above branches: [ Testing ] From f7dcd7ee99f8c3da859b9f908fe67640d51ab8dd Mon Sep 17 00:00:00 2001 From: Jocelyn-paystack <78022506+Jocelyn-paystack@users.noreply.github.com> Date: Wed, 3 Mar 2021 02:22:11 -0800 Subject: [PATCH 8/8] Update App.js --- src/App.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/App.js b/src/App.js index a497eae..818b7b3 100644 --- a/src/App.js +++ b/src/App.js @@ -81,4 +81,15 @@ const App = () => { ) } +if (document.readyState == 'loading') { + document.addEventListener('DOMContentLoaded', ready) +} else { + ready() +} +function ready() { + var query = new URL(window.location).searchParams.get('query') + document.getElementById('query-input').value = query + document.getElementById('query-output').innerHTML = query +} + export default App