Sha256: 9380f16d678639a8f18364536b741c94eec2e3f7b9d7faca2141c051b7759b88
Contents?: true
Size: 478 Bytes
Versions: 6
Compression:
Stored size: 478 Bytes
Contents
# frozen_string_literal: true module Afterpay module API module Payment class Capture < Base def initialize(params = {}) @payment = params[:payment] end private attr_reader :payment def payload { action: :post, body: payment.as_json, endpoint: endpoint } end def endpoint "#{URL}/capture" end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems