You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

使用Authorize.net为ApplePay交易执行refundTransaction时遇问题

Authorize.net ApplePay退款接口异常问题

问题详情

我通过Authorize.net的authCaptureTransaction接口完成了ApplePay支付集成,支付已成功授权。但调用refundTransaction接口实现退款时,发现该接口似乎不支持ApplePay交易退款:

  • 按接口要求传入信用卡占位信息:
    "creditCard": {"cardNumber": "0015", "expirationDate": "XXXX"}
    
    触发报错:The referenced transaction does not meet the criteria for issuing a credit.
  • 尝试传入ApplePay提供的卡片token:
    "opaqueData": {"dataDescriptor": "COMMON.APPLE.INAPP.PAYMENT", "dataValue": "1234567890ABCDEF1111AAAA2222BBBB3333CCCC4444DDDD5555EEEE6666FFFF7777888899990000"}
    
    触发报错:There was an error processing the payment data. Opaque data cannot be used for a linked credit

疑问

  1. 为什么refundTransaction API不支持ApplePay交易退款?
  2. 商户后台可以直接对ApplePay交易执行退款操作,且void接口也支持ApplePay交易撤销,为什么退款接口无法实现?

备注

使用的是Authorize.net PHP SDK(版本2.0.2)


内容的提问来源于stack exchange,提问作者Maksim Tarleckis

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.30 16:24:51