0
나는 반복 지불을하고있다. 지불이 완료되고 돌아 오는 URL로 돌아온 후, 나는 ipn 응답을 얻지 못하고 있습니다. 반복 지불을위한 코드 :Paypal 샌드 박스 반복 지불 ipn
$query = array();
$query['cmd'] = '_xclick-subscriptions';
$query['upload'] = '1';
$query['business'] = $select_paypal_detail[0]->business_mail;
$product = $_POST['package'];
//$product_price = $_POST['price'];
$product_quantity = $_POST['quantity'];
$query['a3'] = $_POST['price'];
$query['p3'] = 1;
$query['t3'] = 'D';
$query['no_note'] = 1;
//$query['amount'] = $_POST['price'];
$query['discount_rate'] = $_POST['discount'];
$query['item_name'] = $_POST['package'];
$query['quantity'] = $_POST['quantity'];
$query['currency'] = 'CAD';
$query['instId'] = '211616';
$query['testMode'] = 100;
$_SESSION['order_number'] = $order_number;
$query['cartId'] = 'Order Number '.$_POST['order_number'];
$query['return'] = $select_paypal_detail[0]->return_url;
$query['notify_url'] = "http://theelitecoachingacademy.com/?AngellEYE_Paypal_Ipn_For_Wordpress&action=ipn_handler";
// Prepare query string
$query_string = http_build_query($query);
if($select_paypal_detail[0]->payment_type == 'live'){
?>
<!--/header('Location: https://www.paypal.com/cgi-bin/webscr?' . $query_string);
header('Location: https://www.sandbox.paypal.com/cgi-bin/webscr?' . $query_string);-->
<script type="text/javascript">
window.location="https://www.paypal.com/cgi-bin/webscr?<? echo $query_string ?>";
</script>
<?php } else { ?>
<script type="text/javascript">
window.location="https://www.sandbox.paypal.com/cgi-bin/webscr?<? echo $query_string ?>";
</script>
<?php
}?>
오류를 받으셨습니까? – Sachith
[auth]와 [form_charset]의 응답으로 두 개의 변수 만 표시됩니다. 거래 ID 및 지불 상태를 원합니다. – Rakesh