lib/stripe/order.rb in stripe-4.11.0 vs lib/stripe/order.rb in stripe-4.12.0
- old
+ new
@@ -6,9 +6,12 @@
extend Stripe::APIOperations::Create
include Stripe::APIOperations::Save
OBJECT_NAME = "order".freeze
+ custom_method :pay, http_verb: :post
+ custom_method :return_order, http_verb: :post, http_path: "returns"
+
def pay(params, opts = {})
resp, opts = request(:post, pay_url, params, opts)
initialize_from(resp.data, opts)
end