#_nerder

1 messages · Page 1 of 1 (latest)

lament pilotBOT
wet wraith
#

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 trigger a new Invoice

#

And then payment will fail which will move the Sub to past_due

sullen orbit
#

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

wet wraith
#

You can update the Sub quantity and set proration_behavior: 'always_invoice'

#

That's one way to trigger a new Invoice

sullen orbit
#

ok let me try

wet wraith
sullen orbit
#

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

wet wraith
#

Should still work fine to use a test clock with Connect

#

But up to you

sullen orbit
#

i'll try because it should be pretty convenient

wet wraith
#

Yeah you just need to create all the objects on the Connected Account if you are using Direct Charges

sullen orbit
#

is not possible to pass an existing customer to a simulation right?

wet wraith
#

No you need a new Customer

#

You need to pass the test clock ID to the Customer on creation

sullen orbit
#

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

wet wraith
#

👍

sullen orbit
#

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

wet wraith
#

Huh that's weird

#

Can you give me a screenshot of what you see exactly?

#

Then I can report it internally

sullen orbit
#

yes give me a sec, i'll complete this test and i'll send a screenshot

wet wraith
#

Sounds good

sullen orbit
#

very nice tho, it works perfectly

#

when I refresh tho

wet wraith
#

Interesting.

lament pilotBOT
wet wraith
#

Thanks for flagging -- I'll report this internally so we get it cleaned up