Navigation Menu

Skip to content

Commit

Permalink
Merge pull request bitpay#9180 from cmgustavo/bug/shapeshift-01
Browse files Browse the repository at this point in the history
fix: Shapeshift integration (API-KEY)
  • Loading branch information
Gamboster committed Oct 3, 2018
2 parents 97786b5 + 779105e commit 0051806
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions src/providers/shapeshift/shapeshift.ts
Expand Up @@ -24,15 +24,6 @@ export class ShapeshiftProvider {
this.logger.debug('ShapeshiftProvider Provider initialized');
this.credentials = {};

// (Optional) Affiliate PUBLIC KEY, for volume tracking, affiliate payments, split-shifts, etc.
if (
this.appProvider.servicesInfo &&
this.appProvider.servicesInfo.shapeshift
) {
this.credentials.API_KEY =
this.appProvider.servicesInfo.shapeshift.api_key || null;
}

/*
* Development: 'testnet'
* Production: 'livenet'
Expand Down Expand Up @@ -171,5 +162,13 @@ export class ShapeshiftProvider {
page: 'ShapeshiftPage',
show: !!this.configProvider.get().showIntegration['shapeshift']
});
// (Mandatory) Affiliate PUBLIC KEY, for volume tracking, affiliate payments, split-shifts, etc.
if (
this.appProvider.servicesInfo &&
this.appProvider.servicesInfo.shapeshift
) {
this.credentials.API_KEY =
this.appProvider.servicesInfo.shapeshift.api_key || null;
}
}
}

0 comments on commit 0051806

Please sign in to comment.