gpt4 book ai didi

paypal - 为什么即使值是正确的,PayPal 也会显示无效的常规周期?

转载 作者:太空宇宙 更新时间:2023-11-03 16:07:08 26 4
gpt4 key购买 nike

我正在提交以下表格,但 PayPal 总是给出一条错误消息:

Invalid Regular period. You must specify valid values for the A3, P3, and T3 parameters for a subscription.

问题:我的 html 表单有什么问题,其中 A3、P3 和 T3 具有有效值?

用于订阅付款的 PayPal Html 表单

   <form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post" target="_top">

<input type="hidden" name="business" value="someValidValue">
<input type="hidden" name="cmd" value="_xclick-subscriptions">
<input type="hidden" name="return" value="http://www.xyz/pc.aspx" />
<input type="hidden" name="custom" value="23V125,new,architect" />
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="A3" value="200" />
<input type="hidden" name="T3" value="M" />
<input type="hidden" name="P3" value="1" />
<input type="hidden" name="item_name" value="Gold" />
<input type="hidden" name="max_text" value="Commit up to 50 loads per month and unlimited viewing/searching" />
<input type="hidden" name="src" value="1"> <!-- recurring=yes -->
<input type="hidden" name="sra" value="1"> <!-- reattempt=yes -->
<div style="display:inline-block;margin-top:50px;">
<input type="image" src="https://www.sandbox.paypal.com/en_US/i/btn/btn_subscribeCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.sandbox.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
</div>
</form>

最佳答案

我需要以小写形式指定 A3T3P3。这解决了我的问题。

此外,始终确保 a3 的值不超过 2 位小数; a3 的值没有小数位就可以了。因此,值 200、200.34 或 200.1 会起作用,但 200.0000 或 200.345 不起作用。

我在 https://developer.paypal.com/docs/classic/ipn/integration-guide/IPNandPDTVariables/ 的 PayPal 文档中发现了一个关于这个问题的有用事实。

IPN and PDT variable names are case-sensitive. All constant values are lowercase, except those for payment_status, whose constant values have an initial capital letter.

关于paypal - 为什么即使值是正确的,PayPal 也会显示无效的常规周期?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37370012/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com