Sha256: 31aa4448f842ae73bde95028ce47b2748564ab64e0a107f2be8ed22cef5a2afa

Contents?: true

Size: 350 Bytes

Versions: 3

Compression:

Stored size: 350 Bytes

Contents

# frozen_string_literal: true

module PaymentGateways
  class Adapters::CircleUp
    attr_reader :client

    def initialize
      @client = ::CircleUp::Client.new
    end

    def charge_credit_card(params)
      params => { amount:, details: }

      response = client.charge_cc(amount, details)

      Response.new(response.ok?)
    end
  end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
solid-adapters-1.1.0 examples/anti_corruption_layer/lib/payment_gateways/adapters/circle_up.rb
solid-adapters-1.0.0 examples/anti_corruption_layer/lib/payment_gateways/adapters/circle_up.rb
bcdd-contract-0.1.0 examples/anti_corruption_layer/lib/payment_gateways/adapters/circle_up.rb