#aksana-_test-refund-failure
1 messages ยท Page 1 of 1 (latest)
๐ 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.
That section you linked has details to use for refund fails scenario
But I didn't received the email that is mentioned in the docs
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?
Where can I check this email adress?
Should be in the profile section: https://support.stripe.com/questions/change-the-email-address-associated-with-a-stripe-account
Find help and support for Stripe. Our support site 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.
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"
}
},
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Hm I see you used the dashboard
Not sure what that does under the hood
try with the api
per the doc above
Can you share the payment intent id
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
I just created it
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
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
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
I'm trying to simulate a case where we trigger a refund by applying it to a payment intent, and it fails.
aksana-_test-refund-failure
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
But it uses payment intents. Even if we use the EU customer's balance, to trigger the refund we can use Payment Intent, no?
Hi there ๐ I'm jumping in as my teammate needs to step away soon.
There are several different shapes to refunds when working with Bank Transfers and customer balances. Let's try to make sure we're aligned and talking about the right shape of what you're trying to test here.
Is this section covering what you're trying to test?
https://docs.stripe.com/payments/customer-balance/refunding#refund-customer-balance-payment-bank-account--api
The code sample there is trying to create a Refund for a Payment Intent.
Correct
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?
I received 2 emails with the confirmation
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?
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
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?
Nope, I don't see funds on the balance
I just tried for this PI https://dashboard.stripe.com/test/payments/pi_3PWgDuCwXI9yfnGa1tzE6v9Q
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Hm, my current thinking, is that since you're using the test helper function to fund the customer's balance, that is using the wrong bank account details to simulate a refund failing.
When you confirm an intent where the Customer doesn't have a sufficient balance, are you receiving emails to collect funding instructions as described here?
https://docs.stripe.com/payments/bank-transfers/accept-a-payment?payment-ui=direct-api#instruction-emails
We don't use this
What I think needs to happen here, is you need to provide the bank account details shown in the below section in that email:
https://docs.stripe.com/payments/customer-balance/refunding#testing-refunds
So that way when the refund happens, the test bank account that causes refunds to fail is used instead of the generic one where everything succeeds.
We don't receive any emails
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.