Sha256: 5f48e677fc2498ee144f0742f239504cb4d79c98592c90d5bc2608d7301bdda4
Contents?: true
Size: 1.46 KB
Versions: 17
Compression:
Stored size: 1.46 KB
Contents
module Iyzipay module Model class ThreedsInitializePreAuth < IyzipayResource def create(request = {}, options) pki_string = to_pki_string(request) HttpClient.post("#{options.base_url}/payment/iyzipos/initialize3ds/preauth/ecom", get_http_header(pki_string, options), request.to_json) end def to_pki_string(request) PkiBuilder.new.append_super(super). append_price(:price, request[:price]). append_price(:paidPrice, request[:paidPrice]). append(:installment, request[:installment]). append(:paymentChannel, request[:paymentChannel]). append(:basketId, request[:basketId]). append(:paymentGroup, request[:paymentGroup]). append(:paymentCard, PaymentCard.to_pki_string(request[:paymentCard])). append(:buyer, Buyer.to_pki_string(request[:buyer])). append(:shippingAddress, Address.to_pki_string(request[:shippingAddress])). append(:billingAddress, Address.to_pki_string(request[:billingAddress])). append_array(:basketItems, Basket.to_pki_string(request[:basketItems])). append(:paymentSource, request[:paymentSource]). append(:currency, request[:currency]). append(:posOrderId, request[:posOrderId]). append(:connectorName, request[:connectorName]). append(:callbackUrl, request[:callbackUrl]). get_request_string end end end end
Version data entries
17 entries across 17 versions & 5 rubygems