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:
commit
e0cb5a4880
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,7 @@ wiz.send_payment = function(card_obj) {
|
||||||
return create_card({type: 'Supporter', id: supporter.id}, card_obj)
|
return create_card({type: 'Supporter', id: supporter.id}, card_obj)
|
||||||
})
|
})
|
||||||
.then(function(card) {
|
.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')
|
return request.post('/nonprofits/' + ENV.nonprofitID + '/recurring_donations')
|
||||||
.send({ recurring_donation: appl.rd_wizard.donation }).perform()
|
.send({ recurring_donation: appl.rd_wizard.donation }).perform()
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue