Class: Iyzipay::Model::CardInformation

Inherits:
Object
  • Object
show all
Defined in:
lib/iyzipay/model/card_information.rb

Class Method Summary collapse

Class Method Details

.to_pki_string(request) ⇒ Object



4
5
6
7
8
9
10
11
12
13
14
# File 'lib/iyzipay/model/card_information.rb', line 4

def self.to_pki_string(request)
  unless request.nil?
    PkiBuilder.new.
        append(:cardAlias, request[:cardAlias]).
        append(:cardNumber, request[:cardNumber]).
        append(:expireYear, request[:expireYear]).
        append(:expireMonth, request[:expireMonth]).
        append(:cardHolderName, request[:cardHolderName]).
        get_request_string
  end
end