Solved: Problem loading Stripe.js on iOS in 2.4.x


#1

This was a request for support but I solved it while writing - it is something that has been annoying me for months though so I thought I’d document it here.

Problem description:
When using Stripe.js on iOS with 2.4 platform branch, browser window pops open with external Stripe URL when app starts.

Does not occur on Android.

Context:
Stripe.js can be used to enable credit card payments within the app. This has functioned correctly for a number of years. The last ‘known good’ platform version is 2.2.16 - it has not been functional on the 2.4 branch.

Solution
Add the following to Trusted URLs in App config:
http://*.stripe.com/*
https://*.stripe.com/*