From 0e509244befa080444c4b162bca7b62028b8d070 Mon Sep 17 00:00:00 2001 From: Eric Schultz Date: Tue, 27 Mar 2018 16:35:24 -0500 Subject: [PATCH] Fixes bug where backend RDs can't be setup --- client/js/nonprofits/recurring_donations/index/create.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/js/nonprofits/recurring_donations/index/create.js b/client/js/nonprofits/recurring_donations/index/create.js index 59508b3a..79eb716c 100644 --- a/client/js/nonprofits/recurring_donations/index/create.js +++ b/client/js/nonprofits/recurring_donations/index/create.js @@ -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() })