#some1ataplace
1 messages ยท Page 1 of 1 (latest)
Hi there you can attach a 4000000000000341 test card to your customer, payment will be declined when attempting to pay an invoice.
https://stripe.com/docs/testing#declined-payments There are many test cards that you can use to simulate a failed payment.
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
I want to test the Manage failed payments section
And another question is how to test the Manage invoices sent to customers section Subscription status and Invoice status
For both the Manage invoices sent to customers and Manage failed payments does it work for both subscriptions and one time payments via payment intents / invoices?
No emails are sent in test mode. So you won't receive invoice emails
i want to test the mark subscription as unpaid and mark invoice as uncollectible. i don't care about emails
OK. Then you can just attach the failed payment test card that I mention earlier, and advance the test clock.
ok so in a new checkout session try to pay for something? Subscription or one time payment?
I don't understand your latest question.
i am going to use the card you told me but where do i use it in a stripe checkout that pays for a subscription or a checkout that pays for a one time payment?
or do i manually need to make the subscription or invoice inside the dashboard test clocks page?
If you want to test subscription, then you should use subscription mode checkout, not payment mode checkout. You can set a trial_peroid_days(https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-subscription_data-trial_period_days) so checkout won't attempt to charge the test card (otherwise it will fail and no subscription will be created).
You can also do it from Dashboard.
hmm ok interesting idea about the trials\
Create a checkout for a subscription and fail the payment
- open invoice
- failed payment
- incomplete subscription
Advance time by 1 day - Invoice void
- cancelled payment
- expired subscription
That was the test I ran and for some reason the https://dashboard.stripe.com/settings/billing/automatic did not take effect
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
I have retry 1 day after previous attempt
mark sub unpaid and mark invoice as uncollectible
do i need to successfully pay once then fail the payment?
what settings did you set and what didn't take effect?
Manage failed payments section i told it a few lines above
I have retry 1 day after previous attempt
mark sub unpaid and mark invoice as uncollectible
Can you share with me the subscription ID and invoice ID?
hold on i think i figured it out with my theory
yes that was it
succeed the payment, then remove card, then add 4000000000000341 then advance time
Now just need to figure out Manage invoices sent to customers section how that works
i also need to test if what i just did works for one time payments
how does an invoice become past due?
is there a way to make it via api?
If you set the Leave the subscription as-is, the subscription will become past due after all retries of the payment method failed: https://stripe.com/docs/billing/subscriptions/overview#smart-retries
In the test mode, you will exhaust all the retries and it will stay in past_due
that is for the subscription though not the invoice object?
do the settings mean to say "if an invoice subscription is past due by" and "if a one time invoice is past due by"
i am talking about Manage invoices sent to customers section
past_due is only applicable to subscription object. Invoice object doesn't have past_due. These are the status applicable to the invoice: https://stripe.com/docs/invoicing/overview#invoice-statuses
ok
so in the Manage failed payments section i need to leave everything as is then i can test the Manage invoices sent to customers section?
because wouldn't Manage failed payments activate first before Manage invoices sent to customers?
Manage invoices sent to customers is for payment manually
that theory didn't work
Can you share what you're trying to achieve?
ok so i make an invoice for them?
Which specific flow are you testing?
test Manage invoices sent to customers with test clocks
If an invoice is past due by
both of them
actions -> create invoice
right?
then what?
Are you using subscription or invoice product?
If you're using subscription product, you should look for subscription status setting
under items a subscription
for the invoice creeation page
im going to get going. if you have a solution please send it i could see it later
If you're referring to this section, this refers to manual payment and will only apply if you set collection_method: 'send_invoice': https://stripe.com/docs/api/subscriptions/create#create_subscription-collection_method
yes that section
so i can only do that via api?
not the dashboard?
dashboard eemail invoice to customer with link?
You can set in the dashboard to ask customer paying manually
hmm thought i tried that and it didnt work
i made one like that then advanced time without paying and no change to the invoice
Can you share the subscription ID (sub_xxx) that doesn't work?
It'll be under Dashboard > Customers > Select the target customer > Click on "Actions" button on the top right > Click "Create subscription"
oooh i think it worked using my screenshot
but good to know about your screenshot thanks
thank you have a good one
No problem! Happy to help ๐