-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9536d53
commit 71a5ccd
Showing
7 changed files
with
300 additions
and
14 deletions.
There are no files selected for viewing
49 changes: 49 additions & 0 deletions
49
example/android/app/src/main/assets/juspay/payments/in.juspay.hyperpay/base.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<html> | ||
<head> | ||
<title>MYSTIQUE</title> | ||
</head> | ||
<body> | ||
</body> | ||
<script type="text/javascript"> | ||
window.__OS = "ANDROID"; | ||
window.JBridge = top.JBridge; | ||
window.Android = top.Android; | ||
window.DUIGatekeeper = JBridge; | ||
window.__DEVICE_DETAILS = top.__DEVICE_DETAILS; | ||
window.__payload.client_id = window.__payload.client_id || window.__payload.payload.clientId; | ||
window.JOS.addEventListener("onMerchantEvent")(); | ||
</script> | ||
<script type="text/javascript"> | ||
var bundleLoad = function() { | ||
var headID = document.getElementsByTagName("head")[0]; | ||
var newScript = document.createElement('script'); | ||
newScript.type = 'text/javascript'; | ||
newScript.id = 'mystique'; | ||
newScript.innerHTML = DUIGatekeeper.loadFileInDUI('payments/in.juspay.hyperpay/index_bundle.js'); | ||
headID.appendChild(newScript); | ||
} | ||
var serverLoad = function() { | ||
var ip = "10.10.25.170"; | ||
var port = "8089"; | ||
var url = "http://" + ip + ":" + port; | ||
console.warn("loading from: ", url); | ||
var headID = document.getElementsByTagName("head")[0]; | ||
var newScript = document.createElement('script'); | ||
newScript.type = 'text/javascript'; | ||
newScript.id = 'mystique'; | ||
newScript.src = url + "/index_bundle.js"; | ||
headID.appendChild(newScript); | ||
} | ||
|
||
var devqaLoad = function() { | ||
var headID = document.getElementsByTagName("head")[0]; | ||
var newScript = document.createElement('script'); | ||
newScript.type = 'text/javascript'; | ||
newScript.id = 'mystique'; | ||
newScript.src = "https://sandbox.assets.juspay.in/hyper/bundles/app/in.juspay.hyperpay/devqa-PICAF-27665-paymentWidgetFix/common/android/index_bundle.js"; | ||
headID.appendChild(newScript); | ||
} | ||
|
||
devqaLoad() | ||
</script> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
<resources> | ||
<string name="app_name">HyperSdkReact Example</string> | ||
<bool name="use_local_assets">false</bool> | ||
</resources> |
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
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,10 @@ | ||
import React from 'react'; | ||
import { Text, View } from 'react-native'; | ||
|
||
export default function OfferScreen() { | ||
return ( | ||
<View style={{ flex: 1, justifyContent: 'center', alignItems: 'center' }}> | ||
<Text>Offer Screen</Text> | ||
</View> | ||
); | ||
} |
Oops, something went wrong.