diff --git a/client/js/recurring_donations/edit/index.es6 b/client/js/recurring_donations/edit/index.es6 index bc54cdb8..06f54116 100644 --- a/client/js/recurring_donations/edit/index.es6 +++ b/client/js/recurring_donations/edit/index.es6 @@ -68,7 +68,7 @@ state.changeAmountWizard = changeAmountWizard.init( {nonprofit:app.pageLoadData. resp => request({ method: 'put' , path: rdPath - , send: {edit_token: token, card_id: resp.id, card_name: resp.name} + , send: {edit_token: token, token: resp.token, card_name: resp.name} }).load , state.cardForm.saved$ ) diff --git a/lib/update/update_recurring_donations.rb b/lib/update/update_recurring_donations.rb index 0e98f017..53a90fdb 100644 --- a/lib/update/update_recurring_donations.rb +++ b/lib/update/update_recurring_donations.rb @@ -8,6 +8,7 @@ module UpdateRecurringDonations # Update the card id and name for a given recurring donation (provide rd['donation_id']) def self.update_card_id(rd, token) + rd = rd.with_indifferent_access ParamValidation.new({rd: rd, token: token}, { rd: {is_hash: true, required: true},