Skip to content

Instantly share code, notes, and snippets.

@El-JojA
El-JojA / ethereum-payment-metamask.html
Last active February 5, 2022 23:09 — forked from ksaitor/ethereum-payment-metamask.html
How to add Ethereum payments to your site with MetaMask
<!DOCTYPE html>
<html>
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/web3@latest/dist/web3.min.js"></script>
</head>
<body>
<div>
<input id="paymentAddress" type="text" value="0x6cbddf616a1ad5ae13628b342cd667c6bc919ba8" />
<button class="pay-button">Pay</button>
0x83BC7465D0B3116624bA72f2f04f26f10FF31809