我在PayPal沙箱中创建了两个测试帐户(买方和卖方)。然后尝试通过我的简单网络应用程序转账。我正在使用DoDirectPayment方法汇款。方法返回以下结果:
Direct Payment Completed Successfully: Array ( [TIMESTAMP] => 2012%2d07%2d30T17%3a27%3a38Z [CORRELATIONID] => 83da0b009d36d [ACK] => Success [VERSION] => 92%2e0 [BUILD] => 3288089 [AMT] => 10%2e00 [CURRENCYCODE] => USD [AVSCODE] => X [CVV2MATCH] => M [TRANSACTIONID] => 0MJ25519PP687260E )
交易成功完成,但我遇到了测试账户资金的问题。我用1000.00美元从账户转账10.00美元,但买家账户金额没有变化。所以卖家得到了他的10.00美元,他的金额是(200.00美元+10.00美元-费用)。当我以卖家身份登录时,我可以看到带有转账操作的交易历史记录。但当我以买家交易历史记录为空的身份登录时。
为了检查事务细节,我使用了GetTransactionDetails方法。结果如下:
GetTransactionDetails Completed Successfully: Array ( [RECEIVERBUSINESS] => lukina_1343245948_biz%40gmail%2ecom [RECEIVEREMAIL] => lukina_1343245948_biz%40gmail%2ecom [RECEIVERID] => 7YKBZRV887SUC [PAYERID] => AJPWLMQCND7SG [PAYERSTATUS] => unverified [COUNTRYCODE] => US [ADDRESSOWNER] => PayPal [ADDRESSSTATUS] => None [SALESTAX] => 0%2e00 [SHIPAMOUNT] => 0%2e00 [SHIPHANDLEAMOUNT] => 0%2e00 [TIMESTAMP] => 2012%2d07%2d30T17%3a27%3a40Z [CORRELATIONID] => 56291b407d388 [ACK] => Success [VERSION] => 92%2e0 [BUILD] => 3386080 [FIRSTNAME] => Joe [LASTNAME] => Bell [TRANSACTIONID] => 0MJ25519PP687260E [RECEIPTID] => 3093%2d6316%2d6806%2d7055 [TRANSACTIONTYPE] => webaccept [PAYMENTTYPE] => instant [ORDERTIME] => 2012%2d07%2d30T17%3a27%3a37Z [AMT] => 10%2e00 [FEEAMT] => 0%2e59 [TAXAMT] => 0%2e00 [CURRENCYCODE] => USD [PAYMENTSTATUS] => Completed [PENDINGREASON] => None [REASONCODE] => None [PROTECTIONELIGIBILITY] => Ineligible [PROTECTIONELIGIBILITYTYPE] => None [L_QTY0] => 1 [L_TAXAMT0] => 0%2e00 [L_CURRENCYCODE0] => USD )
有什么想法吗?谢谢
在Sandbox模式下,买家的账户不会在交易中提取资金。它解决了我的问题。
使用DoDirectPayment
API,您可以直接向信用卡收费。即使这张信用卡碰巧连接到一个活动的PayPal账户,它也不会显示在该账户的交易历史记录中。
这是经过设计的。如果你想向某人的PayPal账户收费(因此不是直接向信用卡收费),你可以使用PayPal Express Checkout。