APP ID
Secret Key
Elysium X
UPI Collect

Elysium X

₹90.00

The Elysium X is a phone like no other, breaking free from the traditional notion of making calls. It transcends the limitations of voice communication, inviting you to explore a world of boundless possibilities. Instead of focusing on calls, this visionary device opens up a realm of creativity, productivity, and connectivity that will leave you awe-inspired.

You will need a payment_session_id to try out this code. Search for yourPaymentSession and replace with yours.

1
<!DOCTYPE html>
2
<html lang="en">
3
	
4
	<head>
5
		<meta charset="UTF-8">
6
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
7
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
8
		<title>Document</title>
9
		<script src="https://sdk.cashfree.com/js/v3/cashfree.js"></script>
10
	</head>
11

12
	<body>
13
	<div id="upiID"></div>
14
	<input type="button" id="payBtn" value="Pay" />
15
	<script>
16
		
17
		const cashfree = await load({ 
18
			mode: "sandbox", //or production
19
		});
20

21
		const upiID = cashfree.create("upiCollect", {});
22
		upiID.mount("#upiID");
23

24
		const showError = function(e){
25
			alert(e.message)
26
		}
27

28
		document.querySelector("#payBtn").addEventListener("click", async () => {
29
			cashfree.pay({
30
				paymentMethod: upiID,
31
				paymentSessionId: "yourPaymentSession",
32
				returnUrl: "https://merchantsite.com/return?order_id={order_id}",
33
			}).then(function (data) {
34
				if (data != null && data.error) {
35
					return showError(data.error)
36
				}
37
			});
38
		})
39
		</script>
40
	</body>
41
</html>
42

The site is built using the Brutopia theme. Get it for free here