#vasundhara_70376
1 messages · Page 1 of 1 (latest)
yes.
As mentioned here
Do not use real card details. Testing in live mode using real payment method details is prohibited by the Stripe Services Agreement, which permits business use only.
https://stripe.com/docs/testing#use-test-cards
we are testing on our live site only.
we have few scenarios for which we need to do testing in live environment
for example we need to test refunds gets processed in live environment. And to check that we'll have to make live payments.
You shoudln't do this. Card network may detect that, and think you are a bad actor, and then may block your payments. Which seems to be what's happening here.
The way to test Stripe is to use test mode with test cards. And if it works it will also work in live mode.
but we are not able to test refunds in test mode
how can we test refunds functionality
Why can't you test refunds in test mode? You can!
You can create a refund with this endpoint: https://stripe.com/docs/api/refunds/create
And we have some test cards for this: https://stripe.com/docs/testing#refunds