#pollux - connect account refund
1 messages ยท Page 1 of 1 (latest)
Hello! Just starting a thread for you -- I'll review and respond as soon as I can ๐
Can you share the erroring request ID?
It looks like you created that payment intent via a checkout session using a direct charge pattern
In which case reverse_transfer doesn't apply, though you might want refund_application_fee (but that's up to you)
https://stripe.com/docs/connect/direct-charges#issuing-refunds
And this is unrelated to the "no such payment intent" error -- still looking at that ๐
Yea i suspect the account id might be wrong too, which is what i was going to check with the request ID
yeah the id was wrong
now I get this
raw: {
message: 'Cannot reverse transfer on charge ch_3L04tpSCfUurJJiW1OnaehGH because it does not have an associated transfer.',
type: 'invalid_request_error',
I have to specify the full amount right?
No, its fine, but see my note above
this ๐
NP!
(you can specify the amount optionally, if you want to refund less than the full charge)
This thread has been archived. If you need help with anything else please ask in #dev-help or contact Stripe Support: https://support.stripe.com/contact
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
HI
Hi @balmy slate ๐ I'm taking over for synthrider. How can I help?
As Syntrider suggested I should use that api and pass in the chargeId
but how do I get the chargeId?
I have the paymentIntent Id lisning to checkout.session.completed
and then when I try to retirve the data from paymentIntent
i get this error
raw: {
code: 'resource_missing',
doc_url: 'https://stripe.com/docs/error-codes/resource-missing',
message: "No such payment_intent: 'pi_3L065VSCfUurJJiW0wWsS2We'",
The charge ID will be on the Payment Intent, but you don't need it to create a refund. You can pass the Payment Intent ID to create a refund: https://stripe.com/docs/api/refunds/create#create_refund-payment_intent
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Ohh I did that, but I get an error for that too
message: 'Cannot reverse transfer on charge ch_3L04tpSCfUurJJiW1OnaehGH because it does not have an associated transfer.',
type: 'invalid_request_error',```
So you can't refund a charge using refund_application_fee: true and stripeAccount: '{{CONNECTED_STRIPE_ACCOUNT_ID}}' if there is not an associated transfer. You have to create the transfer first.
If you just want to refund the charge to the customer, you can do that without those parameters