I'm currently using Angular with Wirecard as my payment provider. When I need to add a payment, I open an iframe that directs the user to the Wirecard site to accept the payment. Once the user clicks accept, I provide a link back to my site from Wirecard. The issue I am facing is that when the user clicks accept, the link opens within the iframe and not in the parent window. How can I resolve this?
<iframe ng-if="paymentIframeUrl" id="paymentIframe" ng-src="{{paymentIframeUrl}}" width="100%" height="200"></iframe>
PaymentsService.paymentMethodProccess(paymentMethod).then(function(res) {
$scope.paymentIframeUrl = res.data.data.context.redirectUrl;
});