7

I'm trying to get this form to initiate a donation using PayPal Payments Standard...

<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
  <input type="hidden" name="cmd" value="_donations">
  <input type="text" name="amount"></input>
  <input type="hidden" name="item_name" value="OrganizationXYZ Donation">
  <input type="hidden" name="image_url" value="http://www.OrganizationXYZ.org/images/logo.gif">
  <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">  
</form>

This seems like it should work according to PayPal's documentation, but it doesn't. Instead I get this error:

"We cannot process this transaction because there is a problem with the PayPal email address supplied by the seller. Please contact the seller to resolve the problem. If this payment is for an eBay listing, you can contact the seller via the "Ask Seller a Question" link on the listing page. When you have the correct email address, payment can be made at www.paypal.com."

This error doesn't make any sense because you do not supply an email address in these forms. Yet it seems to me that my form needs to post some kind of identification- otherwise how would PayPal know which account is receiving the donation? Unless I register a domain vai my PayPal account settings, but there is no place to do that either.

Does anybody have experience with setting this up?

4

4 に答える 4

8

はい、あなたが言ったように、受信者のある種の識別子が必要です。
追加する必要があるのは、「ビジネス」パラメーターです。それで全部です。

<input type="hidden" name="business" value="your secure merchant account ID / email here">
于 2012-06-08T00:14:21.253 に答える
7

マーチャント アカウントが必要です。

ここでチュートリアルを見ることができます:
http://kb.worldsecuresystems.com/833/cpsid_83331.html


このコードを試してください:

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

    <select name="amount">
    <option value="3.99">6 Months ($3.99)</option>
    <option value="5.99">12 Months ($5.99)</option>

    </select>
    <br>
    <input name="currency_code" type="hidden" value="USD">
    <input name="shipping" type="hidden" value="0.00">
    <input name="tax" type="hidden" value="0.00">
    <input name="return" type="hidden" value="urlOnValidPayment">
    <input name="cancel_return" type="hidden" value="UrlOnCancelPayment">
    <input name="notify_url" type="hidden" value="URLForValidationPayement">
    <input name="cmd" type="hidden" value="_xclick">
    <input name="business" type="hidden" value="your e-mail">
    <input name="item_name" type="hidden" value="name of the object">
    <input name="no_note" type="hidden" value="1">
    <input type="hidden" name="no_shipping" value="1">
    <input name="lc" type="hidden" value="EN">
    <input name="bn" type="hidden" value="PP-BuyNowBF">
    <input name="custom" type="hidden" value="custom data">
    <input type="image" src="https://www.paypalobjects.com/en_US/CH/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
    <img alt="" border="0" src="https://www.paypalobjects.com/fr_FR/i/scr/pixel.gif" width="1" height="1">
    </form>

私にとっては仕事です

于 2012-05-31T14:56:04.843 に答える
1

¿あなたは自分で支払いボタンを生成しているだけですか?

メニューのこの部分に移動して、PayPal アカウントにログインすることをお勧めします。

マーチャント サービス -> 主な機能 -> [今すぐ購入] ボタン

次に、寄付ボタンが必要だと思われるボタンの種類を選択します。

次に、全体的なボタン設定を構成します。ボタンをペイパル サーバーに保存することをお勧めします。

最後にボタンの作成を選択します

これにより、適切な HTML コードが得られます。これはサンプルの寄付ボタン HTML です。

<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
  <input type="hidden" name="cmd" value="_donations">
  <input type="hidden" name="business" value="YOUR_BUSINESS_ID">
  <input type="hidden" name="lc" value="US">
  <input type="hidden" name="item_name" value="myorgname">
  <input type="hidden" name="item_number" value="donateid">
  <input type="hidden" name="amount" value="20">
  <input type="hidden" name="currency_code" value="USD">
  <input type="hidden" name="bn" value="PP-DonationsBF:btn_donateCC_LG.gif:NonHosted">
  <input type="hidden" name="custom_variable1" value="val1">
  <input type="hidden" name="custom_variable2" value="val2">
  <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
  <img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
于 2012-05-31T15:14:01.080 に答える
0

Here is your problem:

<input type="hidden" name="cmd" value="_donations">

Paypal's image value in Encrypted Payment System (WPS - EPS) for "cmd" is "_s-xclick" So use it as below:

<input type="hidden" name="cmd" value="_s-xclick">
于 2014-02-13T08:14:28.810 に答える