Opening your browser to the following URL: https://example.com/api/request should return a JSON response with a payment request.You can also test this using curl command:
curl https://example.com/api/request
You’re looking for the data.invoice.request property in the JSON response. It starts with lnbc1 and is the payment request anyone in the Bitcoin Lightning Network can use to pay you.
Charges and payment requests are usually shown to users as QR codes that can be scanned by mobile apps (e.g. ZBD). Read Callbacks to understand how to receive updates about your payment asynchronously.
Opening your browser to the following URL: https://project-name.vercel.app/api/request should now return this in production.You can also test this using curl command: