dsoy71058 2014-11-30 22:18
浏览 77

Paypal - 可以使用web_accept通过RESTFUL API退款

I'm currently looking into the possibility of refunding a web_accept type payment for PayPal.

We accept payments on our website and i'd like to automatically refund a transaction. For example:

I have a web_accept payment: Web Accept Payment Received (Unique Transaction ID #XXXXXXXXX)

$sale = Sale::get('XXXXXXXXX', $apiContext);

My refund Sale:get() argument returns: 'Got Http response code 404 when accessing https://api.paypal.com/v1/payments/sale/6LN17852AX690712B.'

Which obviously isn't working. Any chance someone can help me out?

  • 写回答

1条回答 默认 最新

  • dp0518 2014-12-01 06:04
    关注

    It is not possible to refund a web_accept transaction via REST API. You will get this error

    name:INVALID_RESOURCE_ID
    
    message:The requested resource ID was not found.
    

    So, you will need to use RefundTransaction API to refund this transaction.

    评论

报告相同问题?

悬赏问题

  • ¥15 c语言怎么用printf(“\b \b”)与getch()实现黑框里写入与删除?
  • ¥20 怎么用dlib库的算法识别小麦病虫害
  • ¥15 华为ensp模拟器中S5700交换机在配置过程中老是反复重启
  • ¥15 java写代码遇到问题,求帮助
  • ¥15 uniapp uview http 如何实现统一的请求异常信息提示?
  • ¥15 有了解d3和topogram.js库的吗?有偿请教
  • ¥100 任意维数的K均值聚类
  • ¥15 stamps做sbas-insar,时序沉降图怎么画
  • ¥15 买了个传感器,根据商家发的代码和步骤使用但是代码报错了不会改,有没有人可以看看
  • ¥15 关于#Java#的问题,如何解决?