class Iyzipay::Model::ThreedsPayment
Public Instance Methods
create(request = {}, options)
click to toggle source
# File lib/iyzipay/model/threeds_payment.rb, line 5 def create(request = {}, options) pki_string = to_pki_string_create(request) HttpClient.post("#{options.base_url}/payment/iyzipos/auth3ds/ecom", get_http_header(pki_string, options), request.to_json) end
retrieve(request = {}, options)
click to toggle source
# File lib/iyzipay/model/threeds_payment.rb, line 10 def retrieve(request = {}, options) pki_string = to_pki_string_retrieve(request) HttpClient.post("#{options.base_url}/payment/detail", get_http_header(pki_string, options), request.to_json) end
to_pki_string_create(request)
click to toggle source
# File lib/iyzipay/model/threeds_payment.rb, line 15 def to_pki_string_create(request) PkiBuilder.new. append(:locale, request[:locale]). append(:conversationId, request[:conversationId]). append(:paymentId, request[:paymentId]). append(:conversationData, request[:conversationData]). get_request_string end
to_pki_string_retrieve(request)
click to toggle source
# File lib/iyzipay/model/threeds_payment.rb, line 24 def to_pki_string_retrieve(request) PkiBuilder.new. append(:locale, request[:locale]). append(:conversationId, request[:conversationId]). append(:paymentId, request[:paymentId]). append(:paymentConversationId, request[:paymentConversationId]). get_request_string end