#victory_webhooks

1 messages ¡ Page 1 of 1 (latest)

green ironBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1357693649324085480

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

chrome yarrow
#

Hello

#

Hi again

#

On stripe side issuing_authorization.request is sent

#

Then issuing_authorization.updated request

#

Then issuing_authorization.created request

#

right?

silk ravine
#

issuing_authorization.request is the webhook notification you should respond to to approve/reject the authorization.

chrome yarrow
#

I want to approve or reject when I receive issuing_authorization.updated

#

Because when I receive issuing_authorization.request the balance is always 0

#

So I coundn't decide

#

How can I get issuing_authorization.updated request

#

Now I get only issuing_authorization.request and issuing_authorization.created request

silk ravine
#

What balance?

chrome yarrow
#

I mean amount

silk ravine
#

approve/reject is only done on issuing_authorization.request, not any other event type

silk ravine
chrome yarrow
#

git push --set-upstream origin main

#

As you can see amount is always 0

silk ravine
#

Could you please copy and paste the Event ID?

chrome yarrow
#

And created request I can see amount

#

evt_1RA99oG1afQmztKRp2UELxvd

#

Here please

chrome yarrow
#

Ah ok thanks

#

One more question

#

After it is approved why I can't receive issuing_transaction.created request

#

It's remaing with pending

silk ravine
#

Receive where?
What do you mean by "remaining with pending"?

chrome yarrow
#

here and I didn't receive issuing_transaction.created request

silk ravine
#

It seems like the request was not approved successfully, so the transaction didn't go through.

chrome yarrow
#

ah one more question

#

How to approve when I receive request

#

$stripe->issuing->authorizations->approve($authorization->id, []);

#

This is my code and I can see this error now

#

"Unrecognized request URL (POST: /v1/issuing/authorizations/iauth_1RA9jVG1afQmztKR21wMroUn/approve). Please see https://stripe.com/docs or we can help at https://support.stripe.com/. (Hint: The feature you are trying to use is deprecated.)",

Explore our guides and examples to integrate Stripe.

#

In php how to approve when I get issuing_authorization.request request

green ironBOT
silk ravine
chrome yarrow
#

return response()->json(['approved' => true], 200);

#

This is good ?

silk ravine
#

Does it work?

chrome yarrow
#

I am nor sure

ruby iris
#

Can you share the new event ID for that authorization request?

chrome yarrow
#

evt_1RA9y0G1afQmztKRhFQOpoup

#

Here please

ruby iris
#

You need to include a Stripe-Version header in your response

chrome yarrow
#

Could you please send me sample one on php?

ruby iris
#

The example just below includes this

chrome yarrow
#

Sample php code for approve response

ruby iris
#

using header() to write the header

#

You'll need to adapt that your for server/env

chrome yarrow
#

ok let me try now

#

This is version?

#

stripe version?

#

or I have to remove acacia?

#

Now it's ok

#

But why it's pending always?

ruby iris
#

Can you share the latest auth event ID again?

chrome yarrow
#

evt_1RAADtG1afQmztKRh4qj8osC

#

Here please

ruby iris
#

Yep, that looks like you successfully responded to approve it

chrome yarrow
#

Yes I think so but why I can't get issuing_transaction.created request for this

ruby iris
#

After authorization is approved, you need to create a capture

#

Please read the Testing docs completely, they show the entire sequence

#

You can do this in the dashboard, as shown, or via the API test helpers:

stripe->testHelpers->issuing->authorizations->capture(
  '{{AUTHORIZATION_ID}}',
  []
);
chrome yarrow
#

On production it is no needed?

ruby iris
#

In a live scenario it would depend what the other party is doing, when/how they capture the payment

#

but mostly yes, this is onyl something you need to do in test mode. In live mode this is out of your control.

chrome yarrow
#

I mimite that user use my issuing card

chrome yarrow
ruby iris
#

yes

chrome yarrow
#

ok let me try