Javascript 支付网关与带有spring后端的angularjs应用程序的集成

Javascript 支付网关与带有spring后端的angularjs应用程序的集成,javascript,angularjs,spring,payment-gateway,Javascript,Angularjs,Spring,Payment Gateway,有人能给我推荐一下后端使用spring的Angularjs应用程序中支付网关集成的流程吗 最好的方法是什么 我的困境是,从后端我们只获取JSON格式的数据,对视图/重定向的控制非常少。我不想从javascript调用支付网关,原因很明显 在这种情况下,流程是什么。任何暗示都将不胜感激 我使用JPOS(ISO8583消息路由器)、Spring JPA(数据库管理)、SparkJava(REST JSON数据API)、angularjs(前端应用程序)和ApacheQupid的组合构建了整个支付网关

有人能给我推荐一下后端使用spring的Angularjs应用程序中支付网关集成的流程吗

最好的方法是什么

我的困境是,从后端我们只获取JSON格式的数据,对视图/重定向的控制非常少。我不想从javascript调用支付网关,原因很明显


在这种情况下,流程是什么。任何暗示都将不胜感激

我使用JPOS(ISO8583消息路由器)、Spring JPA(数据库管理)、SparkJava(REST JSON数据API)、angularjs(前端应用程序)和ApacheQupid的组合构建了整个支付网关+EFT交换机

在您的情况下,您可以动态创建一个iframe,以便在angularjs部分页面/视图中加载外部支付网关

var payload = 'https://yourexternatpaymentgateway.com?reference='+$scope.payment.reference+     '&name='+encodeURIComponent($scope.payment.name)+'&custid='+$scope.payment.phone+'&amount='+$scope.payment.amount+'&source_page=http://yourfeedbackpage'+
'&description='+encodeURIComponent($scope.payment.description);

jQuery('#console').html('<iframe width="100%" height="550px" src="'+payload+'" frameborder="0"></iframe></div>');
varhttps://yourexternatpaymentgateway.com?reference='+$scope.payment.reference+'&name='+encodeURIComponent($scope.payment.name)+'&custid='+$scope.payment.phone+'&amount='+$scope.payment.amount+'&source\page=http://yourfeedbackpage'+
“&description=”+encodeURIComponent($scope.payment.description);
jQuery('#console').html('');

我使用JPOS(ISO8583消息路由器)、Spring JPA(数据库管理)、SparkJava(REST JSON数据API)、angularjs(前端应用程序)和Apache qupid的组合构建了整个支付网关+EFT交换机

在您的情况下,您可以动态创建一个iframe,以便在angularjs部分页面/视图中加载外部支付网关

var payload = 'https://yourexternatpaymentgateway.com?reference='+$scope.payment.reference+     '&name='+encodeURIComponent($scope.payment.name)+'&custid='+$scope.payment.phone+'&amount='+$scope.payment.amount+'&source_page=http://yourfeedbackpage'+
'&description='+encodeURIComponent($scope.payment.description);

jQuery('#console').html('<iframe width="100%" height="550px" src="'+payload+'" frameborder="0"></iframe></div>');
varhttps://yourexternatpaymentgateway.com?reference='+$scope.payment.reference+'&name='+encodeURIComponent($scope.payment.name)+'&custid='+$scope.payment.phone+'&amount='+$scope.payment.amount+'&source\page=http://yourfeedbackpage'+
“&description=”+encodeURIComponent($scope.payment.description);
jQuery('#console').html('');