From cdc1165fc5f5e6205e125fe3d810d65cddef7480 Mon Sep 17 00:00:00 2001 From: Michael Bianco Date: Thu, 29 Oct 2015 13:50:45 -0400 Subject: [PATCH] Adding BankAccount#verify --- lib/stripe/bank_account.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/stripe/bank_account.rb b/lib/stripe/bank_account.rb index 4655d4a7..80f475d9 100644 --- a/lib/stripe/bank_account.rb +++ b/lib/stripe/bank_account.rb @@ -4,6 +4,11 @@ module Stripe include Stripe::APIOperations::Delete extend Stripe::APIOperations::List + def verify(params={}, opts={}) + response, opts = request(:post, url + '/verify', params, opts) + initialize_from(response, opts) + end + def url if respond_to?(:customer) "#{Customer.url}/#{CGI.escape(customer)}/sources/#{CGI.escape(id)}"