Sha256: 7ddef23b2cd70439240f4e44d519c12cf9165382855e0b1edbb0ff402d17969c
Contents?: true
Size: 1.2 KB
Versions: 3
Compression:
Stored size: 1.2 KB
Contents
module IyziPay module Model class ThreedsPayment < IyziPayResource 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 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 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 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 end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
iyzipay-zebramo-1.0.39 | lib/iyzipay/model/threeds_payment.rb |
iyzipay-zebramo-1.0.38 | lib/iyzipay/model/threeds_payment.rb |
iyzipay-zebramo-1.0.37 | lib/iyzipay/model/threeds_payment.rb |