在创建paypal'订阅后捕获授权付款时,问题`Zero_outantate_balance`

发布于 2025-02-05 08:44:20 字数 1810 浏览 2 评论 0原文

在创建paypal 中创建订阅后,捕获授权付款时,请低于错误。如果有人知道为什么会发生或有任何解决方案,请回复。

捕获给定订阅ID的付款的代码。给出以下包括错误。

$provider = new PayPalClient;
$provider->getAccessToken();
$response = $provider->captureSubscriptionPayment($request->input('subscription_id'), 'capturing payment', (float)$package->price);

错误: -

`{
    "name":"UNPROCESSABLE_ENTITY",
    "message":"The requested action could not be performed, semantically incorrect, or failed business validation.",
    "debug_id":"2e3384fe1998b",
    "details":[
        {
            "issue":"ZERO_OUTSTANDING_BALANCE",
            "description":"Current outstanding balance should be greater than zero."
        }
    ],
    "links":[
        {
            "href":"https://developer.paypal.com/docs/api/v1/billing/subscriptions#UNPROCESSABLE_ENTITY",
            "rel":"information_link","method":"GET"
        }
    ]
}`

{
    "name":"UNPROCESSABLE_ENTITY",
    "message":"The requested action could not be performed, semantically incorrect, or failed business validation.",
    "debug_id":"b1c0f40b4e56b",
    "details":[
        {
            "issue":"AMOUNT_GREATER_THAN_OUTSTANDING_BALANCE",
            "description":"The new outstanding balance can not be greater than the current outstanding balance."
        }
    ],
    "links":[
        {
            "href":"https://developer.paypal.com/docs/api/v1/billing/subscriptions#UNPROCESSABLE_ENTITY",
            "rel":"information_link","method":"GET"
        }
    ]
}

另一个问题是,在创建产品之后,计划&通过API订阅,这些创建产品,计划&在仪表板(沙盒PayPal帐户)中不可见订阅。但是,当通过API检索时,我会得到所有细节。请告诉我为什么会发生或在哪里看到这些。

ps:我正在使用https://srmklive.github.io/laravel-paypal/docs.html api api创建产品/计划/订阅。

Getting below error when Capturing authorized payment just after creating subscription in PAYPAL. if anyone have idea about why it's happening or got any solution, please reply.

code for capturing the payment of given subscription id. which giving below included error.

$provider = new PayPalClient;
$provider->getAccessToken();
$response = $provider->captureSubscriptionPayment($request->input('subscription_id'), 'capturing payment', (float)$package->price);

Error:-

`{
    "name":"UNPROCESSABLE_ENTITY",
    "message":"The requested action could not be performed, semantically incorrect, or failed business validation.",
    "debug_id":"2e3384fe1998b",
    "details":[
        {
            "issue":"ZERO_OUTSTANDING_BALANCE",
            "description":"Current outstanding balance should be greater than zero."
        }
    ],
    "links":[
        {
            "href":"https://developer.paypal.com/docs/api/v1/billing/subscriptions#UNPROCESSABLE_ENTITY",
            "rel":"information_link","method":"GET"
        }
    ]
}`

{
    "name":"UNPROCESSABLE_ENTITY",
    "message":"The requested action could not be performed, semantically incorrect, or failed business validation.",
    "debug_id":"b1c0f40b4e56b",
    "details":[
        {
            "issue":"AMOUNT_GREATER_THAN_OUTSTANDING_BALANCE",
            "description":"The new outstanding balance can not be greater than the current outstanding balance."
        }
    ],
    "links":[
        {
            "href":"https://developer.paypal.com/docs/api/v1/billing/subscriptions#UNPROCESSABLE_ENTITY",
            "rel":"information_link","method":"GET"
        }
    ]
}

Another issue is, after creating products, plans & subscription through api, these created products, plans & subscriptions are not visible in dashboard(sandbox paypal account). but when retrieving through api i'm getting all the details. kindly tell why its happening or where to see these.

ps: i'm using https://srmklive.github.io/laravel-paypal/docs.html api for creating products/plans/subscriptions.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

三五鸿雁 2025-02-12 08:44:20

根据PLAN_ID的Billing_cycles和/或覆盖计划对象,payPal订阅账单会自动自动。这就是订阅的目的。

当尚未遗漏自动付款时,就没有账单的未偿余额。如果没有未偿还账单的余额,则无法手动捕获付款。

PayPal Subscriptions bill automatically, according to the billing_cycles of the plan_id and/or override plan object when the subscription is created. That is the purpose of subscriptions.

When automatic payments have not been missed, there is no outstanding balance to bill. When there is no outstanding balance to bill, payment cannot be captured manually.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文