From 4bef41192a25613f9080fecb3530a4fc7206ec1d Mon Sep 17 00:00:00 2001 From: Shale Craig Date: Tue, 16 Dec 2014 15:43:16 -0800 Subject: [PATCH] Add the ability to use an api_key for application_fee.refund --- lib/stripe/application_fee.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/stripe/application_fee.rb b/lib/stripe/application_fee.rb index 93137d03..3cc5e53c 100644 --- a/lib/stripe/application_fee.rb +++ b/lib/stripe/application_fee.rb @@ -6,8 +6,8 @@ module Stripe '/v1/application_fees' end - def refund(params={}) - response, api_key = Stripe.request(:post, refund_url, @api_key, params) + def refund(params={}, api_key=nil) + response, api_key = Stripe.request(:post, refund_url, api_key, params) refresh_from(response, api_key) end