#Anton K

1 messages · Page 1 of 1 (latest)

fresh forum
#

Hey! Can you please clarify what you mean by:

by connected to server accounts by stripe OAuth? server connected with stripe

frigid edge
#

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 )

fresh forum
frigid edge
#

oh ty!

docu is so confusing

fresh forum
#

How come? Anything I can help clarify?

frigid edge
#

no tnx

i mean

when i found info docu was so confusing.

fresh forum
#

Got it. Let me know if you have any other questions!

frigid edge
#

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"
    },
fresh forum
frigid edge
#

thanx

fresh forum