#lewis_best-practices

1 messages ¡ Page 1 of 1 (latest)

brave heronBOT
#

👋 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.

icy dagger
#

Hi there

proven gate
#

Hey!

icy dagger
#

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.

proven gate
#

oh okay, is there a recommended way to test this with stripe elements?

icy dagger
#

To test Apple Pay and Google Pay?

proven gate
#

to test charge backs with the webhooks

icy dagger
proven gate
#

there is docs mentioning how to simulate successful webhooks but I'm unable to get disputes to work

icy dagger
#

Or you would mock the Events

proven gate
#

ah okay so there is no way to do it with stripe elements atm?

icy dagger
#

You can use those test cards with Elements

#

I'm not sure what you mean...

proven gate
#

I'll just take another look at the docs 2 min

icy dagger
#

Okay let me know if I can help!

proven gate
icy dagger
#

Ah I see

#

You are only supporting these wallets

proven gate
#

yes

icy dagger
#

Got it, well you can also trigger Events via the CLI to help you with testing.

proven gate
#

oh perfect

#

last time I checked I thought the charge.dispute.created event wasn't supported

icy dagger
#

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.

proven gate
icy dagger
#

Just the payment that is created using the dispute test card number

proven gate
#

ah okay that makes sense

#

I'll have a try with that and see how things ago

#

appreciate the help!

icy dagger
#

Sure thing -- stripe trigger charge.dispute.created seems to work fine for me btw

proven gate
#

oh perfect

#

one more question actually lol

#

will the data from that trigger be completely random?

icy dagger
#

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

proven gate
#

ah okay I see

#

thank you!