mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-10-20 00:01:59 -04:00
Adding BankAccount#verify
This commit is contained in:
parent
aab350e833
commit
cdc1165fc5
@ -4,6 +4,11 @@ module Stripe
|
|||||||
include Stripe::APIOperations::Delete
|
include Stripe::APIOperations::Delete
|
||||||
extend Stripe::APIOperations::List
|
extend Stripe::APIOperations::List
|
||||||
|
|
||||||
|
def verify(params={}, opts={})
|
||||||
|
response, opts = request(:post, url + '/verify', params, opts)
|
||||||
|
initialize_from(response, opts)
|
||||||
|
end
|
||||||
|
|
||||||
def url
|
def url
|
||||||
if respond_to?(:customer)
|
if respond_to?(:customer)
|
||||||
"#{Customer.url}/#{CGI.escape(customer)}/sources/#{CGI.escape(id)}"
|
"#{Customer.url}/#{CGI.escape(customer)}/sources/#{CGI.escape(id)}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user