查看PayPal支付来自eBay的PayPal IPN

时间:2016-10-20 12:14:10

标签: paypal listener paypal-ipn ebay

如何阻止eBay PayPal支付给IPN听众? (首选,但可能不可能?) 或者 - 我如何让我的听众询问付款的来源? 如果从eBay做什么/只是验证(或存储在表中希望将来扩展我的订单管理系统,比如说) 如果从myshop日志订单发票,发送等

我可以使用哪种IPN变量?检查项目编号的长度,也许? UMM

1 个答案:

答案 0 :(得分:1)

如果它来自eBay,则会包含一个for_auction参数,该参数设置为true。您还将ebay_txn_idn,其中n是项目数组的编号。此外,还会包含auction_buyer_id。有很多选择来标记这些。

以下是来自eBay拍卖的IPN示例:

Array
(
    [mc_gross] => 440.99
    [protection_eligibility] => Eligible
    [for_auction] => true
    [address_status] => confirmed
    [item_number1] => 232029148438
    [tax] => 0.00
    [payer_id] => 83W5CCCCCCCS6
    [ebay_txn_id1] => 1370976126013
    [address_street] => 123 Test Ave
    [payment_date] => 23:52:09 Oct 20, 2016 PDT
    [payment_status] => Completed
    [charset] => windows-1252
    [address_zip] => 59840-2149
    [mc_shipping] => 21.00
    [first_name] => David
    [mc_fee] => 10.00
    [auction_buyer_id] => comasdfr33
    [address_country_code] => US
    [address_name] => Tester Testerson
    [notify_version] => 3.8
    [custom] => EBAY_EMSCX0000687394734010
    [payer_status] => unverified
    [business] => sales@domain.com
    [address_country] => United States
    [num_cart_items] => 1
    [address_city] => Hamilton
    [verify_sign] => A0av94YibvcTZFf.ILwh4u8suh06AqfSvHzsAv3r.zSG91GuDFSbZ.Mw
    [payer_email] => asdfg@gmx.com
    [contact_phone] => 408-636-6400
    [txn_id] => 9EX39945FA6779640
    [payment_type] => instant
    [last_name] => Testerson
    [address_state] => MT
    [item_name1] => Zebra GX420d USB/Serial/Ethernet Mono Direct Printer
    [receiver_email] => sales@domain.com
    [payment_fee] => 10.00
    [quantity1] => 1
    [receiver_id] => EMY7DGXTF8ZVE
    [insurance_amount] => 0.00
    [txn_type] => cart
    [item_name] => Zebra GX420d USB/Serial/Ethernet Mono Direct Printer
    [mc_gross_1] => 419.99
    [mc_currency] => USD
    [item_number] => 232029148438
    [residence_country] => US
    [receipt_id] => 0428-5320-1923-6500
    [transaction_subject] => 
    [payment_gross] => 440.99
    [ipn_track_id] => 9429e4ed195db
)