Laravel Cashier (Stripe): You must provide at least one recurring price in subscription
mode when using prices. while trying both subscription and one-time charge
#51319
Unanswered
devhoussam1998
asked this question in
Q&A
Replies: 1 comment 7 replies
-
are you want to achive with one time payment is it something like life time payment ? correct me if i'm wrong |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a product in Stripe with multiple prices, some recurring and a one-time price. (eg. $10/month, $100/year, $1,000 one-time)
For the recurring prices I use
$request->user()->newSubscription()
withstripe_product
, andstripe_price
it works well but when I try to handle the one-time price I get this error:You must provide at least one recurring price in
subscription
mode when using prices.What is the correct way to handle a recurring and one-time charges.
SubscriptionCheckoutController.php
Beta Was this translation helpful? Give feedback.
All reactions