我似乎无法为他们的直接付款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字段究竟告诉了什么?
答案 0 :(得分:0)
Ack
是您要关注的字段。如果是Success
或SuccessWithWarning
,则付款成功完成,TransactionID
包含您的交易ID。如果是Failure
或FailureWithWarning
,则不会通过。