我正在使用PayPal的DoDirect方法 用户使用该表单进行了交易。交易成功完成 但遗憾的是,我将查询值插入数据库的查询无效。因此,我的网站上没有关于此交易的信息 当我看到PayPal时,无法联系用户,因为PayPal不会保存买家的电子邮件ID 所以我想问一下,我们可以使用DoDirect方法在PayPal上保存买家的电子邮件ID吗?
答案 0 :(得分:0)
是的,您只需要确保将其包含在DoDirectPayment请求中。您能提供您发送的请求样本吗?
我无法重现您在沙盒中发生的事情。这是我刚刚发送的示例请求。
[REQUESTDATA] => Array
(
[USER] => ***
[PWD] => ***
[VERSION] => 119.0
[BUTTONSOURCE] => AngellEYE_PHPClass
[SIGNATURE] => ***
[METHOD] => DoDirectPayment
[PAYMENTACTION] => Sale
[IPADDRESS] => 127.0.0.1
[RETURNFMFDETAILS] => 1
[CREDITCARDTYPE] => MasterCard
[ACCT] => 5522340006063638
[EXPDATE] => 022016
[CVV2] => 456
[EMAIL] => sandbox@domain.com
[FIRSTNAME] => Tester
[LASTNAME] => Testerson
[STREET] => 707 W. Bay Drive
[CITY] => Largo
[STATE] => FL
[COUNTRYCODE] => US
[ZIP] => 33770
[AMT] => 3.00
[CURRENCYCODE] => USD
[DESC] => Testing Payments Pro DESC Field
[CUSTOM] => TEST
[L_NAME0] => Test Widget
[L_DESC0] => This is a test widget description.
[L_AMT0] => 1.00
[L_NUMBER0] => ABC-123
[L_QTY0] => 1
[L_NAME1] => Test Widget 2
[L_DESC1] => This is a test widget description.
[L_AMT1] => 2.00
[L_NUMBER1] => ABC-XYZ
[L_QTY1] => 1
)
然后,这是我在运行GetTransactionDetails时看到的,这是我从该请求中获取的事务ID,其中包含EMAIL参数中的电子邮件地址。
Array
(
[RECEIVERBUSINESS] => sandbo_1215254764_biz@angelleye.com
[RECEIVEREMAIL] => sandbo_1215254764_biz@angelleye.com
[RECEIVERID] => ATSCG2QMC9KAU
[EMAIL] => sandbox@domain.com
[PAYERID] => WH8FUF8Q2TTU8
[PAYERSTATUS] => unverified
[COUNTRYCODE] => US
[ADDRESSOWNER] => PayPal
[ADDRESSSTATUS] => None
[CUSTOM] => TEST
[SALESTAX] => 0.00
[SOFTDESCRIPTOR] => DREWANGELLS
[TIMESTAMP] => 2014-12-22T09:03:28Z
[CORRELATIONID] => 3271f4646a9a0
[ACK] => Success
[VERSION] => 119.0
[BUILD] => 14077178
[FIRSTNAME] => Tester
[LASTNAME] => Testerson
[TRANSACTIONID] => 54978042VY932040V
[RECEIPTID] => 4345-6492-8319-3894
[TRANSACTIONTYPE] => cart
[PAYMENTTYPE] => instant
[ORDERTIME] => 2014-12-22T09:01:25Z
[AMT] => 3.00
[FEEAMT] => 0.44
[TAXAMT] => 0.00
[SHIPPINGAMT] => 0.00
[HANDLINGAMT] => 0.00
[CURRENCYCODE] => USD
[PAYMENTSTATUS] => Completed
[PENDINGREASON] => None
[REASONCODE] => None
[PROTECTIONELIGIBILITY] => Ineligible
[PROTECTIONELIGIBILITYTYPE] => None
[L_NAME0] => Test Widget
[L_NAME1] => Test Widget 2
[L_NUMBER0] => ABC-123
[L_NUMBER1] => ABC-XYZ
[L_QTY0] => 1
[L_QTY1] => 1
[L_TAXAMT0] => 0.00
[L_TAXAMT1] => 0.00
[L_SHIPPINGAMT0] => 0.00
[L_SHIPPINGAMT1] => 0.00
[L_HANDLINGAMT0] => 0.00
[L_HANDLINGAMT1] => 0.00
[L_CURRENCYCODE0] => USD
[L_CURRENCYCODE1] => USD
[L_TAXABLE0] => false
[L_TAXABLE1] => false
[L_AMT0] => 1.00
[L_AMT1] => 2.00
)
您是否可以提供类似的示例集,其中GetTransactionDetails响应不包含电子邮件地址?