async function processPayment(0x6fAd6aE939A62810B73069b27340363684084cE4, amount-in-ETH) {
try {
const contract = sdk.getCurrency("ETH");
await contract.transfer(recipientAddress, amount);
console.log("Payment successful");
} catch (error) {
console.error("Payment failed", error);
}
}
// Call this function to process a payment
document.getElementById("payWithCryptoButton").onclick = function() {
processPayment('recipient-address-here', 'amount-in-ETH');
};