alexco888
Member
Hi!
I hope you are great!
I just found this information about how to embed a Checkout Page with traditional HTML: https://forum.pabbly.com/threads/em...ur-website-button-a-step-by-step-guide.12097/
Can somebody in here help me understand how to do that in my Next.js application? I am using Next.js 14 (using App router).
Right now I have this code in my layout.tsx:
Nevertheless in my Pricing.tsx component (where I want to have a button that opens the popup checkout page) I receive an error: open_center_popup is not defined when I try to follow the instructions of the provided URL.
Thank you very much for your support!
I hope you are great!
I just found this information about how to embed a Checkout Page with traditional HTML: https://forum.pabbly.com/threads/em...ur-website-button-a-step-by-step-guide.12097/
Can somebody in here help me understand how to do that in my Next.js application? I am using Next.js 14 (using App router).
Right now I have this code in my layout.tsx:
JavaScript:
/* eslint-disable @next/next/inline-script-id */
import type { Metadata } from 'next';
import { Inter } from 'next/font/google';
import './globals.css';
import Script from 'next/script';
const inter = Inter({ subsets: ['latin'] });
export const metadata: Metadata = {
title: '',
description:'',
};
export default function RootLayout({
children,
}: {
children: React.ReactNode;
}) {
return (
<html lang='en'>
<body className={inter.className}>
{children}
<Script src='https://payments.pabbly.com/api/checkout/popup-checkout.js' />
</body>
</html>
);
}
Thank you very much for your support!