Sha256: ee8ce2d818ba3cf4f98bd3cb4b96ef29d49dfd24d74597161b91c913c457086a

Contents?: true

Size: 709 Bytes

Versions: 7

Compression:

Stored size: 709 Bytes

Contents

module Paysafe
  module Api
    class CardPaymentsApi < BaseApi

      def create_authorization(**data)
        perform_post_with_object("/cardpayments/v1/accounts/#{account_number}/auths", data, Authorization)
      end

      def create_verification(**data)
        perform_post_with_object("/cardpayments/v1/accounts/#{account_number}/verifications", data, Verification)
      end

      def get_authorization(id:)
        perform_get_with_object("/cardpayments/v1/accounts/#{account_number}/auths/#{id}", Authorization)
      end

      def get_verification(id:)
        perform_get_with_object("/cardpayments/v1/accounts/#{account_number}/verifications/#{id}", Verification)
      end

    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
paysafe-0.16.0 lib/paysafe/api/card_payments_api.rb
paysafe-0.15.0 lib/paysafe/api/card_payments_api.rb
paysafe-0.14.0 lib/paysafe/api/card_payments_api.rb
paysafe-0.13.0 lib/paysafe/api/card_payments_api.rb
paysafe-0.12.0 lib/paysafe/api/card_payments_api.rb
paysafe-0.11.0 lib/paysafe/api/card_payments_api.rb
paysafe-0.10.0 lib/paysafe/api/card_payments_api.rb