提问人:Saurav Arya 提问时间:3/16/2023 更新时间:3/16/2023 访问量:58
PayPal表单提交显示404 PayPal页面,当从iPhone中的Facebook Messenger单击链接时
PayPal form submissions shows 404 PayPal page when link is clicked from Facebook messenger in iPhone
问:
以下是 PayPal 表单和表单提交脚本。它在Android和桌面上运行良好,但是当从iPhone中的Facebook Messenger打开链接时,它会显示PayPal 404未找到页面。
参考代码如下:
<form action="<?php echo $paypal_form_url; ?>" method="post" id="pyPal">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="<?php echo $paypal_email; ?>">
<input type="hidden" name="item_name" value="<?php echo strtoupper( str_replace("_", " ", $record_find_slug['NewCheckout']['name']) ) ?>">
<input type="hidden" name="item_number" value="NA">
<input type="hidden" id="paypal_amount" name="amount" value="<?php echo $payment_data['CheckoutUser']['amount'] ?>">
<input type="hidden" name="no_shipping" value="0">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="lc" value="AU">
<input type="hidden" name="bn" value="PP-BuyNowBF">
<input type="hidden" name="rm" value="2">
<input type="hidden" id="paypal_invoice_id" name="invoice" value="<?php echo base64_decode($invoice_id); ?>">
<input type="hidden" id="paypal_return" name="return" value="<?php echo $return_url; ?>">
<input type="hidden" name="notify_url" value="<?php echo BASE_URL ?>/checks/paypal_payment">
<input style="display: none;" id="paypal_submit_trigger" type="image" src="https://www.paypalobjects.com/webstatic/en_US/i/buttons/PP_logo_h_150x38.png" 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>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script type="text/javascript">
setTimeout(function(){ $("#pyPal").submit(); }, 3000);
</script>
答: 暂无答案
评论