Skip to content

Commit

Permalink
Update preapproval charge params before sending to wepay
Browse files Browse the repository at this point in the history
  • Loading branch information
lvxn0va committed Sep 23, 2012
1 parent d045f1c commit 4e1a2d1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/helpers/controller_helpers.rb
Expand Up @@ -128,9 +128,12 @@ def init_charge(params, access_token=nil)
:checkout_uri => response[:checkout_uri]
})

params.delete_if {|k,v| !WepayCheckoutRecord.attribute_names.include? k.to_s}

#params.delete_if {|k,v| !WepayCheckoutRecord.attribute_names.include? k.to_s}

response.update_attributes(params)
WepayCheckoutRecord.create(params)


end

def init_charge_and_return_ipn(params, access_token=nil)
Expand Down

0 comments on commit 4e1a2d1

Please sign in to comment.