-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat/accept fe url for playground (#24)
Co-authored-by: Praful Koppalkar <[email protected]> Co-authored-by: arun.mishra <[email protected]>
- Loading branch information
1 parent
e0a420b
commit 1340a94
Showing
16 changed files
with
270 additions
and
77 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ yarn.lock | |
!.yarn/releases | ||
!.yarn/sdks | ||
!.yarn/versions | ||
|
||
dist | ||
|
||
# Sentry Auth Token | ||
.env.sentry-build-plugin |
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 |
---|---|---|
@@ -1,4 +1,7 @@ | ||
STATIC_DIR="./public" | ||
HYPERSWITCH_PUBLISHABLE_KEY="GET_PUBLISHABLE_KEY_FROM_DASHBOARD" | ||
HYPERSWITCH_SECRET_KEY="GET_SECRET_KEY_FROM_DASHBOARD" | ||
HYPERSWITCH_SERVER_URL="SELF_HOSTED_SERVER_URL" | ||
HYPERSWITCH_SERVER_URL="SELF_HOSTED_SERVER_URL" | ||
HYPERSWITCH_CLIENT_URL="SELF_HOSTED_CLIENT_URL" | ||
SELF_SERVER_URL="ENTER_YOUR_SERVER_APPLICATION_URL" | ||
SELF_CLIENT_URL="ENTER_YOUR_CLIENT_APPLICATION_URL" |
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
14 changes: 0 additions & 14 deletions
14
Hyperswitch-React-Demo-App/patches/@juspay-tech+hyper-js+1.6.0.patch
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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,55 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<!-- <link rel="icon" href="/orca/elements/favicon.ico" /> --> | ||
<meta | ||
name="viewport" | ||
content="width=device-width, initial-scale=1, maximum-scale=1" | ||
/> | ||
<meta name="theme-color" content="#000000" /> | ||
<link | ||
href="https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;600;700;800&display=swap" | ||
rel="stylesheet" | ||
/> | ||
<link | ||
href="https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600;700&family=Qwitcher+Grypen:wght@400;700&display=swap" | ||
rel="stylesheet" | ||
/> | ||
|
||
<!-- <link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" /> --> | ||
<!-- | ||
manifest.json provides metadata used when your web app is installed on a | ||
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/ | ||
--> | ||
<!-- <link rel="manifest" href="%PUBLIC_URL%/manifest.json" /> --> | ||
<!-- | ||
Notice the use of %PUBLIC_URL% in the tags above. | ||
It will be replaced with the URL of the `public` folder during the build. | ||
Only files inside the `public` folder can be referenced from the HTML. | ||
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will | ||
work correctly both with client-side routing and a non-root public URL. | ||
Learn how to configure a non-root public URL by running `npm run build`. | ||
--> | ||
<title>React Hyperswitch Payment Element</title> | ||
</head> | ||
|
||
<body> | ||
<script src="<%= SCRIPT_SRC%>/HyperLoader.js"></script> | ||
<noscript>You need to enable JavaScript to run this app.</noscript> | ||
<div id="app"></div> | ||
<script src="/app.js"></script> | ||
|
||
<!-- | ||
This HTML file is a template. | ||
If you open it directly in the browser, you will see an empty page. | ||
You can add webfonts, meta tags, or analytics to this file. | ||
The build step will place the bundled scripts into the <body> tag. | ||
To begin the development, run `npm start` or `yarn start`. | ||
To create a production bundle, use `npm run build` or `yarn build`. | ||
--> | ||
</body> | ||
</html> |
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
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 |
---|---|---|
@@ -1,7 +1,11 @@ | ||
import React from "react"; | ||
|
||
function Completion(props) { | ||
return window.location.href.includes("failed") ? | ||
<h1>Payment failed, Please try again!</h1> : | ||
<h1>Payment successful, Thank you! 🎉</h1>; | ||
return window.location.href.includes("failed") ? ( | ||
<h1>Payment failed, Please try again!</h1> | ||
) : ( | ||
<h1>Payment successful, Thank you! 🎉</h1> | ||
); | ||
} | ||
|
||
export default Completion; |
Oops, something went wrong.