lib/stripe/order.rb in stripe-1.58.0 vs lib/stripe/order.rb in stripe-2.0.0

- old
+ new

@@ -3,16 +3,16 @@ extend Stripe::APIOperations::List extend Stripe::APIOperations::Create include Stripe::APIOperations::Save def pay(params, opts={}) - response, opts = request(:post, pay_url, params, opts) - initialize_from(response, opts) + resp, opts = request(:post, pay_url, params, opts) + initialize_from(resp.data, opts) end def return_order(params, opts={}) - response, opts = request(:post, returns_url, params, opts) - Util.convert_to_stripe_object(response, opts) + resp, opts = request(:post, returns_url, params, opts) + Util.convert_to_stripe_object(resp.data, opts) end private def pay_url