#bhanu365 - Subscriptions
1 messages · Page 1 of 1 (latest)
Hi 👋
Subscriptions are not one time by definition. What are you actually trying to do?
Do you mean one time Invoices ?
I have created a product and the type is one time
I don't know the flow of this type of subscription
YOu cannot use that product for subscriptions
Because you set it to One Time
Which is not how subscriptions work
You should start here:
https://stripe.com/docs/billing/subscriptions/overview
Should I need to use single charge method instead of this?
What are you actually trying to do? Do you want to make single charges or subscriptions with repeating charges?
only single charge
The recurring payment subscription I already integrated
I just want to that user can pay for this subscription only for 1 time
You don't do that
Subscriptions are repeating charges by definition
if you just want to make a single charge
there is a much more simple approach
Ok got it
I should need to use PaymentIntent method for it
just for receiving the payment
Correct?
Yup, that is exactly what the Payment Intent is designed for.
However, if you want to use the Product record you created earlier, you might want to use Checkout
Because Checkout let's you use line_items where you can specify the Products
Ok
But if you just want to charge an amount then Payment Intent is the most straight forward.
Customer Balance is a valid payment method you can specify when creating the Payment Intent: https://stripe.com/docs/api/payment_intents/create#create_payment_intent-payment_method_types
I just want to deduct some amount from the single charge amount because we are giving to them a voucher code(not from stripe). We have our vouchers so customer can apply the voucher when they are paying. I want to store the voucher code or an amount that customer got from the voucher in the stripe so we can track easily for in future
Okay. You can create a customer credit balance transaction using this API
https://stripe.com/docs/api/customer_balance_transactions/create
We describe how they work here: https://stripe.com/docs/invoicing/customer/balance
Will it work for single charge too?
As I said earlier, you can specify customer_balance as a payment method type when creating a Payment Intent. I would advise you to create a Customer, add to the Customer Credit Balance, and then attempt a Payment Intent for that Customer in Test mode to be sure it behaves as you expect.
Ok but If I set customer_balance so the all amount will deduct from customer balance and from the card too? or only from the customer balance?
What do you want to do?
An individual Payment Intent will make a single successful Charge on a single Payment Method for the amount specified.
Ok got it. it means there is no relation between customer balance
Only if that is the Payment Method you specify