私の Drupal サイトには、寄付を処理するために送信時に Paypal にリダイレクトする寄付フォームがあります。ただし、キャンペーン(寄付できるノード)に「の」という名前が付いている場合、PP は HTML 文字で表示します。以下のスクリーンショットは、クエリをより明確にするはずです。
サンプルキャンペーン。http://screencast.com/t/FhlgSgZJU
これは、PPランディングページでどのように見えるかです. http://screencast.com/t/T8jTcxLtKo
関数内にあるこれらのサンプル コードは、私の寄付フォームからの値を Paypal に渡し、そこにリダイレクトします。
$paypal = array(
'cmd' => '_donations',
'business' => $client_paypal_acct, // PayPal account email
'bn' => 'GM_Donate_WPS_US',
'page_style' => 'primary',
'item_name' => $this->params['campain_title'], // all other may need not be placed here as this variable is only needed for my query.
);
$query = http_build_query($paypal, '', '&');
$url = 'https://www.paypal.com/cgi-bin/webscr?' . $query;
drupal_goto($url);