Fix for not being able to edit cards
This commit is contained in:
parent
5a0b638771
commit
f8b3e79047
2 changed files with 2 additions and 1 deletions
|
@ -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$
|
||||
)
|
||||
|
|
|
@ -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},
|
||||
|
|
Loading…
Reference in a new issue