· 4 years ago · Oct 27, 2020, 11:04 AM
1<!DOCTYPE html>
2 <html>
3 <body>
4
5 <script>
6 window.ReactNativeWebView.postMessage("TEST 1");
7 </script>
8
9 <h1>Hello world 4</h1>
10
11 <script>
12 window.ReactNativeWebView.postMessage("TEST 2");
13 </script>
14
15 <script src="https://live.paytabs.net/theme/express_checkout/js/jquery-1.11.1.min.js"></script>
16
17 <script>
18 window.ReactNativeWebView.postMessage("TEST 3");
19 </script>
20
21 <script src="https://live.paytabs.net/express/express_checkout_v3.js"></script>
22
23 <script>
24 window.ReactNativeWebView.postMessage("TEST 4");
25 </script>
26
27 <script>
28
29 window.Paytabs('#express_checkout').expresscheckout(
30 {
31 customer_info: {
32 country_code: '971',
33 email_address: 'hassaballah.amr+p1@gmail.com',
34 first_name: '',
35 last_name: '',
36 phone_number: '111111',
37 },
38
39 settings: {
40 amount: '1',
41 currency: 'AED',
42 display_billing_fields: 1,
43 display_customer_info: 1,
44 display_shipping_fields: 0,
45 is_iframe: { load: 'onbodyload', show: 1 },
46 is_preauth: 1,
47 is_self: 0,
48 language: 'en',
49 merchant_id: '10056163',
50 order_id: '2128d911-fb0e-4881-94e0-1ca8b6ed06dc|hassaballah.amr+p1@gmail.com|/account/signup/welcome',
51 product_names: 'Attach Card',
52 redirect_on_reject: 0,
53 secret_key: 'urm2XOiKbjEGjz0UtpkZfKWKITPHkigOKCRHq9rBt6hMGiG9H18XL4IuYxciQs7A4Yhv8J6BQoowG4Fo6OmRT4mRCy9s0h25fkAn',
54 style: { css: 'custom', linktocss: 'https://drive.google.com/u/0/uc?id=1fIEHxFnwFxR0wlz8fpqk96nIhR99oXjV&export=download' },
55 title: 'Attaching Card',
56 tokenization: { is_tokenization: 1 },
57 url_redirect: 'https://api.dev.spotii.me/api/v1.0/paytabs/callback/',
58
59 },
60 }
61 );
62
63 window.ReactNativeWebView.postMessage("TEST 5");
64
65 </script>
66
67 <script>
68 window.ReactNativeWebView.postMessage("TEST 6");
69 </script>
70
71 <div className="PT_express_checkout" />
72 </body>
73 <html>