Skip to content

Commit 2e71b52

Browse files
committed
merge
1 parent 1a438e1 commit 2e71b52

File tree

4 files changed

+41
-3
lines changed

4 files changed

+41
-3
lines changed

config.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
module.exports = {
2-
"API_LOGIN_ID": "2msN9nrBG8K",
3-
"TRANSACTION_KEY": "43jNykM6kC8v87Nb"
2+
"API_LOGIN_ID": "2msN9nrBG8K",
3+
"TRANSACTION_KEY": "43jNykM6kC8v87Nb"
44
};

documentation/AuthorizeNet.md

+19
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,25 @@
7777

7878
**other**: object, a json object you want to mix with the transactionRequest field before transformation into xml. Note it will override already assigned properties
7979

80+
**Returns**: Promise,
81+
#### refundTransaction(refTransId, amount, cardNumber, expirationYear, expirationMonth, other)
82+
83+
Refund an already settled transaction
84+
85+
**Parameters**
86+
87+
**refTransId**: a reference to the transaction to refund
88+
89+
**amount**: the amount to refund
90+
91+
**cardNumber**: the card number used to process the transaction
92+
93+
**expirationYear**: the expiration year of the card used to process the transaction
94+
95+
**expirationMonth**: the expiration month of the transaction card used to process the transaction
96+
97+
**other**: some other fields to merge with the request
98+
8099
**Returns**: Promise,
81100
#### voidTransaction(refTransId, other)
82101

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "node-authorize-net",
3-
"version": "0.0.4",
3+
"version": "0.0.5",
44
"description": "nodejs sdk to communicate with authorize.net payement gateway",
55
"main": "index.js",
66
"scripts": {

readme.md

+19
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,25 @@
107107

108108
**other**: object, a json object you want to mix with the transactionRequest field before transformation into xml. Note it will override already assigned properties
109109

110+
**Returns**: Promise,
111+
#### refundTransaction(refTransId, amount, cardNumber, expirationYear, expirationMonth, other)
112+
113+
Refund an already settled transaction
114+
115+
**Parameters**
116+
117+
**refTransId**: a reference to the transaction to refund
118+
119+
**amount**: the amount to refund
120+
121+
**cardNumber**: the card number used to process the transaction
122+
123+
**expirationYear**: the expiration year of the card used to process the transaction
124+
125+
**expirationMonth**: the expiration month of the transaction card used to process the transaction
126+
127+
**other**: some other fields to merge with the request
128+
110129
**Returns**: Promise,
111130
#### voidTransaction(refTransId, other)
112131

0 commit comments

Comments
 (0)