{"id":254,"title":"paypal\u652f\u4ed8\u7801\u751f\u6210\u53ca\u8fd4\u56de\u6570\u636e\u683c\u5f0f","good":0,"bad":0,"hit":2092,"created_at":"2017-01-13 10:50:21","content":"

\/** * \u751f\u6210\u652f\u4ed8\u4ee3\u7801 * @param   array   $order  \u8ba2\u5355\u4fe1\u606f * @param   array   $payment    \u652f\u4ed8\u65b9\u5f0f\u4fe1\u606f *\/function paypal($arr){    \/\/\u6c99\u7bb1https:\/\/www.sandbox.paypal.com\/cgi-bin\/webscr     hermione@hogwarts.com     \/\/https:\/\/www.paypal.com\/cgi-bin\/webscr    $goUrl='\u4f60\u7684\u57df\u540d\/en-us\/User\/index.html';\/\/\u8bf7\u6c42\u7684\u6574\u4e2a\u7f51\u5740    $checkurl = '\u4f60\u7684\u57df\u540d\/en-us\/Pay\/paypalrespons.html';    $def_url  = '<br \/><form class="paypalform"  action="https:\/\/www.paypal.com\/cgi-bin\/webscr" method="post" >' .   \/\/ \u4e0d\u80fd\u7701\u7565        "<input type='hidden' name='cmd' value='_xclick'>" .                             \/\/ \u4e0d\u80fd\u7701\u7565        "<input type='hidden' name='business' value='\u4f60\u7684\u5e10\u53f7'>" . \/\/ \u8d1d\u5b9d\u5e10\u53f7        "<input type='hidden' name='item_name' value='{$arr['orderid']}'>" . \/\/ \u8ba2\u5355\u53f7        "<input type='hidden' name='amount' value='{$arr['money_all']}'>" .\/\/ \u8ba2\u5355\u91d1\u989d        "<input type='hidden' name='currency_code' value='USD'>" . \/\/ \u8d27\u5e01        "<input type='hidden' name='return' value='{$checkurl}'>" .\/\/ \u4ed8\u6b3e\u540e\u9875\u9762        "<input type='hidden' name='invoice' value='{$arr['id']}'>" . \/\/ \u8ba2\u5355id\u53f7        "<input type='hidden' name='charset' value='utf-8'>" .\/\/ \u5b57\u7b26\u96c6        "<input type='hidden' name='no_shipping' value='5'>" .\/\/ \u4e0d\u8981\u6c42\u5ba2\u6237\u63d0\u4f9b\u6536\u8d27\u5730\u5740        "<input type='hidden' name='no_note' value=''>" .\/\/\u4ed8\u6b3e\u8bf4\u660e        "<input type='hidden' name='notify_url' value='{$goUrl}'>" .        "<input type='hidden' name='rm' value='2'>" .        "<input type='hidden' name='cancel_return' value='{$goUrl}'>" .        "<input type='submit' value='paymengt'>" .\/\/ \u6309\u94ae        "<\/form><br \/>";    return $def_url;}<\/p>

<\/p>

\/** * \u652f\u4ed8\u5b8c\u6210\u540epaypal\u540c\u6b65\u901a\u77e5\u9875\u9762\uff0c\u8fd4\u56de\u7684\u6570\u636e\u683c\u5f0f\u5982\u4e0b\uff0c\u53ef\u4ee5\u7528\u6765\u505a\u76f8\u5173\u4e1a\u52a1\u64cd\u4f5c *\/public function paypalrespons(){        \/**     * Array           (               [mc_gross] => 645.00               [invoice] => 62               [protection_eligibility] => Eligible               [address_status] => confirmed               [payer_id] => EXGN523AGY78U               [tax] => 0.00               [address_street] => 55 East 52nd Street 21st Floor               [payment_date] => 23:41:20 May 20, 2016 PDT               [payment_status] => Completed               [charset] => utf-8               [address_zip] => 10022               [first_name] => Joe               [mc_fee] => 19.01               [address_country_code] => US               [address_name] => Alegra Valava               [notify_version] => 3.8               [custom] =>               [payer_status] => verified               [business] => hermione@hogwarts.com               [address_country] => United States               [address_city] => New York               [quantity] => 1               [payer_email] => joe@boe.com               [verify_sign] => AiPC9BjkCyDFQXbSkoZcgqH3hpacAJsBJMy0YgkcY8Gikt5RDV-9Ty.B               [txn_id] => 31843824BT0138336               [payment_type] => instant               [last_name] => Boe               [address_state] => NY               [receiver_email] => hermione@hogwarts.com               [payment_fee] => 19.01               [receiver_id] => SFP5SC9MD29XQ               [txn_type] => web_accept               [item_name] => 20160521123325183               [mc_currency] => USD               [item_number] =>               [residence_country] => US               [test_ipn] => 1               [handling_amount] => 0.00               [transaction_subject] =>               [payment_gross] => 645.00               [shipping] => 0.00               [merchant_return_link] => click here               [auth] => AP0Wf6tkagmR93ogjWuE7PHv1W4WJ6NXm-G-Oz7YxaUP3CyP.af5sWV2.Qt-c5xPOg6.s08WZuDfHqFJ0Lpt-qA           )     *\/<\/p>

\uff5d<\/p>"}