Okay, so now the product has been created and you have all the necessary keys to create a link. Now, you just need to send the customer to the link.

There are a few options for how to redirect the user and they all work.

The choice is completely up to you.

Now, send the user to checkout.

Do not open in a new window or new tab.

window.location.href = `https://pay.queye.co/?v=VENDOR_KEY&p=${PRODUCT_KEY}`;
header("Location: https://pay.queye.co/?v=VENDOR_KEY&p=$product_key");
exit;
print(f"<script>window.location.href = 'https://pay.queye.co/?v=VENDOR_KEY&p={product_key}';</script>")
puts "<script>window.location.href = 'https://pay.queye.co/?v=VENDOR_KEY&p=#{product_key}'</script>"
res.writeHead(302, {
  "Location": `https://pay.queye.co/?v=VENDOR_KEY&p=${product_key}`
});
res.end();

The user will now complete the checkout and be sent back to your return URL, if one was specified. And, that's it. You're done!