mirror of
https://github.com/zoo-labs/zoo.git
synced 2026-11-10 22:32:34 +00:00
30 lines
907 B
TypeScript
30 lines
907 B
TypeScript
// Next.js API route support: https://nextjs.org/docs/api-routes/introduction
|
|
|
|
import MoonPayBtn from "components/Moonpaybtn/MoonpayBtn";
|
|
|
|
export default async function moonpay(req, res) {
|
|
const { address } = await req.body;
|
|
|
|
const MonComp = ` <iframe
|
|
allow="accelerometer; autoplay; camera; gyroscope; payment"
|
|
height="100%"
|
|
src="https://buy-sandbox.moonpay.com?apiKey=pk_test_gmMP8EXajK6LPecrHyUOyvvksZNrPbG¤cyCode=bnb"
|
|
width="100%"
|
|
>
|
|
<p>Your browser does not support iframes.</p>
|
|
</iframe>s`;
|
|
|
|
// console.log(email);
|
|
|
|
// console.log("MAKING REQUEST NOW");
|
|
// console.log("___________-----------_______");
|
|
//if (req.method === "POST") {
|
|
// Process a POST request
|
|
|
|
// } else {
|
|
// Handle any other HTTP method
|
|
//}
|
|
|
|
res.send(MonComp);
|
|
}
|