PayPal表单提交显示404 PayPal页面,当从iPhone中的Facebook Messenger单击链接时

PayPal form submissions shows 404 PayPal page when link is clicked from Facebook messenger in iPhone

提问人:Saurav Arya 提问时间:3/16/2023 更新时间:3/16/2023 访问量:58

问:

以下是 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>
php iphone facebook PayPal facebook-messenger

评论

0赞 Preston PHX 3/16/2023
从浏览器获取时,这会呈现为什么 HTML?
0赞 Saurav Arya 3/16/2023
@PrestonPHX HTML 5
0赞 Preston PHX 3/16/2023
页面内容
0赞 Saurav Arya 3/16/2023
@PrestonPHX 请查看 - prnt.sc/gvotALGkcHJx
0赞 Saurav Arya 3/16/2023
@PrestonPHX 3 秒后,页面重定向到PayPal 404 未找到页面。只有在iPhone上的Facebook Messenger中共享链接时,才会发生这种情况,在其他情况下可以正常工作。

答: 暂无答案