我有一个PayPal PDT脚本,它可以使用基本信息,但我无法从PayPal PDT获取名字并存储在数据库中
是否可以从PayPal PDT获取名字,姓氏和付款人电子邮件?
如果是这样,任何人都可以提供代码示例
提前谢谢
伊恩
答案 0 :(得分:0)
典型的PDT响应包括以下参数以及first_name
和last_name
。
SUCCESS
mc_gross=20.00
protection_eligibility=Eligible
address_status=unconfirmed
payer_id=7SGRP23PR8MWY
tax=0.00
address_street=3585+Petunia+Way%0D%0Aaddress+222
payment_date=22%3A13%3A13+Jan+03%2C+2016+PST
payment_status=Completed
charset=UTF-8
address_zip=35045
first_name=dasdsa
mc_fee=1.08
address_country_code=US
address_name=XXX+xxxxx
custom=
payer_status=unverified
business=XXX-facilitator%XXX.com
address_country=United+States
address_city=Clanton
quantity=1
payer_email=XXXYYY%40gmail.com
contact_phone=%2B44+1235415478
txn_id=30F91513AJ293961H
payment_type=instant
payer_business_name=testUK
last_name=dsasa
address_state=AL
receiver_email=XXX-XXX%40gmail.com
payment_fee=1.08
shipping_discount=0.00
insurance_amount=0.00
receiver_id=S4X5XW328WAYY
txn_type=web_accept
item_name=testpdt
discount=0.00
mc_currency=USD
item_number=12112
residence_country=GB
shipping_method=Express
handling_amount=0.00
transaction_subject=
payment_gross=20.00
shipping=10.00