#SamZepo - Subscriptions

1 messages · Page 1 of 1 (latest)

native island
#

Hello! Can you give me the ID of a Payment Intent that returned a 200 but was unsuccessful?

compact ether
#

Sure

#

in_1JdGqjIijQMzpdJSxBAFyh70

native island
#

That's an Invoice ID, not a Payment Intent ID. Can you clarify if this is an issue with Invoices?

#

Invoices generate Payment Intents, but you can also create Payment Intents directly without using Invoices. I just want to make sure i fully understand your question/scenario.

compact ether
#

Where can I get the Payment intent ID?

#

I think I found it

#

pi_3JdGqjIijQMzpdJS195rFIkW

native island
#

I can get to the Payment Intent ID from these other objects, but I don't think I fully understand your scenario.

#

Can you give me the request ID for the request giving you the 200 you don't expect if it's not the same as the request I linked to above?

compact ether
#

Ok, let me try to explain again. Give one second

#

At this time, when the user clicks checkout from my system, the payment intent is sent to Stripe.
In many cases Stripe returns 400 if the process fails; whether due to the bank, insufficient funds, etc.
But as many times Stripe returns 200, but seconds later it sends the cancellation of the same account through the webhook; since the bank did not approve or there is not funds.

I don't understand why sometimes it returns 400 and other times returns 200. The ideal for me would be that I always answer 200 when the payment was made successfully.

native island
#

One where it was canceled later.

compact ether
#

Ok, let me find it

#

pi_3JdGqjIijQMzpdJS195rFIkW

native island
#

That's a Payment Intent ID. I'm looking for the specific request ID (starts with req_) that shows the 200 response you're talking about.

#

I think it's req_BLzQIC9oJOYJ9k, but can you confirm that?

#

That's the same request I linked to above.

compact ether
#

req_BLzQIC9oJOYJ9k

native island
compact ether
#

Ok, ok

native island
#

SamZepo - Subscriptions

compact ether
#

So, If the subscription was created is the reason I get 200?

native island
#

Yeah, the Subscription was created successfully, it just hasn't been paid yet.

#

That specific 200 indicates successful creation, not that you got paid.

compact ether
#

So, we have to wait all process to create a denial the access, right?

native island
#

Subscriptions are somewhat complex; I strongly recommend reading through the docs I linked above.

#

If you don't fully understand how Subscriptions work you won't be able to build an integration that works correctly.

compact ether
#

Ok ok; let me check the articles you shared with me

#

If I have more question I'll get back