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 に答える