ushahidi / tenfour

API For TenFour
MIT License
7 stars 3 forks source link

ChargeBee_InvalidRequestException: redirect_url : file is not supported. Only http and https are supported #154

Open CeciliaHinga opened 5 years ago

CeciliaHinga commented 5 years ago

From tenfour-archive created by mackers: ushahidi/tenfour-archive#1327

https://sentry.io/ushahidi/tenfour-api/issues/613216774/

ChargeBee_InvalidRequestException: redirect_url : file is not supported. Only http and https are supported
  File "app/Services/Payments/ChargeBeePaymentService.php", line 99, in getProUpgradeHostedPageUrl
    $hostedPage = ChargeBee_HostedPage::checkoutExisting($checkout)->hostedPage();
  File "app/Http/Controllers/Api/First/SubscriptionController.php", line 177, in getProUpgradeHostedPageUrl
    $request->input('callback')
...
(40 additional frame(s) were not displayed)
CeciliaHinga commented 5 years ago

I think this is happening because Ionic on Android is served via file:// urls.

The solution to this would be to use inter-frame messages, rather than redirect urls.