#lewis_best-practices
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always 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/1420521533884858499
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- lewis_unexpected, 6 days ago, 47 messages
- lewis_ece-paypal-billing-required, 6 days ago, 51 messages
Hi there
Hey!
No there isn't a way to test a dispute with Google/Apple Pay since you can't use our specific test cards for that.
You mostly just want to mock the response here for testing.
oh okay, is there a recommended way to test this with stripe elements?
To test Apple Pay and Google Pay?
to test charge backs with the webhooks
Yeah you would use one of our dispute test cards: https://docs.stripe.com/testing#disputes
there is docs mentioning how to simulate successful webhooks but I'm unable to get disputes to work
Or you would mock the Events
ah okay so there is no way to do it with stripe elements atm?
I'll just take another look at the docs 2 min
Okay let me know if I can help!
I'm planning to only implement Google and Apple pay on my website, so to test disputes specifically, will I need to add the option of credit cards? so that I can use these card numbers?
yes
oh perfect
last time I checked I thought the charge.dispute.created event wasn't supported
Otherwise you could manually enter a test card in your Dashboard to trigger a payment/dispute as well and that would create the Events too.
Hmm I can check on that
if I do this, will it dispute all payments from that card, or all payments by that customer?
Just the payment that is created using the dispute test card number
ah okay that makes sense
I'll have a try with that and see how things ago
appreciate the help!
Sure thing -- stripe trigger charge.dispute.created seems to work fine for me btw
oh perfect
one more question actually lol
will the data from that trigger be completely random?
The data is based on the fixtures which you can see here: https://github.com/stripe/stripe-cli/tree/master/pkg/fixtures/triggers
You can use the --edit flag to edit the fixture to customize
Otherwise you can also use the --override or --add flag to customize as well