#gumptiontechnologies

1 messages · Page 1 of 1 (latest)

delicate nymphBOT
rough fern
#

Hi Jack,

Can you help in this regard please?

hardy moon
rough fern
#

Does every invoice have "payment_intent" ID?

hardy moon
#

Yes, except for $0 invoice which payment is not required.

rough fern
#

Alright. Thank a lot my friend.

#

I am checking it

#

Can you check this for me please?

#

I tried a refund with Invoice Intent and it didn't work for me... what is wrong here?

hardy moon
rough fern
hardy moon
rough fern
#

We tried this too ... but it gives the same error

#

$invoiceData = $stripeClientObject->refunds->create(['payment_intent' => $stripeinvoiceid],[],$stripeConnectAccountArray);

hardy moon
#

Can you share with me the request ID?

#

Based on the code that you sent, it seems like you are passing the invoice ID instead of the paymentIntent ID.

rough fern
#

We put a wrong variable name but it has intent id

hardy moon
#

The request ID please?

rough fern
#

$invoiceData = $stripeClientObject->refunds->create(['payment_intent' => "pi_3MODbwRmYo0rJsED0WeYKkV9"],[],$stripeConnectAccountArray);

hardy moon
#

Alternatively, you can also share with me the request_log_url that's returned in the API response.

rough fern
#

req_gRPIVealyiSbJK

hardy moon
#

OK. This paymentIntent was created in your connected account. So you need to specify the stripe_account in the $stripeConnectAccountArray when making an API request for connected account.

You can refer to this doc to learn more about making API request for connected account (https://stripe.com/docs/connect/authentication)

Learn how to add the right information to your API calls so you can make calls for your connected accounts.