Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions 7 CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
+ Thanks for contributing to the Authorize.Net Node SDK.

+ Before you submit a pull request, we ask that you consider the following:

- Submit an issue to state the problem your pull request solves or the funtionality that it adds. We can then advise on the feasability of the pull request, and let you know if there are other possible solutions.
- Part of the SDK is auto-generated based on the XML schema. Due to this auto-generation, we cannot merge contributions for request or response classes. You are welcome to open an issue to report problems or suggest improvements. Auto-generated classes are inside [sdk-node/lib/apicontracts.js](https://github.com/AuthorizeNet/sdk-node/tree/master/lib) and [sdk-node/lib/apicontrollers.js](https://github.com/AuthorizeNet/sdk-node/tree/master/lib) folders, except [sdk-node/lib/apicontrollersbase.js](https://github.com/AuthorizeNet/sdk-node/tree/master/lib).

4 changes: 4 additions & 0 deletions 4 README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
* Node.js version 4.8.4 or higher
* An Authorize.Net account (see _Registration & Configuration_ section below)

### Contribution
- If you need information or clarification about any Authorize.Net features, please create an issue for it. Also you can search in the [Authorize.Net developer community](https://community.developer.authorize.net/).
- Before creating pull requests, please read [the contributors guide](CONTRIBUTING.md).

### TLS 1.2
The Authorize.Net APIs only support connections using the TLS 1.2 security protocol. It's important to make sure you have new enough versions of all required components to support TLS 1.2. Additionally, it's very important to keep these components up to date going forward to mitigate the risk of any security flaws that may be discovered in your system or any libraries it uses.

Expand Down
409 changes: 409 additions & 0 deletions 409 lib/apicontracts.js

Large diffs are not rendered by default.

20 changes: 20 additions & 0 deletions 20 lib/apicontrollers.js
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,26 @@ class GetCustomerPaymentProfileListController extends APIOperationBase {

module.exports.GetCustomerPaymentProfileListController = GetCustomerPaymentProfileListController;

class GetCustomerPaymentProfileNonceController extends APIOperationBase {
constructor(apiRequest) {
logger.debug('Enter GetCustomerPaymentProfileNonceController constructor');
super(apiRequest);
logger.debug('Exit GetCustomerPaymentProfileNonceController constructor');
}

validateRequest(){
logger.debug('Enter validateRequest');

logger.debug('Exit validateRequest');
return;
}

getRequestType(){
return 'GetCustomerPaymentProfileNonceRequest';
}
}

module.exports.GetCustomerPaymentProfileNonceController = GetCustomerPaymentProfileNonceController;
class GetCustomerProfileController extends APIOperationBase {
constructor(apiRequest) {
logger.debug('Enter GetCustomerProfileController constructor');
Expand Down
16 changes: 9 additions & 7 deletions 16 lib/apicontrollersbase.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,6 @@ class APIOperationBase {
var reqOpts = {
url: this._endpoint,
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Content-Length': this._request.length
},
json: true,
timeout: config.timeout,
body: this._request
Expand All @@ -102,9 +98,10 @@ class APIOperationBase {
} else
{
//TODO: slice added due to BOM character. remove once BOM character is removed.
var responseObj = JSON.parse(body.slice(1));
logger.debug(JSON.stringify(responseObj, 2, null));
obj._response = responseObj;
if(typeof body!=='undefined'){
var responseObj = JSON.parse(body.slice(1));
logger.debug(JSON.stringify(responseObj, 2, null));
obj._response = responseObj;
/*
var jsonResponse = JSON.stringify(body);
console.log("escaped body : '" + escape(jsonResponse) + "'");
Expand All @@ -114,6 +111,11 @@ class APIOperationBase {
*/
callback();
}
else
{
logger.error("Undefined Response");
}
}
});

logger.debug('Exit APIOperationBase execute');
Expand Down
Loading
Morty Proxy This is a proxified and sanitized view of the page, visit original site.