Skip to content

Commit

Permalink
Fix tests for MOTO customer transactions
Browse files Browse the repository at this point in the history
  • Loading branch information
incarnate committed Mar 3, 2016
1 parent e02f9d3 commit 14795cd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions tests/data/request.js
Expand Up @@ -230,7 +230,7 @@ request.createCustomerDirectTransaction = {
request.serviceCreateCustomerDirectTransaction = {
Customer: request.createCustomerDirectTransaction,
Method: Payment.CREATE_TOKEN_CUSTOMER,
TransactionType: TransactionType.PURCHASE
TransactionType: TransactionType.MOTO
};

request.createCustomerResponsiveShared = {
Expand All @@ -252,7 +252,7 @@ request.createCustomerResponsiveShared = {
request.serviceCreateCustomerResponsiveShared = {
Customer: request.createCustomerResponsiveShared,
Method: Payment.CREATE_TOKEN_CUSTOMER,
TransactionType: TransactionType.PURCHASE,
TransactionType: TransactionType.MOTO,
RedirectUrl: request.createCustomerResponsiveShared.RedirectUrl,
CancelUrl: request.createCustomerResponsiveShared.CancelUrl,
Payment: {TotalAmount: 0}
Expand All @@ -276,7 +276,7 @@ request.createCustomerTransparentRedirect = {
request.serviceCreateCustomerTransparentRedirect = {
Customer: request.createCustomerTransparentRedirect,
Method: Payment.CREATE_TOKEN_CUSTOMER,
TransactionType: TransactionType.PURCHASE,
TransactionType: TransactionType.MOTO,
RedirectUrl: request.createCustomerTransparentRedirect.RedirectUrl,
Payment: {TotalAmount: 0}
};
Expand All @@ -302,7 +302,7 @@ request.serviceUpdateCustomerDirectTransaction = {
Customer: request.updateCustomerDirectTransaction,
Payment: {TotalAmount: 0},
Method: Payment.UPDATE_TOKEN_CUSTOMER,
TransactionType: TransactionType.PURCHASE
TransactionType: TransactionType.MOTO
};

request.updateCustomerResponsiveShared = {
Expand All @@ -319,7 +319,7 @@ request.serviceUpdateCustomerResponsiveShared = {
"TotalAmount": 0
},
"Method": "UpdateTokenCustomer",
"TransactionType": "Purchase",
"TransactionType": "MOTO",
"RedirectUrl": "http://www.eway.com.au"
};

Expand All @@ -342,7 +342,7 @@ request.serviceUpdateCustomerTransparentRedirect = {
"RedirectUrl": "http://www.eway.com.au"
},
"Method": "UpdateTokenCustomer",
"TransactionType": "Purchase",
"TransactionType": "MOTO",
"RedirectUrl": "http://www.eway.com.au",
"Payment": {
"TotalAmount": 0
Expand Down
2 changes: 1 addition & 1 deletion tests/data/response.js
Expand Up @@ -167,7 +167,7 @@ response.postTransactionUpdateCustomer = {
"ResponseMessage": "A2000",
"TransactionID": null,
"TransactionStatus": false,
"TransactionType": "Purchase",
"TransactionType": "MOTO",
"BeagleScore": null,
"Verification": {
"CVN": 0,
Expand Down

0 comments on commit 14795cd

Please sign in to comment.