#Robert-test-clocks
1 messages ยท Page 1 of 1 (latest)
Hi there! No unfortunately we don't have a test card that does that.
You could use Radar rules here though
And likely get the retry to fail
By using test clocks in a test environment?
Hrmm really?
If I remember correctly ๐
I was trying something like this:
after I create the test clock with the customer
and subscription with a valid card
(4242 etc()
I tried to change the card
to a faulty one
before advancing time
but I does not allow me to add it ๐
because of the errors ๐ฆ
expired etc
Let's try this.... add 4000000000000127 card (incorrect_cvc) but turn off your "Block if CVC verification fails" rule.
Then start the Sub
Turn on the rule
Advance time
Let's see if it fails on retry for incorrect CVC
Will give it a go
so first step
well
it does not let me to add ๐
maybe it will not block the card
but I cannot add it to test
Ah if you are adding via the Dashboard then yes it will block. Forgot about that
One sec
Oh wait
I gave you the wrong test card
4000000000000101
Try that one
The one above will always decline
This one is Radar specific for CVC decline
so disable enable?
oh yes
it added it now
ok will enable and configure
too see what happens
Let me know!
well
strange
it did not gave an error and the status is active
even though i turned the rule back on
Can you provide the Subscription ID?
yes of course
sub_1L5ZWsIAxCT2YDDaPDFi8Jvj
oh
Interesting
it became unpaid
on the second advance of time
The initial payment?
I rather ask
If i create a subscription in this testing part
what does it count to?
as an initial payment i suppose
I'm sorry I don't really understand what you mean
It does an initial payment
If the rule is off when you start the Sub then the initial invoice's payment will succeed
I thought you wanted to test what happens when a renewal fails?
ok the strange thing was
yes
on initial
renewal
first one
when I advanced time
it was a success
with active status
when I advanced the time a second time
lol okay the initial payment isn't a renewal
That was the first invoice that was successful
It was not the renewal
The renewal did fail
oh I see then
so the initial payment was from 1 month from now
ok maybe my settings
were incorrect ๐ฆ
sorry about that
either way it seems I can sort of test the functionality like this ๐
so thank you for your suggestion ๐
Sure!
The other thing you can do is to update the customer's card after you start the Sub
So you could use 4000000000000341
Which is Decline after attaching test card
So you create the Sub with 4242 and this will successfully pay initial invoice. Then you update customer's card to 4000000000000341, then you advance time to the renewal
The renewal will decline
I see, thank you very much ๐
No problem!