#Anton K
1 messages · Page 1 of 1 (latest)
Hey! Can you please clarify what you mean by:
by connected to server accounts by stripe OAuth? server connected with stripe
1 server give link like https://connect.stripe.com/oauth/authorize?response_type=code&client_id=${STRIPE_CLIENT_ID}&scope=read_write
2 client after this link come to server with link with code like ac_Km5i6Qhz7mgN...
3 send this code to server
after i authenticate it via
const clientAcc = await stripe.oauth.token({
grant_type: 'authorization_code',
code,
});
and remember this user (clientAcc ) in db
4 my question is how i can create invoice/charge/PaymentIntent to someone by this account (clientAcc )
Ah, got it! So you're working with standard connected accounts, you'll want to look at direct charges: https://stripe.com/docs/connect/direct-charges
Specifically the Stripe-Account header/parameter: https://stripe.com/docs/connect/authentication
oh ty!
docu is so confusing
How come? Anything I can help clarify?
no tnx
i mean
when i found info docu was so confusing.
Got it. Let me know if you have any other questions!
Yes i have)
after creation PaymentIntent (https://stripe.com/docs/api/payment_intents/create)
how does the user (unregistered user) who was invoiced know about it?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
i see info in Confirm a PaymentIntent
in response
"receipt_url": "https://pay.stripe.com/receipts/acct_1032D82eZvKYlo2C/ch_1EXUPv2eZvKYlo2CStIqOmbY/rcpt_F1XUd7YIQjmM5TVGoaOmzEpU0FBogb2",
"refunded": false,
"refunds": {
"object": "list",
"data": [],
"has_more": false,
"url": "/v1/charges/ch_1EXUPv2eZvKYlo2CStIqOmbY/refunds"
},
With Payment Intents your user is normally on-session in a checkout flow. You'd create the Payment Intent, then collect payment details from them to complete payment
thanx
There's a good introduction guide here: https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=elements