#steven-gauerke_api

1 messages ยท Page 1 of 1 (latest)

rich krakenBOT
#

๐Ÿ‘‹ 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.

quick cragBOT
plush sentinel
fervent tree
#

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

plush sentinel
fervent tree
#

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?

plush sentinel
#

You'll need to trigger the payment

fervent tree
#

ok and if the charge fails, the next day, my system will try again....do run PAY invoice?

#

each time?

plush sentinel
#

Each time you want to attempt a payment, yes.

#

Are you accepting card payments?

fervent tree
#

yes

plush sentinel
#

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.

fervent tree
#

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

plush sentinel
#

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.

fervent tree
#

I'm trrying to incorporate invoices instead because there could be 2 or 3 line items....most of the time its just 1.

plush sentinel
#

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?

fervent tree
#

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

rich krakenBOT
fervent tree
#

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?

plush sentinel
#

Yup, we offer usage based Prices

fervent tree
#

and Meters which will update the subscription, right?

plush sentinel
#

Technically, no, but for what I think you're trying to ask, yes.

fervent tree
#

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?

plush sentinel
#

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.

fervent tree
#

ok coupons might work. Can coupons run out? Meaning only lasts for X number of months?

plush sentinel
#

Yes, they can be configured that way

fervent tree
#

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?

plush sentinel
#

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.