V3 payments 6 (#7104)

* payments api: cancelSubscription

* some more tests for amazon payments

* promisifying amazon payments

* somehow payment stub is not working

* cleaning up tests

* renaming tests in api/v3/integration/payments

* improvements

* cleanup, lint

* fixes as per comments

* moment.zone() is back in.
This commit is contained in:
Victor Pudeyev
2016-04-27 14:26:32 -05:00
committed by Matteo Pagliazzi
parent 73e4c719b2
commit fa21577c46
17 changed files with 319 additions and 355 deletions

View File

@@ -12,8 +12,6 @@ import _ from 'lodash';
import { removeFromArray } from '../../libs/api-v3/collectionManipulators';
import { sendTxn } from '../../libs/api-v3/email';
import nconf from 'nconf';
import setupNconf from '../../libs/api-v3/setupNconf';
setupNconf();
const FLAG_REPORT_EMAILS = nconf.get('FLAG_REPORT_EMAIL').split(',').map((email) => {
return { email, canSend: true };