Fixes bug where backend RDs can't be setup

This commit is contained in:
Eric Schultz 2018-03-27 16:35:24 -05:00 committed by Eric Schultz
parent 30fd83753f
commit 0e509244be

View file

@ -46,7 +46,7 @@ wiz.send_payment = function(card_obj) {
return create_card({type: 'Supporter', id: supporter.id}, card_obj)
})
.then(function(card) {
appl.rd_wizard.donation.card_id = card.id
appl.rd_wizard.donation.token = card.token
return request.post('/nonprofits/' + ENV.nonprofitID + '/recurring_donations')
.send({ recurring_donation: appl.rd_wizard.donation }).perform()
})