简体   繁体   English

Paypal进行直接付款时出错

[英]Error in Paypal Do Direct Payment

I have integrated paypal direct payment code from here . 我从这里集成了贝宝直接付款代码。 It is working fine for me. 对我来说很好。 when i change the credential. 当我更改凭据时。 It is not working. 它不起作用。 I am using only sandbox credential and in code also i set environment into sandbox still it gives me fail message like this 我只使用沙箱凭据,并且在代码中我也将环境设置为沙箱,但仍然给我这样的失败消息

    DoDirectPayment failed: Array
    (
    [TIMESTAMP] => 2015%2d04%2d15T07%3a07%3a57Z
    [CORRELATIONID] => 33533f9e698e3
    [ACK] => Failure
    [VERSION] => 51%2e0
    [BUILD] => 16204765
    [L_ERRORCODE0] => 10501
    [L_SHORTMESSAGE0] => Invalid%20Configuration
    [L_LONGMESSAGE0] => This%20transaction%20cannot%20be%20processed%20due%20to%20an%20invalid%20merchant%20configuration%2e
    [L_SEVERITYCODE0] => Error
    [AMT] => 1%2e00
    [CURRENCYCODE] => CAD
)

When I use default api credential It is working like a charm 当我使用默认的api凭据时,它就像一个魅力

Direct Payment Completed Successfully: Array
(
[TIMESTAMP] => 2015%2d04%2d15T07%3a30%3a11Z
[CORRELATIONID] => 92a0a29a332cc
[ACK] => Success
[VERSION] => 51%2e0
[BUILD] => 16204765
[AMT] => 1%2e00
[CURRENCYCODE] => CAD
[AVSCODE] => X
[CVV2MATCH] => M
[TRANSACTIONID] => 2BG0687660710122T
)

That means that DoDirectPayment is not enabled on your live account. 这意味着您的真实帐户未启用DoDirectPayment。 This could be because you've never applied for Payments Pro (which needs to be approved) or you have been approved but you haven't agreed to the $30/mo they charge for it, which you would do from the overview page in your PayPal account when you login (if it hasn't been done already.) 这可能是因为您从未申请过Payments Pro(需要获得批准),或者您已经获得批准,但您尚未同意他们为此收取的30美元/月的费用,您可以在您的概览页面中进行此操作登录时的PayPal帐户(如果尚未完成)。

Once Pro is approved and enabled on your account the DoDirectPayment API would be available to you, and then this error would go away. 在您的帐户上批准Pro并启用Pro后,DoDirectPayment API将对您可用,然后该错误就会消失。

Another possibility, though not as likely, is that you have been approved and even completed the agreement for Pro, but you were setup with PayFlow instead of the PayPal API. 另一种可能性(虽然可能性不大)是您已经获得批准,甚至已经完成了Pro协议,但您是使用PayFlow而不是PayPal API进行设置的。 In this case you would have to contact PayPal and request that they enable "Website Payments Pro 3.0" for you. 在这种情况下,您必须联系PayPal,并要求他们为您启用“ Website Payments Pro 3.0”。 If they say they can't, you would have to redevelop your stuff to work with the PayFlow API instead of DoDirectPayment. 如果他们说不能,则您必须重新开发自己的内容以使用PayFlow API而不是DoDirectPayment。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM