Sha256: 725359a7906b3b0f0bcb932be338a03e1313fa0bcfdce3d0b2ad00361f2c76c6
Contents?: true
Size: 1.04 KB
Versions: 2
Compression:
Stored size: 1.04 KB
Contents
module IyziPay module Model class BkmInitialize < IyziPayResource def create(request = {}, options) pki_string = to_pki_string(request) HttpClient.post("#{options.base_url}/payment/iyzipos/bkm/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_array(:enabledInstallments, request[:enabledInstallments]). get_request_string end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
iyzipay-zebramo-1.0.39 | lib/iyzipay/model/bkm_initialize.rb |
iyzipay-zebramo-1.0.38 | lib/iyzipay/model/bkm_initialize.rb |