#aksana-_test-refund-failure

1 messages ยท Page 1 of 1 (latest)

jovial geodeBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1256238023155122281

๐Ÿ“ Have more to share? Add details, code, screenshots, videos, etc. below.

vernal bay
#

That section you linked has details to use for refund fails scenario

vale osprey
#

But I didn't received the email that is mentioned in the docs

vernal bay
#

Did you see the note:

In test mode, refund instruction emails are only sent to email addresses linked to the Stripe account.

#

Is that the email you used?

vale osprey
#

Where can I check this email adress?

vernal bay
vale osprey
#

I see the correct emeil adress in my Profile

#

I received 2 emails

#

Here is what I see when I open the link

#

I think these Payment Details were used by default for the refund

#

"funded": {
"bank_transfer": {
"eu_bank_transfer": {
"bic": "COBADEFFXXX",
"iban_last4": "3000",
"sender_name": "Test Sender"
},
"reference": "56",
"type": "eu_bank_transfer"
}
},

vernal bay
#

Hm I see you used the dashboard

#

Not sure what that does under the hood

#

try with the api

#

per the doc above

vale osprey
#

I did:)

#

Same

vernal bay
#

Can you share the payment intent id

vale osprey
#

I just created it

vernal bay
#

You didn't do it the way you do it in the docs

#

You need to specify customer_balance

#

Try that

#

Don't pass a payment method id

#

Do it like the docs shows

vale osprey
vernal bay
#

Don't pass payment intent

#

The example in the docs doesn't pass payment intent

#

You're refunding customer balance

#

That is what you're trying to do, right?

#

That's the doc you linked originally

#

There's multiple steps (per the above doc)

#

You refund transaction to the cash balance

#

Then refund the cash balance to the customer

vale osprey
#

I'm trying to simulate a case where we trigger a refund by applying it to a payment intent, and it fails.

jovial geodeBOT
#

aksana-_test-refund-failure

vernal bay
#

Right but you set topic to EU customer balnce refunds

#

You're referring to customer balance refund failures, no?

#

That's what I'm trying to help you with

vale osprey
#

But it uses payment intents. Even if we use the EU customer's balance, to trigger the refund we can use Payment Intent, no?

cloud plinth
#

Hi there ๐Ÿ‘‹ I'm jumping in as my teammate needs to step away soon.

vale osprey
#

Correct

cloud plinth
#

Gotcha, thank you for that confirmation! So where are you at in that process? It sounds like you managed to receive the email with the instructions for performing the refund, am I understanding that correctly?

vale osprey
#

I received 2 emails with the confirmation

cloud plinth
#

Hm, I'm not too familiar with what those emails look like, they aren't something my teammates or I know much about as we typically focus on the API side of these integrations, but I'm getting the impression from the docs that the emails should offer a way to collect bank account details.

Are you performing a refund for a Customer who already has a bank account attached?

vale osprey
#

I would like to test a failed refund scenario. For example. The IBAN of the transfer sender is no longer valid and cannot be used for a refund.

#

I think that IBAN and the account holder name are taken from the transfer that was used to cover the Payment Intet

#

I didn't attach anything to the Customer and I cannot see any payment details

cloud plinth
#

Hm, the refund immediately going to a succeeded state is giving me the impression the funds aren't being sent back to the customer's bank account, but rather they're returned to the customer's balance. Does that align with what you saw as you stepped through this test?

vale osprey
#

Nope, I don't see funds on the balance

cloud plinth
vale osprey
#

We don't use this

cloud plinth
cloud plinth
#

Are you already live with this flow, or still just testing? If the latter, can you turn on the setting to send those emails, create and confirm a payment where your customer doesn't have enough funds already, make sure that Customer is using an email address where you were able to receive testmode emails, and then see if you receive the email? If so, can you then try entering the bank numbers discussed previously that are expected to generate a refund failure?

#

Hm, maybe I'm wrong, this isn't doing what I was hoping either

#

Ah, but with the funding instruction emails turned on, the email I receive for the refund is now asking for bank account details.