Sha256: aac48a010fb909b6948a54a1cb7e757350122357817e261bf8a27ca62f1f088e
Contents?: true
Size: 876 Bytes
Versions: 12
Compression:
Stored size: 876 Bytes
Contents
# frozen_string_literal: true module Stripe class PaymentIntent < APIResource extend Stripe::APIOperations::Create extend Stripe::APIOperations::List include Stripe::APIOperations::Save OBJECT_NAME = "payment_intent".freeze custom_method :cancel, http_verb: :post custom_method :capture, http_verb: :post custom_method :confirm, http_verb: :post def cancel(params = {}, opts = {}) resp, opts = request(:post, resource_url + "/cancel", params, opts) initialize_from(resp.data, opts) end def capture(params = {}, opts = {}) resp, opts = request(:post, resource_url + "/capture", params, opts) initialize_from(resp.data, opts) end def confirm(params = {}, opts = {}) resp, opts = request(:post, resource_url + "/confirm", params, opts) initialize_from(resp.data, opts) end end end
Version data entries
12 entries across 12 versions & 2 rubygems