delete amazon utils and token use on amazon service
This commit is contained in:
parent
2cb099057e
commit
23417fe1b3
4 changed files with 5 additions and 27 deletions
|
|
@ -1,20 +0,0 @@
|
|||
#!/usr/bin/env node
|
||||
|
||||
'use strict';
|
||||
|
||||
var fs = require('fs');
|
||||
var file;
|
||||
|
||||
try {
|
||||
file = fs.readFileSync('./amazon.json', 'utf8');
|
||||
} catch (err) {
|
||||
return;
|
||||
}
|
||||
|
||||
var json = JSON.parse(file);
|
||||
|
||||
var content = '\nwindow.amazon_sandbox_bitpay_api_token="' + json.sandbox.bitpay_api_token + '";';
|
||||
content = content + '\nwindow.amazon_sandbox_bitpay_api_url="' + json.sandbox.bitpay_api_url + '";';
|
||||
content = content + '\nwindow.amazon_bitpay_api_token="' + json.production.bitpay_api_token + '";';
|
||||
content = content + '\nwindow.amazon_bitpay_api_url="' + json.production.bitpay_api_url + '";';
|
||||
fs.writeFileSync("./src/js/amazon.js", content);
|
||||
Loading…
Add table
Add a link
Reference in a new issue