【问题标题】:paypal Adaptive Payment-You do not have permission to constrain funding sourcespaypal Adaptive Payment-您无权限制资金来源
【发布时间】:2013-06-26 22:46:52
【问题描述】:

当我尝试使用 paypal 自适应付款进行付款时出现错误。我在 sanbox 中获得成功确认。但它不能在现场工作。我用谷歌搜索了它,找不到合适的答案。 以下是我的付款要求

<?xml version="1.0" encoding="utf-8"?>
<PayRequest xmlns="http://svcs.paypal.com/types/ap">
<requestEnvelope xmlns=""><detailLevel>ReturnAll</detailLevel>
<errorLanguage>en_US</errorLanguage></requestEnvelope>
<actionType xmlns="">PAY</actionType><cancelUrl xmlns="">cancel url</cancelUrl>
<clientDetails xmlns=""><applicationId xmlns="">APP-2JdfdfdfdfK4691244F</applicationId>
<ipAddress xmlns="">122.166.240.144</ipAddress>
</clientDetails>
<currencyCode xmlns="">GBP</currencyCode>
<feesPayer xmlns="">EACHRECEIVER</feesPayer>
<fundingConstraint xmlns="">
<allowedFundingType xmlns="">
<fundingTypeInfo xmlns="">
<fundingType xmlns="">ECHECK</fundingType>
</fundingTypeInfo><fundingTypeInfo xmlns="">
<fundingType xmlns="">BALANCE</fundingType></fundingTypeInfo>
<fundingTypeInfo xmlns="">
    <fundingType xmlns="">CREDITCARD</fundingType>
</fundingTypeInfo>
</allowedFundingType>
</fundingConstraint>
<ipnNotificationUrl xmlns="">notification url</ipnNotificationUrl>
<memo xmlns="">test</memo><preapprovalKey xmlns="">PA-35656565E907913S</preapprovalKey>
<receiverList xmlns=""><receiver xmlns=""><amount xmlns="">100</amount>
    <email xmlns="">anooj08@gmail.com</email>
    <invoiceId xmlns="">123456789</invoiceId>
    <paymentType xmlns="">SERVICE</paymentType>
</receiver>
</receiverList>
<sender><useCredentials xmlns="">false</useCredentials></sender>
<account xmlns="">
    <phone xmlns=""></phone>
</account>
<returnUrl xmlns="">redirect url</returnUrl><reverseAllParallelPaymentsOnError xmlns="">TRUE</reverseAllParallelPaymentsOnError>
</PayRequest>

我收到了这个回复

Array
(
    [Errors] => Array
        (
            [0] => Array
                (
                    [Receiver] => 
                    [Category] => Application
                    [Domain] => PLATFORM
                    [ErrorID] => 550001
                    [ExceptionID] => 
                    [Message] => You do not have permission to constrain funding sources
                    [Parameter] => 
                    [Severity] => Error
                    [Subdomain] => Application
                )

        )

    [Ack] => Failure
    [Build] => 6520082
    [CorrelationID] => 57dbec06d371f
    [Timestamp] => 2013-06-28T21:43:10.518-07:00
    [PayKey] => 
    [PaymentExecStatus] => 
    [RedirectURL] => 
    [XMLRequest] => my xml request
    [XMLResponse] =>response
)

【问题讨论】:

    标签: php codeigniter paypal paypal-adaptive-payments


    【解决方案1】:

    检查资金限制:

    <fundingConstraint>
    <fundingTypeInfo xmlns="">
    <fundingType xmlns="">ECHECK</fundingType>
    </fundingTypeInfo>
    <fundingTypeInfo xmlns="">
    <fundingType xmlns="">BALANCE</fundingType>
    </fundingTypeInfo>
    <fundingTypeInfo xmlns="">
    <fundingType xmlns="">CREDITCARD</fundingType>
    </fundingTypeInfo>
    </fundingConstraint>
    

    地址为here

    fundingConstraint New field: ap:FundingConstraint Specifies a list of allowed
    funding     types for the payment. This list can be in any order. If this field is
    omitted, the payment can be funded by any funding type that is supported by Adaptive
    Payments. NOTE: This feature is available for applications with special permission level. 
    

    【讨论】:

    • 正如上面提到的@kwishnu,您需要获得设置资金限制的权限。但看起来你无论如何都设置了所有三种类型 - 所以你不需要设置资金限制。只需删除该字段。如果您确实需要设置此权限 - 请在您的申请请求中从 apps.paypal.com 提交您的请求。
    【解决方案2】:

    从您的付款请求中删除以下代码并尝试确保它会起作用。

    <fundingConstraint xmlns="">
    <allowedFundingType xmlns="">
    <fundingTypeInfo xmlns="">
    <fundingType xmlns="">ECHECK</fundingType>
    </fundingTypeInfo><fundingTypeInfo xmlns="">
    <fundingType xmlns="">BALANCE</fundingType></fundingTypeInfo>
    <fundingTypeInfo xmlns="">
        <fundingType xmlns="">CREDITCARD</fundingType>
    </fundingTypeInfo>
    </allowedFundingType>
    </fundingConstraint>
    

    【讨论】:

      猜你喜欢
      • 2013-05-25
      • 2012-08-13
      • 2012-08-08
      • 2012-05-29
      • 2020-09-01
      • 2013-12-29
      • 1970-01-01
      • 2013-09-13
      • 1970-01-01
      相关资源
      最近更新 更多