1

Paypal 在其 API 中有 CUSTOM 参数...我希望在 CUSTOM 字段中传递多维数组...

  <form id="paypal_form" action="https://sandbox.paypal.com/cgi-bin/webscr" method="post">
    <!-- Identify your business so that you can collect the payments. -->
    <input type="hidden" name="business" value="user@paypal.com">
    <!-- Specify a Buy Now button. -->
    <input type="hidden" name="cmd" value="_xclick">
    <!-- Specify details about the item that buyers will purchase. -->
    <input type="hidden" name="item_name" value="Hot Sauce-12 oz. Bottle">
    <input type="hidden" name="amount" value="10">
    <input type="hidden" name="currency_code" value="USD">
    <!-- Prompt buyers to enter their desired quantities. -->
    <input type="hidden" name="quantity" value="1">
    <input type="hidden" name="notify_url" value="http://www.myurl.com" />
    <!-- Display the payment button. -->
    <input type="image" name="submit" border="0" src="https://www.paypal.com/en_US/i/btn/btn_buynow_LG.gif" alt="PayPal - The safer, easier way to pay online" />
    <input type="hidden" value="1" name="custom[]" />
    <input type="hidden" value="11" name="custom[]" />
  </form>

它在单个自定义字段上工作正常,但多自定义字段不起作用......

4

1 回答 1

1

您应该传递所有值,例如 1,2,3,4,5,6....

返回 url 您将获得自定义字符串并将其转换为字符串数组

于 2012-12-29T08:24:25.717 回答