Sha256: 366940671f36c38485b856f9afdcb35ec00c1d1d39cf95e1dc65a106aae6d3af
Contents?: true
Size: 1.39 KB
Versions: 15
Compression:
Stored size: 1.39 KB
Contents
module Iyzipay module Model class CheckoutFormInitialize < IyzipayResource def create(request = {}, options) pki_string = to_pki_string(request) HttpClient.post("#{options.base_url}/payment/iyzipos/checkoutform/initialize/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(:basketId, request[:basketId]). append(:paymentGroup, request[:paymentGroup]). 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(:callbackUrl, request[:callbackUrl]). append(:paymentSource, request[:paymentSource]). append(:currency, request[:currency]). append(:posOrderId, request[:posOrderId]). append_price(:paidPrice, request[:paidPrice]). append(:forceThreeDS, request[:forceThreeDS]). append(:cardUserKey, request[:cardUserKey]). append_array(:enabledInstallments, request[:enabledInstallments]). get_request_string end end end end
Version data entries
15 entries across 15 versions & 5 rubygems