Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve Greenfield API example with Node.js (JavaScript) #1404

Open
spacekestrel opened this issue May 21, 2024 · 3 comments
Open

Improve Greenfield API example with Node.js (JavaScript) #1404

spacekestrel opened this issue May 21, 2024 · 3 comments

Comments

@spacekestrel
Copy link

I could not find the information I was looking for on the "Greenfield API example with Node.js (JavaScript)" page (/Development/GreenFieldExample-NodeJS/).

info about payouts

@ndeet
Copy link
Contributor

ndeet commented May 22, 2024

Hey, what are you looking for. The examples cover some most used cases. Also you would not create a payout but a pull payment for refunds and that example is covered. If you want to create payouts nevertheless you can look at the api docs here or if you want to create a transaction you can look here.

@spacekestrel
Copy link
Author

Hey, what are you looking for. The examples cover some most used cases. Also you would not create a payout but a pull payment for refunds and that example is covered. If you want to create payouts nevertheless you can look at the api docs here or if you want to create a transaction you can look here.

well, basically in my app users should be able to request payout, based on amount of money they have in app's wallet. And withdrawal should be automated. is it pull payment or payout?

@ndeet
Copy link
Contributor

ndeet commented May 27, 2024

You create a pull payment and the api will return you a link, you can give this link to your users where they can enter their on-chain or LN invoice to redeem the funds. The payout processor (if configured) can then automatically do the payout.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants