// JavaScript for Crypto Payment Integration
document.addEventListener("DOMContentLoaded", function () {
// Replace 'YOUR_API_KEY' with your actual Coinbase Commerce API key
const apiKey = 'YOUR_API_KEY';
// Create a function to initiate the payment
function initiateCryptoPayment() {
CoinbaseCommerceButton.init(apiKey, {
// Customize payment details here
pricingType: 'fixed',
localCurrency: 'USD',
name: 'Your Product',
description: 'Product Description',
pricing: {
USD: 10.00, // Set the price in USD
},
});
}
// Call the function to initiate the payment
initiateCryptoPayment();
});