Authorize.net 沙盒中的信用卡收费 returns refTransID 响应为 null
Authorize.net credit card charging in sandbox returns refTransID in response as null
我在 Authorize.net 中使用沙盒帐户并处理信用卡收费。这是我的回复:
{ createTransactionResponse:
{ 'xmlns:xsi': 'http://www.w3.org/2001/XMLSchema-instance',
'xmlns:xsd': 'http://www.w3.org/2001/XMLSchema',
xmlns: 'AnetApi/xml/v1/schema/AnetApiSchema.xsd',
messages: { resultCode: 'Ok', message: [Object] },
transactionResponse:
{ responseCode: '1',
authCode: '******',
avsResultCode: 'Y',
cvvResultCode: 'P',
transId: '**********',
refTransID: null,
transHash: '************************',
testRequest: '0',
accountNumber: 'XXXX0000',
entryMode: 'Keyed',
accountType: 'AmericanExpress',
messages: [Object] } } }
为什么 refTransID
是 null
?我需要这个值来处理退款。
来自手册:
Transaction ID of the original partial authorization transaction.
Required only for refundTransaction, priorAuthCaptureTransaction, and voidTransaction. Do not include this field if you are providing splitTenderId
因此,除非您进行拆分投标交易,否则您不需要此字段进行退款。
我在 Authorize.net 中使用沙盒帐户并处理信用卡收费。这是我的回复:
{ createTransactionResponse:
{ 'xmlns:xsi': 'http://www.w3.org/2001/XMLSchema-instance',
'xmlns:xsd': 'http://www.w3.org/2001/XMLSchema',
xmlns: 'AnetApi/xml/v1/schema/AnetApiSchema.xsd',
messages: { resultCode: 'Ok', message: [Object] },
transactionResponse:
{ responseCode: '1',
authCode: '******',
avsResultCode: 'Y',
cvvResultCode: 'P',
transId: '**********',
refTransID: null,
transHash: '************************',
testRequest: '0',
accountNumber: 'XXXX0000',
entryMode: 'Keyed',
accountType: 'AmericanExpress',
messages: [Object] } } }
为什么 refTransID
是 null
?我需要这个值来处理退款。
来自手册:
Transaction ID of the original partial authorization transaction. Required only for refundTransaction, priorAuthCaptureTransaction, and voidTransaction. Do not include this field if you are providing splitTenderId
因此,除非您进行拆分投标交易,否则您不需要此字段进行退款。