アイテムをショッピング カートに送信し、動的に提供されるフィールドを使用して、サイトのコード側から支払いのために PayPal にリダイレクトしたいと考えています。cfhttp を使用してみましたが、リダイレクトされません。試しresolveurl=yes
てみredirect=yes
ましたが、どちらも機能しませんでした。これを行う別の方法はありますか?
<cfhttp method="post" url="https://www.paypal.com/cgi-bin/webscr">
<cfhttpparam type="Formfield" value="_cart" name="cmd">
<cfhttpparam type="Formfield" value="1" name="upload">
<cfhttpparam type="Formfield" value="NZD" name="currency_code">
<cfhttpparam type="Formfield" value="myEmail@gmail.com" name="business">
<cfhttpparam type="Formfield" value="My First Item" name="item_name_1">
<cfhttpparam type="Formfield" value="1.00" name="amount_1">
<cfhttpparam type="Formfield" value="1" name="quantity_1">
<cfhttpparam type="Formfield" value="My Second Item" name="item_name_2">
<cfhttpparam type="Formfield" value="2.00" name="amount_2">
<cfhttpparam type="Formfield" value="2" name="quantity_2">
</cfhttp>