#Dominweb
1 messages · Page 1 of 1 (latest)
Hi there!
I'm not sure I understand your question.
You have an issue creating refunds?
What's the error message your get? Can you share the request ID (req_xxx)? You can find it here https://dashboard.stripe.com/test/logs
Request req_8CKt7T89QjqgNR: Cannot reverse transfer on charge ch_3MxpoSBhQoJBzr0n1Ht0KfHQ because it does not have an associated transfer.
pay = stripe.Charge.create(
amount=price,
currency="eur",
source="tok_visa",
description="Primera prueba",
)
stripe.Refund.create(
charge=pay['id'],
amount=price,
metadata={'descripcion': 'Prueba devolución'},
reason="requested_by_customer",
refund_application_fee=True,
reverse_transfer=True,
)
this is the error and also my code
I am with test credentials
is there a particular reason why you are passing reverse_transfer: "True"?
same for refund_application_fee?
if not simply do the request again without these two params
perfect thanks, is there a way to withhold payments for more than 7 days?
Can I list external bank accounts through the api?
It asks me for a customer id but I don't know where to find it in the panel
you simply cancel the PaymentIntent by this api call
https://stripe.com/docs/api/payment_intents/cancel
But you can't configure this automatically after 7 days, you need to schedule this in your integration.
You need to pass the Connected Account Id (aka acct_)
https://stripe.com/docs/api/external_accounts