#alex.esch
1 messages ยท Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
hello
my goal: increate MRR of a product programatically
my current implementation
we are selling a bundle, which one is managed by a paymentintent (so is not related to products, it's a simple charge)
so now, i would like to create an subscription
as i have seen, there are no way to create invoice with recurring price
so, based on my previous conversations with your team, i'm trying to
charge payment intent
add credits to user account
create an subscription
all these steps are done, but
the invoice has been charged, but the product MRR is still 0
subscription : sub_1OJvYuJaf89hC41IIOwFiRsy
product: prod_P6LqzvYmXZwd3j
as i have seen, there are no way to create invoice with recurring price
that's not true. every subscription will automatically generate an invoice for each billing cycle
well
The price specified is set to type=recurring but this field only accepts prices with type=one_time.
so, my goal is to
- create a subscription
- do not charge the customer
- just after subscription is created, increase the MRR of the product related to subscription
can you advice me about any possible solution?
what field?
it's your api response )))
this is my code
$stripe->invoiceItems->create([
'customer' => $customer,
'price' => $price,
]);
the MRR won't be increased if the customer is not charged
you should use subscriptions not invoices for recurring prices
ok
if i'll try again, to refactor the implementation, so instead of using Payment Intent, it will become an Invoice transformed to payment intent, will it work?
no
you need to use Subscriptions
if you want to use invoices you can't use recurring prices
https://stripe.com/docs/recurring-payments#accept-recurring-payments these are your options
understood, thank you
one more question
can i create 2 prices on same product (subscription)
one of these pricings will be recurring, another one will be one time
so after that, instead of using the payment intent, i'll use the one time price in invoice?
will it increase the MRR of the product at this way?
can i create 2 prices on same product (subscription)
one of these pricings will be recurring, another one will be one time
yes using https://stripe.com/docs/api/subscriptions/create#create_subscription-add_invoice_items
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
ok, i'll try