Sha256: ac498e86ae1ca10c6fec27d0712f95f8f834b1fa71948c5ebbe1b72b755692fd
Contents?: true
Size: 1.2 KB
Versions: 18
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
18 entries across 18 versions & 5 rubygems