Hi,
I am using angular-payments on ionic. The stripe payment form is loaded via an ionic.popup as follows:
$rootScope.buyForm = $ionicPopup.show ({
scope: $scope,
title: "Purchase Guide",
templateUrl: 'templates/stripe.html'
});
My stripe.html file exists within the www/templates/ directory.
It contains a stripeForm as follows:
<form stripe-form="stripeCallback" name='paymentForm'>
....
....
<div>
<button class='button buy-button' type="submit" ng-show='!paymentinprogress'>Purchase</button>
</div>
</form>
Everything works fine along with generating stripe tokens, sending the token to my https server and charging the card. But the problem is all this works with the test stripe mode.
Once, I move to the stripe live mode, and replace the stripe keys to the live ones. I get the following warning on my browser:
6 524842 warn You are using Stripe.js in live mode over an insecure connection. This is considered unsafe. Please conduct live requests only on sites served over https. For more info, see https://stripe.com/help/ssl
And on my ios app, the app just doesn’t load, it gives a white blank screen.
Should I be fetching the stripe.html from a https server, if yes, then are there any examples to point me in the right direction. What’s the best way to do this, via ionic popup, or the inappbrowser?