2016-07-20 5 views

답변

0

Iframe 솔루션이 https 링크에서 작동하지 않습니다.

ccavenue mobile integration KIT에서 제공하는 RSA 키 암호화 방법을 사용해야합니다.

PHP의 비 매끄러운 모바일 키트 통합을 사용하십시오.

응용 프로그램에 inappbrowser를 추가하여 ccavenue 응답을 시각화합니다. https://github.com/manjitlatthe/ionic-php-ccavenue-integration

:

$scope.data = { 
    orderId: 1, 
    amount: 1, 
}; 

$scope.ref = null; 
$scope.getStateSecondWindow = function() 
{ 
    $scope.ref.executeScript(
     {code: "localStorage.getItem('isCloseSelf')"}, 
     function(data) 
     { 
      if (data == 'yes') 
      { 
       $scope.ref.close(); 
      } 
     } 
    ); 
} 
$scope.onSubmit = function(){ 
    $scope.ref = window.open(CONFIG.BASE_URL + 'getRSA.php?orderId=' +  $scope.data.orderId + '&amount=' + $scope.data.amount,'_blank','location=no'); 
    $scope.ref.addEventListener('loadstart', function(event) { }); 
    $scope.ref.addEventListener('loadstop', function(event) { 
    setInterval($scope.getStateSecondWindow, 5000); 
    }); 
    $scope.ref.addEventListener('exit', function(event) { }); 
} 

는 PHP 코드에 대한 링크를 참조하십시오 - 성공적인 설치 후

$ cordova plugin add cordova-plugin-inappbrowser 

컨트롤러에 다음 코드를 작성