#alex.esch

1 messages ยท Page 1 of 1 (latest)

mental sparrowBOT
#

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.

ocean wolf
#

๐Ÿ‘‹ happy to help

#

would you mind elaborating?

weary tendon
#

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

ocean wolf
#

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

weary tendon
#

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?

weary tendon
#

it's your api response )))

this is my code

#

$stripe->invoiceItems->create([
'customer' => $customer,
'price' => $price,
]);

ocean wolf
#

the MRR won't be increased if the customer is not charged

ocean wolf
weary tendon
#

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?

ocean wolf
#

no

#

you need to use Subscriptions

#

if you want to use invoices you can't use recurring prices

weary tendon
#

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?

ocean wolf
weary tendon
#

ok, i'll try