#Proteus

1 messages ยท Page 1 of 1 (latest)

storm latchBOT
paper oracle
#

Hello @serene cloak.

#

I am new to SDK's and API integration ๐Ÿ˜ฆ

serene cloak
#

Hello ๐Ÿ‘‹
I am not sure if we have any docs that compare the differences comprehensively.
Are you building a new integration?

paper oracle
#

Yes. Custom integration.

serene cloak
#

Gotcha. And with Stripe v2 and v3, I believe you're referring to Stripe.js correct?

paper oracle
#

I presume I should be using v3?\

serene cloak
paper oracle
#

Ok. Once I have a "successful" payment, how can I extract the return data from Stripe? And what data do I get back? Right now I am getting this:

#

/thankyou.html?payment_intent=pi_3MgCjgL7M4NHiqBD1aSNHcPV&payment_intent_client_secret=pi_3MgCjgL7M4NHiqBD1aSNHcPV_secret_TIdZ5IGsOUzSvlYkF2o3KBHRT&redirect_status=succeeded

#

I want to do as much of this as I can using PHP.

#

( as in, I would like to be able to access all returned data via PHP )

serene cloak
#

We typically recommend folks to build a webhook endpoint to receive real-time info on their backend by leveraging webhook events
https://stripe.com/docs/webhooks

With webhook events, you typically get access to the whole PaymentIntent object

paper oracle
#

Do you guys have any recommended instructional videos on setting up these webhooks?

#

Found it right on the page ๐Ÿ˜‰

serene cloak
#

Awesome ๐Ÿ™‚

paper oracle
#

@serene cloak, is there any way to do these things without terminal / composer?

#

Something pre-packaged?

#

I am using PHP to add orders and payments to my DB.

serene cloak
#

You should be able to build the webhook endpoint without the terminal

paper oracle
#

How can I retrieve "success" and a transaction id once payment is successful? And what data do I get back?

#

payment_intent = transaction id?

serene cloak
paper oracle
#

BTW - I don't mean to be a pain in the butt. Like I said, I am a total noob when it comes to API's etc., but once I get a hang of things, I will be integrating Stripe into all my client's websites.

serene cloak
#

NP! ๐Ÿ™‚ Happy to help with any/all questions

paper oracle
#

PaymentIntent object = before payment, correct? This is the data sent to Stripe to process the payment? Then, after the payment is supposed to have been made, you can retrieve the PaymentIntent object to see whether payment was successful? Am I understanding this?

serene cloak
#

I'd recommend reading through them as it would make it much easier to integrate once you understand the PaymentIntent API

paper oracle
#

Will do.

#

Injecting caffeine now.