Can getValidationViolations( ) under SPI for ecom-validations be used for Plans & Pricing?

  • I am using the Plans and Pricing app for checkout payment of subscription plans.
  • I want to had an additional required dropdown for users to enter Country upon payment.
  • I have been trying to implement the getValidationViolations( )
  • Is getValidationViolations( ) for product purchases only (cart and checkout) and cannot be used for subscription plans checkout?

Screenshot 2024-01-31 200543

According to the docs it can be used for subscriptions as well:

Thank you for your speedy reply =) On the page you indicated earlier, there is a link for “subscriptions” which led to the “Product Subscription” page. My objective would be for “Plan Subscription”.

Why I suspect getValidationViolations() does not work for Plan Subscription
Further, in the custom extension module, I have added the .js file for Custom Extension (without changing or adding anything), but as soon as I added it an error message pop-up. This error occurs in site that does not have Store, but have Plans. On my other site that has Store, this error does not occur.

PlanApp is “Yes” && StoreApp is “No”: equal custom extension error
PlanApp is “Yes” && StoreApp is “Yes”: equal no error

Screenshot 2024-02-02 140656
Screenshot 2024-02-02 140702

Ran into the same issue - built out validation spi - realized after that it’s not firing for pricing plan checkout which is odd since it’s still the ecom checkout. I thought to work around this I would just use product subscriptions like a payment plan but that has a host of its own problems.

I ended up using a low tech way to solve the issue. Using the Pricing Plans: Collecting Additional Information at Checkout, I was able to create additional fields to collect additional info I needed from the customer.

image
Pricing Plans: Collecting Additional Information at Checkout | Help Center | Wix.com