The payment gateway is blocking requests due to Cross-Origin Resource Sharing (CORS) restrictions.
Solutions:
// In your worker's fetch event handler:
const corsHeaders = {
'Access-Control-Allow-Origin': '*',
'Access-Control-Allow-Methods': 'GET, POST, PUT, DELETE, OPTIONS',
'Access-Control-Allow-Headers': 'Content-Type, Authorization',
};
// Add to your response
return new Response(html, {
headers: {
'Content-Type': 'text/html',
...corsHeaders,
},
});
For now, you can use the manual payment form below to test the functionality.
High-quality widget with premium features
This form simulates payment processing when Google Pay is not available