Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subscription issues: Refresh Plans, Payment Form handles, and more… #406

Open
vonscriptor opened this issue Jan 27, 2025 · 5 comments
Open
Assignees
Labels
bug Something isn't working need more info

Comments

@vonscriptor
Copy link

1. Refresh Plans Issue:

On production and local when I click Subscription Plans > Refresh Plans it says:

No plans were found in stripe. Check your Stripe Keys

My Stripe Keys are correct and the right ones are being used in each environment.

Subscription Grants do show the new subscription pricing.

When editing Stripe Payment Forms I do not see the updated subscription plans when Subscription Type is set to Customer chooses plan. If the Subscription Type is set to Set single plan then the Select Plan drop down Refresh button will show the updated plans.

2. Payment Form Handles Issue:

When creating Payment Forms, if one is deleted and you try to create a new one with that handle it says it's already being used.

3. Payment Form > Subscription Plan > Select Plan

The Select Plan field's instructional text states: "Can't see your plans? Go to Subscriptions and click on Refresh Plans" and the "Subscriptions" link is for some reason linked to my local domain when in my production environment. I do not know where this might be coming from as my environment variables are correct.

@vonscriptor
Copy link
Author

In the logs I see:

[web.ERROR] [enupal\stripe\controllers\SettingsController::actionUpdatePlans] Calling unknown method: craft\fields\Matrix::getBlockTypeFields()

In Craft CMS 5 getBlockTypeFields() was removed. Find in here: https://github.com/craftcms/cms/blob/5.x/CHANGELOG.md#extensibility-6

@andrelopez andrelopez self-assigned this Jan 28, 2025
@andrelopez
Copy link
Member

Thanks for reporting, could you please confirm your Stripe Payments and Craft CMS version?

@andrelopez andrelopez added bug Something isn't working need more info labels Jan 28, 2025
@vonscriptor
Copy link
Author

Hi @andrelopez!

  • Craft CMS Pro v5.5.10
  • Stripe Payments Lite v6.0.2

@vonscriptor
Copy link
Author

Hi @andrelopez, any updates on the Refresh Plans button not working? Again, it looks like it's due to getBlockTypeFields() being removed in Craft CMS 5 as that's what the server logs when I click the button. Without this functionality it would seem that no one using the plugin with Craft CMS 5 would be able to get or update their subscription plans.

@andrelopez
Copy link
Member

Hi @vonscriptor I was able to recreate the issue, the fix will be released soon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working need more info
Projects
None yet
Development

No branches or pull requests

2 participants