Skip to main content

App-overlay-if-payment-failed

App overlay if payment failed

Ignore for Wix & Shopify

Eng notes: We need to check if subscription has failed payments https://gitlab.com/powr/powr/blame/master/app/controllers/apps/views_controller.rb#L81 then based on that show overlay - similar to js-unclaimed-watermark \ \ We need to clear cloudflare cache after this gets deployed.

Scenario: Show overlay when subscription has app_type

Given a user with a pending transaction with app_type

And their platform is not Wix or Shopify

When they open their published plugin with the subscription’s app_type on their website

And they are the owners of the plugin (Show only to them)

Then the user should see a darkened overlay over the app on their live site with text:

“Payment failed for your subscription - please update your payment info”

And a button: Update

And a text in the bottom “Only you can see this”

Scenario: Show overlay when subscription doesn’t have app_type

Given a user with a pending transaction without app_type

And their platform is not Wix or Shopify

When they open any of their published plugin on their website

And they are the owners of the plugin (Show only to them)

Then the user should see a darkened overlay with text:

“Payment failed for your subscription - please update your payment info”

And a button: Update

And a text in the bottom “Only you can see this”

Scenario: Clicking a button

Given a user

Who sees overlay

When they click on Update

Then a new tab should open to powr.io/users/me/account - payment info section

Scenario: When to stop showing overlay

Given a user

When the charge is successful

Or when they were downgraded

Then stop showing the overlay