Merge pull request #10 from houdiniproject/rd_backend_fix

Fixes bug where Recurring Donations can't be setup from the backend
This commit is contained in:
Eric Schultz 2018-03-27 17:56:26 -04:00 committed by GitHub
commit e0cb5a4880
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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()
})