php paypal refund,php

编程入门 行业动态 更新时间:2024-10-07 10:22:33

<a href=https://www.elefans.com/category/jswz/34/1770834.html style=php paypal refund,php"/>

php paypal refund,php

贝宝环境:

沙盒

Checkout API v2(PHP + JS)

Webhooks事件处理

我正在尝试使用Paypal Checkout API v2退款给Capture。

我实施了以下Paypal Checkout流程:

客户选择“ Paypal”作为付款方式

创建贝宝订单: new OrdersCreateRequest();

捕获付款: new OrdersCaptureRequest($orderId);

Webhook事件处理(订购和捕获事件)...

退款捕获付款: new CapturesRefundRequest( $captureId);

Webhook事件处理(退款事件)...

一切正常。 但是,如果步骤1中的客户选择Sofort或GiroPay而不是Paypal作为付款方式,则在执行CapturesRefundRequest时,我在步骤5出现以下Paypal错误:

{

"name":"UNPROCESSABLE_ENTITY",

"message":"The requested action could not be performed, semantically incorrect, or failed business validation.",

"debug_id":"1a6a... etc.",

"details":[{

"issue":"REFUND_FAILED_INSUFFICIENT_FUNDS",

"description":"Capture could not be refunded due to insufficient funds. Please check to see if you have sufficient funds in your PayPal account or if the bank account linked to your PayPal account is verified and has sufficient funds."

}],

"links":[{

"href":"","rel":"information_link"

}]

}

我正在沙盒模式下执行此操作。 我的沙盒帐户配置正确且已更改。 默认的银行帐户已关联,并且在PayPal沙箱帐户中有足够的资金。

我不知道在退还“ sofort”或“ giropay”付款时出了什么问题。

在右列(退款)上,某些付款方式可立即退款(Paypal,Visa),而其他付款方式(sofort,giropay等)则可在180天内退款。

我是否会基于这些功能得到该错误? 如是? 怎样才能退还这种付款,或者不可能以编程方式退还这种付款呢? 或如何处理此类问题?

如果您需要更多详细信息,请发表评论!

非常感谢。

更多推荐

php paypal refund,php

本文发布于:2024-02-14 07:35:06,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1762433.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:php   paypal   refund

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!