#jamie_97274
1 messages · Page 1 of 1 (latest)
hi there!
- I recommend testing this in test mode, and maybe use Test Clock to helo https://stripe.com/docs/billing/testing/test-clocks
- what do you men by "become a failed payment"? you can see all PaymentIntent status here: https://stripe.com/docs/api/payment_intents/object#payment_intent_object-status
- I also recommend testing this in test mode
- what do you mean exactly?
- smart retry by itself don't send any email, it just retry the existing payment method automatically
RE: 1. how can I test a disputed payment with a test clock?
test clock is not for testing dispute, but to allow you to move time forward with Subscriptions. that can be very useful.
looking into sepa disputes now
also how to test 3. with a test clock? You can not remove a sepa_debit payment method so how would I simulate a test failed payment with sepa_debit exactly?
- sure you can change the default payment method of a subscription
yes I am aware but you recommended to use test clocks, I do not see how to do that for sepa debit disputes OR sepa_debit failed payments, because you can not remove a sepa_debit payment method so you can not simulate it failing
there are some test sepa numbers that will fail: https://stripe.com/docs/payments/sepa-debit/accept-a-payment?platform=web&ui=checkout#test-integration
so you could use one of these with your Subscription to simulate a failed payment with sepa. and then change the payment method. and potentially use Test Clock to move time forward.
hmm but we are in the netherlands we use ideal
so we grab a payment to start a subscription, add balance to the customer to start a subscription, get sepa_debit from the payment details and attach it to the subscription
we do not enter card numbers
but you are correct, I don't see test values to simulate a dispute with sepa. but the event you'll get is charge.dispute.created as mentionned here https://stripe.com/docs/payments/sepa-debit#disputed-payments
considering I can not use those numbers
can you remove a sepa_debit payment method from a dev subscription for me?
or is there a way to test this with iDeal
can you remove a sepa_debit payment method from a dev subscription for me?
can you clarify what you mean exactly? you can always change the default payment method of a subscription on your end.
one of us is misunderstanding - I need to test the iDeal (that becomes a sepa_debit) failed payment
changing a payment method does not help me test a failed sepa_debit payment
I can simulate a failed CC payment by removing the payment method, but you can not remove a sepa_debit payment method
Here's what I am suggesting in more details:
- Start a Subscription with iDeal, and the first payment will succeed
- Then update the payment method of the Subscription with a Sepa Debit that will fail
- Use Test Clock to move time forward
- The Sepa Debit payment will fail
Is this not what you are trying to do?
not familiar with the Dashboard here on Discord. but with the API it's definitely possible, using either either https://stripe.com/docs/api/subscriptions/update#update_subscription-default_payment_method or https://stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method
You're sending me an API to change a payment method on a subscription
correct
how does that help me test a failed sepa debit?
did you read my message above? can you clarify why that would not work for you?
- Start a Subscription with iDeal, and the first payment will succeed
- Then update the payment method of the Subscription with a Sepa Debit that will fail
- Use Test Clock to move time forward so a new Invoice is created
- And the Sepa Debit payment will fail
there is no way for me to have a sepa_debit failing card?
to fail a cc subscription you can just remove the cc payment method - easy. You can not do this with a sepa_debit payment
there is no way for me to have a sepa_debit failing card?
yes, I already sent you the link: https://stripe.com/docs/payments/sepa-debit/accept-a-payment?platform=web&ui=checkout#test-integration
none of those go to a failed payment
nevermind this is not even doable when your integration is using iDeal
if the PaymentIntent status goes to requires_payment_method, it means that the payment failed
And how do you propose I add any of these account numbers?
you do not have this input for numbers when using iDeal
it requires some work. for example you could follow this guide to save a sepa payment method on the customer: https://stripe.com/docs/payments/sepa-debit/set-up-payment?platform=checkout
what I was asking earlier is look I have this customer in a test clock:
https://dashboard.stripe.com/test/customers/cus_PDTjh6ERixzMwn
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
can you not remove/edit the attached payment method for me? I do not have the ability to edit/remove sepa_debit cards, even on the test environment (?), but surely you can?