#Senthil-charge-usage

1 messages · Page 1 of 1 (latest)

strong panther
#

Can you explain your use case here a bit more?

#

What usage are you monitoring and how would you like to charge it?

jovial cipher
#

For a payment they get 10 service calls. Once they use that up, they will be automatically replenished when they make the next one.

strong panther
jovial cipher
#

The first time I want to save and get payment in one go. Is that possible?

#

Because when I use the "setup" as mode, it won't let me specify the price. So I need to set mode as payment, specify the price and get the payment done. Then I also want the card saved at the same time to use later.

strong panther
jovial cipher
#

The customer is present on initial payment though

#

And I do anyway need to create a checkout session to get the payment info right?

strong panther
#

On the initial payment I was only saying to set setup_future_usage

#

setup_future_usage: off_session on the initial payment. This will mean the user is currently present but you plan to charge in future when they are not present

#

and then off_session: true on subsequent payments (if the user is not present, if they are you do not need to specify that)

jovial cipher
#

I assume I need to start off with "checkout session" right? This is where the customer gets to enter payment details. And then the system generates payment intent. In this case I am not doing the "Create a PaymentIntent" as the system generates it

strong panther