Sha256: 703d6a95ea33694f01081428e50d7eb4c0e5b22252e1b07950359b4b2290c8de
Contents?: true
Size: 1.04 KB
Versions: 3
Compression:
Stored size: 1.04 KB
Contents
module IyziPay module Model class BasicPaymentPreAuth < IyziPayResource def create(request = {}, options) pki_string = to_pki_string(request) HttpClient.post("#{options.base_url}/payment/iyziconnect/preauth", 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(:buyerEmail, request[:buyerEmail]). append(:buyerId, request[:buyerId]). append(:buyerIp, request[:buyerIp]). append(:posOrderId, request[:posOrderId]). append(:paymentCard, PaymentCard.to_pki_string(request[:paymentCard])). append(:currency, request[:currency]). append(:connectorName, request[:connectorName]). append(:callbackUrl, request[:callbackUrl]). get_request_string end end end end
Version data entries
3 entries across 3 versions & 1 rubygems