paypal付款亲直接付款检查,如果成功

时间:2013-02-01 16:18:06

标签: php paypal

嘿伙计们希望你能帮助我。

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

我是第一次直接付款,根据他们的整合指南,付款状态应该是“成功”但这是我得到的回复(即我做print_r($doDirectPaymentResponse);变量来自< / p>

$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字段究竟告诉了什么?

1 个答案:

答案 0 :(得分:0)

Ack是您要关注的字段。如果是SuccessSuccessWithWarning,则付款成功完成,TransactionID包含您的交易ID。如果是FailureFailureWithWarning,则不会通过。