[英]Integration of Payment Gateway with angularjs application with spring backend
誰能向我建議在后端使用Spring的Angularjs應用程序中的Payment Gateway集成流程。
最好的方法是什么?
我的困境是,從后端我們只能以JSON格式獲取數據,而對視圖/重定向的控制卻很少。 由於明顯的原因,我不想從javascript調用支付網關。
在這種情況下流程會怎樣? 任何提示表示贊賞。
我已經結合使用JPOS(ISO8583消息路由器),Spring JPA(數據庫管理),SparkJava(REST JSON數據API)angularjs(前端應用程序)和Apache qupid進行消息傳遞,構建了整個Payment Gateway + EFT Switch。
在您的情況下,您可以動態創建一個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>');
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.