#_nerder
1 messages · Page 1 of 1 (latest)
Hey there
What you want to do is basically use a successful test card for the initial payment to get the Sub to active
Then update the PaymentMethod to our "decline after attaching" test card: https://stripe.com/docs/testing#declined-payments
Then trigger a new Invoice
And then payment will fail which will move the Sub to past_due
ok let me try one sec
cause i've done the first part already
also the second one of attaching the card ending with 0341
but i'm not able to trigger a new invoice
I was attempting to add a free trial and then remove it
You can update the Sub quantity and set proration_behavior: 'always_invoice'
That's one way to trigger a new Invoice
ok let me try
Alternatively, you can do this testing with Test Clocks: https://stripe.com/docs/billing/testing/test-clocks
i'm aware of test clock
but in this case might not work because this is a connect integration
and with test clock you need to create a new customer entirely
i need to check if that customer that test clock creates originates from the connect integration or from the own account
i'll try because it should be pretty convenient
Yeah you just need to create all the objects on the Connected Account if you are using Direct Charges
is not possible to pass an existing customer to a simulation right?
No you need a new Customer
You need to pass the test clock ID to the Customer on creation
ok it works, becuase it triggers customer.created
I was expecting that the customer will be created from the connected account, not "on behalf of"
in this case perfect
👍
also i've founded a funny bug
when trying to attach a payment method from the dashboard of the conencted account
triggers an error (saying is not allowed), but it actually goes trough
Huh that's weird
Can you give me a screenshot of what you see exactly?
Then I can report it internally
yes give me a sec, i'll complete this test and i'll send a screenshot
Sounds good
Interesting.
Thanks for flagging -- I'll report this internally so we get it cleaned up