使用Authorize.net为ApplePay交易执行refundTransaction时遇问题
问题详情
我通过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
疑问
- 为什么
refundTransactionAPI不支持ApplePay交易退款? - 商户后台可以直接对ApplePay交易执行退款操作,且
void接口也支持ApplePay交易撤销,为什么退款接口无法实现?
备注
使用的是Authorize.net PHP SDK(版本2.0.2)
内容的提问来源于stack exchange,提问作者Maksim Tarleckis
相关产品推荐
相关产品推荐

