wp-media / imagify-plugin

Speed up your website with lighter images without losing quality.
https://imagify.io
72 stars 26 forks source link

Payment Modal does not close when using plugin with test invironments. #584

Open iCaspar opened 3 years ago

iCaspar commented 3 years ago

Before submitting an issue please check that you’ve completed the following steps:

Describe the bug When using the plugin with our staging and test versions of the app, the pricing modal does not close after completing a purchase transaction.

To Reproduce Steps to reproduce the behavior:

  1. Point the app api URL to one of the test app URIs
  2. Complete a test purchase in the plugin's pricing/checkout modal.
  3. See the modal does not close after the transaction completes.

Expected behavior The modal should close correctly in conjunction any app environment.

Additional Context This issue is the only issue left from #558, which was trying to solve issues around the pricing modal that arose on-the-fly during the 2021 spring campaign.

Backlog Grooming (for WP Media dev team use only)

mostafa-hisham commented 3 years ago

this PR will fix this issue but in a different way because we will define the URL in one place and send it to js we don't need to add multiple case for each environment URL

mostafa-hisham commented 3 years ago

Blocked by issue https://github.com/wp-media/imagify/issues/1580