cartalyst / stripe-laravel

Cartalyst Stripe package integration for Laravel.
BSD 3-Clause "New" or "Revised" License
336 stars 58 forks source link

No such plan error Subscriptions #79

Open pixsolution opened 2 years ago

pixsolution commented 2 years ago

Your Environment

Expected behaviour

Create subscription

Actual behaviour

errorCode: "resource_missing"

errorType: "invalid_request_error"

missingParameter: "plan"

rawOutput: array:1 [▶]

message: "No such plan: 'Bronce Mensual'"

code: 400

file: "C:\xampp\htdocs\web-site\vendor\cartalyst\stripe\src\Exception\Handler.php"

line: 125

it give me the same error if I passed the name of the product/plan (the same name that it is in stripe) as you indicate on your doc https://cartalyst.com/manual/stripe/2.0#create-a-subscription and also if I passed the unique stripe product id 'prod_123'. So it doesn't create the subscription

What can be?

Regards