Sha256: 6373252927df18ed39f10ee51010ed235c44ff631acef4e2f2eeb65a1ddeb29c
Contents?: true
Size: 1.03 KB
Versions: 3
Compression:
Stored size: 1.03 KB
Contents
module IyziPay module Model class BasicPayment < IyziPayResource def create(request = {}, options) pki_string = to_pki_string(request) HttpClient.post("#{options.base_url}/payment/iyziconnect/auth", 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
Version | Path |
---|---|
iyzipay-zebramo-1.0.39 | lib/iyzipay/model/basic_payment.rb |
iyzipay-zebramo-1.0.38 | lib/iyzipay/model/basic_payment.rb |
iyzipay-zebramo-1.0.37 | lib/iyzipay/model/basic_payment.rb |