0

嘿家伙希望你能帮助我。

我似乎无法为他们的直接付款 api 和变量找到任何适当的参考或文档,所以我现在在这里问。

我是第一次直接付款,根据他们的集成指南,付款状态应该是“成功”,但这是我得到的响应(即我做 print_r($doDirectPaymentResponse); 变量来自哪里

$doDirectPaymentResponse = $paypalService->DoDirectPayment($doDirectPaymentReq,$credential_object); )

DoDirectPaymentResponseType Object
(
    [Amount] => BasicAmountType Object
        (
            [currencyID] => USD
            [value] => 12.00
        )

    [AVSCode] => X
    [CVV2Code] => M
    [TransactionID] => 9H515811FE178263Y
    [PendingReason] => 
    [PaymentStatus] => 
    [FMFDetails] => 
    [ThreeDSecureResponse] => 
    [PaymentAdviceCode] => 
    [Timestamp] => 2013-02-01T15:56:31Z
    [Ack] => Success
    [CorrelationID] => a0a240936bf65
    [Errors] => 
    [Version] => 94.0
    [Build] => 5060305
)

另外, ack 字段到底说明了什么?

4

1 回答 1

0

Ack是你要关注的领域。如果是SuccessSuccessWithWarning,则支付成功,并且TransactionID有您的交易ID。如果是FailureFailureWithWarning,则没有通过。

于 2013-02-01T19:38:20.737 回答