0
使用PayPal有困難
IM,我可以得到它完美地工作在測試模式下而不是在現場模式....貝寶盡在真人版沒有完成
<form class="paypal-form" action=" https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="[email protected]">
<input type="hidden" name="item_name" value="qparcel">
<input type="hidden" name="item_number" value="1">
<input type="hidden" name="amount" id="amount" value="<?php echo $paypal_amount; ?>">
<input type="hidden" name="shipping" value="0">
<input type="hidden" name="custom " value="<?=$orderid?>">
<input type="hidden" name="custom_more" value="<?php echo 'test2'; ?>">
<input type="hidden" name="currency_code" value="GBP">
<input type="hidden" name="rm" value="2">
<input type="hidden" name="bn" value="PP-BuyNowBF">
<input type="hidden" name="return" value="<?php echo get_site_url(); ?>/payment-complete">
<input type="image" src="<?php echo get_option("siteurl"); ?>/wp-content/themes/qparcel/images/pay-with-pp.jpg" border="0" name="submit" alt="PayPal - The safer, easier way to pay online.">
<img alt="" border="0" src="https://www.paypal.com/en_AU/i/scr/pixel.gif" width="1" height="1">
</form>
響應頁面
if (isset($_POST['mc_gross'])) {
// do stuff
}
當進入測試模式時,它可以完美工作,而在實時模式下則不會。
有沒有機會$_POST['mc_gross']
不會出現在現場版本?
'mc_gross'出現在現場版本中。 – Andy