1.remove demo web
This commit is contained in:
106
App.tsx
106
App.tsx
@@ -630,113 +630,7 @@ export default class App extends Component<AppProps, WalletmanAppState> {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
renderWebDemo() {
|
|
||||||
const handleMessage = (event: any) => {
|
|
||||||
try {
|
|
||||||
const data = JSON.parse(event.nativeEvent.data);
|
|
||||||
if (data.type === 'iframe_message') {
|
|
||||||
console.log('[Demo] iframe message:', data.data);
|
|
||||||
}
|
|
||||||
} catch (e) {
|
|
||||||
console.error('[Demo] Parse error:', e);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
const syncToIframe = (fieldId: string, value: string) => {
|
|
||||||
const js = `
|
|
||||||
window.postMessage({
|
|
||||||
type: 'set_field',
|
|
||||||
fieldId: '${fieldId}',
|
|
||||||
value: '${value.replace(/'/g, "\\'")}'
|
|
||||||
}, '*');
|
|
||||||
`;
|
|
||||||
this.webViewRef?.injectJavaScript(js);
|
|
||||||
};
|
|
||||||
|
|
||||||
const clickLogin = () => {
|
|
||||||
const js = `window.postMessage({type: 'click_login'}, '*');`;
|
|
||||||
this.webViewRef?.injectJavaScript(js);
|
|
||||||
};
|
|
||||||
|
|
||||||
const injectedJS = `
|
|
||||||
window.addEventListener('message', function(event) {
|
|
||||||
window.ReactNativeWebView.postMessage(JSON.stringify({
|
|
||||||
type: 'iframe_message',
|
|
||||||
data: event.data
|
|
||||||
}));
|
|
||||||
});
|
|
||||||
true;
|
|
||||||
`;
|
|
||||||
|
|
||||||
return (
|
|
||||||
<View style={{flex: 1}}>
|
|
||||||
<WebView
|
|
||||||
ref={(ref) => { this.webViewRef = ref; }}
|
|
||||||
source={{ uri: 'https://dashboard.paytm.com' }}
|
|
||||||
javaScriptEnabled={true}
|
|
||||||
domStorageEnabled={true}
|
|
||||||
thirdPartyCookiesEnabled={true}
|
|
||||||
sharedCookiesEnabled={true}
|
|
||||||
onMessage={handleMessage}
|
|
||||||
injectedJavaScript={injectedJS}
|
|
||||||
interceptUrlPattern="accounts.paytm.com/oauth-js-sdk/"
|
|
||||||
interceptInjectedScript={`
|
|
||||||
if (!window.__paytmMessageHandler) {
|
|
||||||
window.__paytmMessageHandler = function(event) {
|
|
||||||
if (event.data.type === 'set_field') {
|
|
||||||
const el = document.getElementById(event.data.fieldId);
|
|
||||||
if (el) {
|
|
||||||
el.click();
|
|
||||||
el.focus();
|
|
||||||
el.value = event.data.value;
|
|
||||||
el.dispatchEvent(new Event('input', { bubbles: true }));
|
|
||||||
el.dispatchEvent(new Event('change', { bubbles: true }));
|
|
||||||
el.dispatchEvent(new Event('blur', { bubbles: true }));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (event.data.type === 'click_login') {
|
|
||||||
const btn = document.getElementById('login_button');
|
|
||||||
if (btn) btn.click();
|
|
||||||
}
|
|
||||||
};
|
|
||||||
window.addEventListener('message', window.__paytmMessageHandler);
|
|
||||||
window.parent.postMessage({type: 'iframe_ready'}, '*');
|
|
||||||
}
|
|
||||||
`}
|
|
||||||
/>
|
|
||||||
|
|
||||||
<View style={{padding: 20, backgroundColor: '#f5f5f5', borderTopWidth: 1, borderTopColor: '#ddd'}}>
|
|
||||||
<Text style={{fontSize: 16, fontWeight: 'bold', marginBottom: 10}}>Test Controls</Text>
|
|
||||||
|
|
||||||
<Text style={{marginTop: 5}}>Mobile:</Text>
|
|
||||||
<TextInput
|
|
||||||
style={{borderWidth: 1, borderColor: '#ccc', padding: 10, borderRadius: 5, backgroundColor: '#fff', marginTop: 5}}
|
|
||||||
onChangeText={(text) => syncToIframe('email_mobile_login', text)}
|
|
||||||
placeholder="Enter mobile number"
|
|
||||||
keyboardType="phone-pad"
|
|
||||||
/>
|
|
||||||
|
|
||||||
<Text style={{marginTop: 10}}>Password:</Text>
|
|
||||||
<TextInput
|
|
||||||
style={{borderWidth: 1, borderColor: '#ccc', padding: 10, borderRadius: 5, backgroundColor: '#fff', marginTop: 5}}
|
|
||||||
onChangeText={(text) => syncToIframe('password_login', text)}
|
|
||||||
placeholder="Enter password"
|
|
||||||
secureTextEntry
|
|
||||||
/>
|
|
||||||
|
|
||||||
<TouchableOpacity
|
|
||||||
style={{marginTop: 15, backgroundColor: '#00BAF2', padding: 15, borderRadius: 5, alignItems: 'center'}}
|
|
||||||
onPress={clickLogin}
|
|
||||||
>
|
|
||||||
<Text style={{color: '#fff', fontSize: 16, fontWeight: 'bold'}}>Login</Text>
|
|
||||||
</TouchableOpacity>
|
|
||||||
</View>
|
|
||||||
</View>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
// return this.renderWebDemo();
|
|
||||||
return (
|
return (
|
||||||
<View style={styles.container}>
|
<View style={styles.container}>
|
||||||
{(() => {
|
{(() => {
|
||||||
|
|||||||
Submodule libs/rnwalletman updated: ec1f7a1bd3...7d3770f6a9
247
logs/phonepe_business/logsrv_2026-03-12_18-36-04_341.har
Normal file
247
logs/phonepe_business/logsrv_2026-03-12_18-36-04_341.har
Normal file
@@ -0,0 +1,247 @@
|
|||||||
|
{
|
||||||
|
"log": {
|
||||||
|
"version": "1.2",
|
||||||
|
"creator": {
|
||||||
|
"name": "pxlogserver",
|
||||||
|
"version": "1.0"
|
||||||
|
},
|
||||||
|
"entries": [
|
||||||
|
{
|
||||||
|
"startedDateTime": "2026-03-12T10:36:04.847032Z",
|
||||||
|
"time": 120,
|
||||||
|
"pageref": "ProxyPin",
|
||||||
|
"_id": 341,
|
||||||
|
"_app": {
|
||||||
|
"id": "com.android.browser",
|
||||||
|
"name": "浏览器",
|
||||||
|
"path": "com.android.browser",
|
||||||
|
"os": "android"
|
||||||
|
},
|
||||||
|
"request": {
|
||||||
|
"method": "GET",
|
||||||
|
"url": "https://web-api.phonepe.com/apis/mi-web/v1/user/me",
|
||||||
|
"httpVersion": "HTTP/1.1",
|
||||||
|
"cookies": [],
|
||||||
|
"headers": [
|
||||||
|
{
|
||||||
|
"name": "Host",
|
||||||
|
"value": "web-api.phonepe.com"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Connection",
|
||||||
|
"value": "keep-alive"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "sec-ch-ua-platform",
|
||||||
|
"value": "\"Android\""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "sec-ch-ua",
|
||||||
|
"value": "\"XiaoMiBrowser\";v=\"135\", \"Not-A.Brand\";v=\"8\", \"Chromium\";v=\"135\""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "X-DEVICE-FINGERPRINT",
|
||||||
|
"value": "123"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "FINGERPRINT",
|
||||||
|
"value": "pbweb_640eaee84ba269f8d2a5ae6cc30b4c70_znXfL.pbweb_640eaee84ba269f8d2a5ae6cc30b4c70_znXfL.pbweb_640eaee84ba269f8d2a5ae6cc30b4c70_znXfL.pbweb_640eaee84ba269f8d2a5ae6cc30b4c70_znXfL"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "sec-ch-ua-mobile",
|
||||||
|
"value": "?1"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "X-APP-ID",
|
||||||
|
"value": "oculus"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "X-SOURCE-TYPE",
|
||||||
|
"value": "WEB"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "User-Agent",
|
||||||
|
"value": "Mozilla/5.0 (Linux; U; Android 12; zh-cn; M2004J7AC Build/SP1A.210812.016) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.7049.79 Mobile Safari/537.36 XiaoMi/MiuiBrowser/20.13.1040306"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Accept",
|
||||||
|
"value": "application/json, text/plain, */*"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "NAMESPACE",
|
||||||
|
"value": "insights"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "X-SOURCE-PLATFORM",
|
||||||
|
"value": "WEB"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Origin",
|
||||||
|
"value": "https://business.phonepe.com"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Sec-Fetch-Site",
|
||||||
|
"value": "same-site"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Sec-Fetch-Mode",
|
||||||
|
"value": "cors"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Sec-Fetch-Dest",
|
||||||
|
"value": "empty"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Referer",
|
||||||
|
"value": "https://business.phonepe.com/"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Accept-Encoding",
|
||||||
|
"value": "gzip, deflate, br, zstd"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Accept-Language",
|
||||||
|
"value": "zh-CN,zh;q=0.9,en-US;q=0.8,en;q=0.7"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Cookie",
|
||||||
|
"value": "_ppabwdcid=ZXlKaGJHY2lPaUpJVXpVeE1pSjkuZXlKcGMzTWlPaUpRYUc5dVpWQmxSMkZ5Wm1sbGJHUWlMQ0pxZEdraU9pSTJNREJsWWpjMVl5MDVZalV4TFRReU4yUXRPR1U1TlMxa01ETXpNekF5Tnprek5EUWlMQ0pwWVhRaU9qRTJOekUyTURReU5ERXNJbTVpWmlJNk1UWTNNVFl3TkRFeU1Td2ljM1ZpSWpvaVFsVlRTVTVGVTFOZlYwVkNYMFJCVTBoQ1QwRlNSQ0lzSW5KdmJHVWlPaUpwYm1kbGMzUWlmUS5rdkcxQUJCNGJpcnVQSllRektFa1NYME9sUlBINVFDNW9tX2k5Mm9CNG9mV25vV0c4eFp3cTMwT1cxdEVCX3J5Zm4wTzhFVUd2MnE5VGlrMUxJaUw4Zw==; _ppabwdsid=c6493b8e-2058-4669-9171-a17a0541bc36; _ppabwduref=PAUREF2603121549252265439926; MERCHANT_USER_A_TOKEN=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJpc3MiOiJpZGVudGl0eU1hbmFnZXIiLCJ2ZXJzaW9uIjoiNC4wIiwidGlkIjoiNTllYmNhYjEtNDZmOC00OGEzLTljOWItMTNlZTAwYjYzZmJlIiwic2lkIjoiNjNlM2FiMmQtNjY0NS00MzdkLWJmY2UtYmM0ZjA4Nzc4MmE5IiwiaWF0IjoxNzczMzExNzY0LCJleHAiOjE3NzMzMTUzNjR9.bW7yftSlX01GjhSvqcyFpcN8uxmvJBT-peZ9ri-0WCnoIcyLOK5k8_UtlDuN2P5BgFcrf8cS8NY4P4QtpE9E5w; MERCHANT_USER_R_TOKEN=9d72bbae-b5f4-41d6-b9a4-4afa91ca21ad; _CKB2N1BHVZ=z47rnRb3g1XTz+98e1LAhEnus7ZUJfsVrV5qt7a4ATfURRXB4baq2Usu5g/jNHof; _X52F70K3N=AwdNjCE22fpARH1oJ9JdkdqajSa4Re09"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"queryString": [],
|
||||||
|
"postData": {
|
||||||
|
"mimeType": "",
|
||||||
|
"text": ""
|
||||||
|
},
|
||||||
|
"headersSize": -1,
|
||||||
|
"bodySize": 0
|
||||||
|
},
|
||||||
|
"cache": {},
|
||||||
|
"timings": {
|
||||||
|
"send": 0,
|
||||||
|
"wait": 120,
|
||||||
|
"receive": 0
|
||||||
|
},
|
||||||
|
"serverIPAddress": "192.168.1.117",
|
||||||
|
"response": {
|
||||||
|
"status": 200,
|
||||||
|
"statusText": "OK",
|
||||||
|
"httpVersion": "HTTP/1.1",
|
||||||
|
"cookies": [],
|
||||||
|
"headers": [
|
||||||
|
{
|
||||||
|
"name": "Date",
|
||||||
|
"value": "Thu, 12 Mar 2026 10:36:04 GMT"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Content-Type",
|
||||||
|
"value": "application/json"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Connection",
|
||||||
|
"value": "keep-alive"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "x-b3-traceid",
|
||||||
|
"value": "2c202a1b0958f77e"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "vary",
|
||||||
|
"value": "Accept-Encoding"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "x-load-shed-actions-signal",
|
||||||
|
"value": "HEALTHY::1773254781000"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "x-load-shed-actions",
|
||||||
|
"value": "eyJ3b3JrZmxvd1J1bGVzIjpbXSwiaGVhbHRoU3RhdHVzIjoiSEVBTFRIWSIsInZlcnNpb24iOiJ2MSIsImFwaVJ1bGVzIjp7ImFwaXMiOltdLCJleHBpcnlUaW1lSW5NaWxsaXMiOjAsInNjb3BlIjoiU0VTU0lPTiJ9LCJ1cGRhdGVkQXQiOjE3NzMyNTQ3ODEwMDB9"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "x-requested-method",
|
||||||
|
"value": "GET"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "x-response-backend-time",
|
||||||
|
"value": "1773311764923"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "x-request-backend-time",
|
||||||
|
"value": "1773311764908"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "x-frame-options",
|
||||||
|
"value": "DENY"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "x-content-type-options",
|
||||||
|
"value": "nosniff"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "x-xss-protection",
|
||||||
|
"value": "1; mode=block"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "strict-transport-security",
|
||||||
|
"value": "max-age=0; includeSubDomains; preload"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "content-security-policy",
|
||||||
|
"value": "default-src 'self'; script-src 'self' 'unsafe-eval' https://www.google.com/recaptcha/ https://www.gstatic.com/recaptcha/; style-src https://fonts.googleapis.com 'unsafe-inline' 'self'; img-src https://imgstatic.phonepe.com 'self' data:; font-src https://fonts.gstatic.com/ 'self' data:; connect-src 'self'; report-uri https://csp.phonepe.com/log; frame-src https://www.google.com/recaptcha/"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "access-control-allow-origin",
|
||||||
|
"value": "https://business.phonepe.com"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "access-control-allow-credentials",
|
||||||
|
"value": "true"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "access-control-allow-methods",
|
||||||
|
"value": "GET, POST, OPTIONS, PUT, DELETE, PATCH"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "access-control-allow-headers",
|
||||||
|
"value": "X-DEVICE-FINGERPRINT, Content-Disposition, DNT, Content-Length , X-USER-ROLE, DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range, Origin, X-Requested-With, Content-Type, Accept, X-APP-ID, X-CSRF-TOKEN, Set-Cookie, NAMESPACE, FINGERPRINT, X-CAPTCHA-TOKEN, x-source-type, x-app-version, x-source-platform, h-captcha-token, X-INSTANCE-ID, X-HANDSHAKE-KEY, X-WORKFLOW-ID"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "access-control-expose-headers",
|
||||||
|
"value": "X-CSRF-TOKEN, X-USER-ROLE, X-API-EXCEPTION-CODE, X-EXPIRED-TOKENS, Content-Length, X-Polling-Time, X-Polling-Frequency"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Content-Encoding",
|
||||||
|
"value": "gzip"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "cf-cache-status",
|
||||||
|
"value": "DYNAMIC"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Server",
|
||||||
|
"value": "cloudflare"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "CF-RAY",
|
||||||
|
"value": "9db227e278c34095-SIN"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Content-Length",
|
||||||
|
"value": "256"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"content": {
|
||||||
|
"size": 256,
|
||||||
|
"mimeType": "application/json",
|
||||||
|
"text": "{\"userId\":\"OU2512180940078380000989\",\"phoneNumber\":\"7528905079\",\"completePhoneNumber\":\"+917528905079\",\"name\":\"7528905079\",\"active\":true,\"emailVerified\":false,\"phoneNumberVerified\":true,\"blacklisted\":false,\"hasPassword\":false,\"groupName\":\"merchant\",\"groupValue\":\"M23UXERUGXJ5M\",\"merchantUserId\":\"MU2512180940084553897430\",\"groupId\":16989846,\"groupStatus\":\"ACTIVE\",\"roleId\":\"R1908081841518350641692\"}"
|
||||||
|
},
|
||||||
|
"redirectURL": "",
|
||||||
|
"headersSize": -1,
|
||||||
|
"bodySize": 256
|
||||||
|
},
|
||||||
|
"_timestamp": "2026-03-12 18:36:04",
|
||||||
|
"_rule": "logsrv"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user