Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- post '/account/id/save' do
- p params
- begin
- account = Stripe::Account.retrieve(params[:stripe_account])
- account.legal_entity.verification.document = params[:file_id]
- p account
- account.save
- p account
- rescue Stripe::StripeError => e
- status 402
- return "Error saving verification id to account: #{e.message}"
- end
- status 200
- return account.to_json
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement