2
經過幾個小時的嘗試修復貝寶IPN我回來了。這是非常令人沮喪的,但我無法理解這一點。我有一個表格,並將其發送到貝寶,但我不知道如何進一步後續。這是據我已經得到貝寶IPN設置
echo '<form method="post" action="';
include("settings.php");
if($_POST['payment_buy_ads'] == 'PayPal' && $paypal_status == 1){
echo 'https://www.sandbox.paypal.com/cgi-bin/webscr';
}
if($_POST['payment_buy_ads'] == 'Payza' && $payza_status == 1){
echo '';
}
if($_POST['payment_buy_ads'] == 'Perfect_Money' && $perfect_money_status == 1){
echo '';
}
echo '">';
echo '
<h3>Website URL</h3>
<input type="url" class="form-control" id="user_url" name="url" placeholder="Whats the URL of the website?" required />
<br>
<h3>Ad Pack Type</h3>
<p class="col-lg-12 ">Chose how many ad credits do you like to buy?</p>
<br>
<br>
<select name="amount" class="form-control">
<option value="'.$cost_p_1.'">1000 hits - $'.$cost_p_1.'</option><option value="'.$cost_p_2.'">5000 hits - $'.$cost_p_2.'</option><option value="'.$cost_p_3.'">20000 hits - $'.$cost_p_3.'</option><option value="'.$cost_p_4.'">100000 hits - $'.$cost_p_4.'</option><option value="'.$cost_p_5.'">1000000 hits - $'.$cost_p_5.'</option></select><br><br>
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="'.$paypal_email.'">
<input type="hidden" name="item_name" value="Full Page Link Advertising">
<input type="hidden" name="currency_code" value="USD">
<INPUT TYPE="hidden" name="user_email" value="'.$_SESSION['email'].'">
<INPUT TYPE="hidden" name="notify_url" value="'.$site_link.'/ipn.php">
<input type="submit" name="submit" class="btn btn-success btn-lg" value="Create New Ad">
<br>
<br>
'; include("settings.php");
echo '
<br>
<br>
<br>
</form>
這工作完全去PayPal支付,但我怎麼檢查後記該付款成功,且包的用戶選用。
請解釋一步一步,並儘量保持它的簡單,你可以
問候, 奧利弗
我已經更新了我的答案有一個鏈接,在那裏你可以打開IPN在Paypal和設置的URL,貝寶與您溝通。 – mseifert