The following is the ideal flow Zaprite would like to have when using the Ibex Pay API.
Zaprite should have it's own 'partner' API key that we store as an environment variable in our Next JS app.
1. Create public invoices on a user's behalf
| import { NextApiRequest, NextApiResponse } from 'next' | |
| export default async (req: NextApiRequest, res: NextApiResponse) => { | |
| const challenge = req.query.challenge | |
| const LNESCROW_USER = process.env.LNESCROW_USER | |
| const LNESCROW_PSWD = process.env.LNESCROW_PSWD | |
| try { | |
| const response = await ( | |
| await fetch('https://api.satsarcade.com/getsession/', { |
| import { | |
| Box, | |
| Button, | |
| Heading, | |
| HStack, | |
| Image, | |
| Input, | |
| Spinner, | |
| Stack, | |
| Text, |
I hereby claim:
To claim this, I am signing this object:
| Verifying my Blockstack ID is secured with the address 1FDB6yhUhFmD6HYjwxYo8NZPLz3PRxzQhu https://explorer.blockstack.org/address/1FDB6yhUhFmD6HYjwxYo8NZPLz3PRxzQhu |