Sha256: dbf9c63ac71d9d9a3ea4e75511c06b545cecfa999f4bad36249a130862d1fbee

Contents?: true

Size: 466 Bytes

Versions: 2

Compression:

Stored size: 466 Bytes

Contents

# This methods allows to retrieve paymethods which are enabled for pos.
# For merchants with token payments enabled it also retrieves user payments tokens.
# Token payments requires OAuth token with grant type trusted_merchant.
module PayuAPI
  class PaymethodsResponse < Response
    def card_tokens
      body[:cardTokens] || []
    end

    def pex_tokens
      body[:pexTokens] || []
    end

    def pay_by_links
      body[:payByLinks] || []
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
payu_api-0.1.7 lib/payu_api/responses/paymethods_response.rb
payu_api-0.1.5 lib/payu_api/responses/paymethods_response.rb