0
Paypal로 결제를 처리하는 전자 상거래를 만들었습니다. 사용자가 지불을 마치면 지루한 일이 있지만, StoreWebSite로 돌아가려면 클릭해야합니다. PayPal 페이지에서 제공 한 버튼입니다. 어쨌든 그 작업을 자동으로 수행 할 수 있습니까? 사용자가 결제를 마쳤을 때 페이팔 리디렉션을 강제로 내 StoreWebSite에 설정할 수있는 플래그가 있습니까?Paypal 자동으로 상점 공급 업체로 리디렉션
는 기본적으로 나는
는 기본적으로 나는 다음을 수행하는 것이 수행
<html ng-app>
<body data-ng-controller="testController">
<form id="Checkpay" name="Checkpay" style="margin: 0" method="post" action="https://www.sandbox.paypal.com/cgi-bin/webscr" target="_blank" class="ng-pristine ng-valid">
<input type="hidden" id="return_url" name="return_url" value="">
<input type="hidden" name="quantita" id="qtytext" value="0">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="item_name" value="Le Spose di Nika">
<input type="hidden" name="business" value="[email protected]">
<input type="hidden" name="currency_code" value="EUR">
<input type="hidden" name="cancel_return" id="cancel_return" value="">
<input type="hidden" name="return" id="return" value="">
<input type="hidden" name="no_shipping" value="1">
<input type="hidden" id="H_amount" name="amount" value="719.80">
<input type="hidden" id="H_first_name" name="first_name">
<input type="hidden" id="H_address1" name="address1">
<input type="hidden" id="H_city" name="city">
<input type="hidden" id="H_state" name="state">
<input type="hidden" id="H_zip" name="zip">
<input type="hidden" id="H_email" name="email">
<input type="hidden" id="Country" name="country">
<input type="hidden" id="charset" name="charset" value="utf8">
<input type="hidden" id="rm" name="rm" value="2">
<input type="hidden" id="notify_url" name="notify_url" value="">
<input id="Submit1" type="submit" value="submit_post" />
</form>
<input id="Submit2" type="button" data-ng-click='pay()' value="js_post" />
</body>
</html>
<script src="http://localhost:27433/Scripts/jquery-1.7.1.min.js"></script>
<script src="http://localhost:27433/Scripts/jquery-ui-1.8.20.min.js"></script>
<script src="http://localhost:27433/Scripts/angular.js"></script>
<script>
function test() {
}
function testController($scope, $http) {
var URL = "http://backend.MYSITE.com/";
$scope.payTest = function() {
var PAYPAL_URL_RELEASE = "https://www.paypal.com/cgi-bin/webscr";
$('#return_url').val(URL);
$('#cancel_return').val(URL + '/ErrorPay');
$('#return').val(URL + '/Success');
$('#notify_url').val(URL + '/PayPalReceiverIPN.ashx?idOrder=');
document.forms["Checkpay"].action = PAYPAL_URL_RELEASE;
document.forms["Checkpay"].submit();
}
}
</script>
난 그냥 .. 작동하지 않는 것 시도 : - \ –
당신이 다른 브라우저에서 시도? 내 마지막 프로젝트에서 작동했습니다 ... – DmitryK
: - \ 시도 ... 작동하지 않음 –