#nathan9745354-cli
1 messages · Page 1 of 1 (latest)
I am using Share payment link and CLI login with my vps
- The VPS does not have any browser.
- When I close the putty the listening is closed
I want to the command could listening the event when putty was closed
@rough portal Hmmm I'm not sure I grasp what you are doing. Why do you use the CLI on a remote server? It's uncommon and is usually just to test events locally
Thank Koopajah
Firstly Let me describe my situation.
I want using shared payment link for customers.
what is "shared payment link"?
I need collect the event to my vps and then API to extract the event to create the account
Okay so you absolutely shouldn't be using the CLI
the CLI is just for Test mode/debugging
you need to write code that responds to events, your server is "public" and Stripe would send events to it directly
there's a lot more to it than just a webhook.php file unfortunately
you might want to hire a freelancer to help you build this
I am a developer but not familiarly with stripe
gotcha, so you would write code in PHP based on the docs above
yes that means you code gets the event and responds a 200
the payment success event
I'm worried you might not understand how webhooks work, are you familiar with those? There's no browser involved anywhere
oh I can forward to my webhook.site
but that VPS should be your website and code
You configure a webhook endpoint in your account to point to the code on your app that handles webhook
it doesn't have to be webhook.php yes, it's just whatever your own code expects
of course, ask away!
um..
The website have a database for account
When user opened the payment link
the payment link even don't know which user account is login.
I need the payment.intent.success event have some character to match the user account
how to do that?
that's not really possible, the whole point of PaymentLink is no code, you just go to the payment and pay and the link works for everyone