#steven-gauerke_api
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1259870683895169024
๐ Have more to share? Add details, code, screenshots, videos, etc. below.
Hi ๐ you'll need to use the test card that successfully attaches but then declines payments. It's the last one in this section, down in its own table:
https://docs.stripe.com/testing#declined-payments
ok thanks. Next question is....I have collection_method set to send_invoice, days until due set to 10, and auto_advance to false. Will it still send the invoice? I do NOT want to send their invoice but I also don't want to collect right away
I basically want to create the invoice due for 10 days from now but not charge them and NOT send them the invoice yet. They have agreement for me to auto bill them. So I iwill just bill them on the 10th
Our table showing what behavior is diosabled when you turn off auto_advance can be found here:
https://docs.stripe.com/invoicing/integration/automatic-advancement-collection#toggle-auto-advance
Emailing finalized invoices should be disabled
ok so.....now I create invoices on the 1st. I want them to be billed on the 10th. Can II set strripe to auto charge the cards on the 10th? Or do I need to run a cron to trigger a payment intent on the 10th?
You'll need to trigger the payment
By making a request to the endpoint for paying an Invoice
https://docs.stripe.com/api/invoices/pay
ok and if the charge fails, the next day, my system will try again....do run PAY invoice?
each time?
yes
Then you should also check for the payment failing because customer authentication is required, in those scenarios you'll need to have a flow that brings your customer back on session so they can complete the authentication challenge.
hmm.....this is all done behind the scenes....so the customer doesn't see any of this. I bill them monthly.
Currently I just charge their payment method on file. and do a payment intent
You either need a flow for bringing the customer back on-session, or accept that your customers won't be able to complete payments if their issuer requires a 3DS challenge be completed in order for the issuer to approve the transaction.
I'm trrying to incorporate invoices instead because there could be 2 or 3 line items....most of the time its just 1.
What do you mean "do a payment intent"? If you're working with Invoices, they create their own intents and you don't need to create your own.
Oh I see, you're on intents now and working on migrating to Invoices?
sorry not a payment intent
II run stripe->charges->create([
and I charge their card....right now, the total is all rolled into 1 description.....but I want to start doing line iitems
I thought about doing subscriptions and webhooks, but some customers have a dynamic line item....so for instance, when they do a property detail lookup, we charge them 3 cents. They may have 50-100 of them. Is there a way to update that usage per subscription?
and Meters which will update the subscription, right?
Technically, no, but for what I think you're trying to ask, yes.
ok let me rread through what you sent
ok so then part of theiir subscription is a fixed amount. However, some customers we will ooverride the default price. Normally $350 a month. But some will get it for $200 (grandfathered in price). Do we have to make a different price for those? Or can we modify the subscription?
You'd create a different Price, unless you want to lower the amount due on the Subscription by adding a discount via a Coupon or something similar.
ok coupons might work. Can coupons run out? Meaning only lasts for X number of months?
Yes, they can be configured that way
ok great
ok last question....creating a subscription, I want cycle to end on the 1st of each month but bill on the 10th. is that doable?
Nope, our Subscriptions bill at the beginning of their billing period (or at the end if you're using a usage-based Price). You can't disconnect the billing date and the period cycle date like that.