Sha256: 69e021e79827a95531ea46c1a753c16555038adde9cc3c6e6a4dce71e15e7093
Contents?: true
Size: 1006 Bytes
Versions: 2
Compression:
Stored size: 1006 Bytes
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(:connectorName, request[:connectorName]). append(:callbackUrl, request[:callbackUrl]). get_request_string end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
iyzipay-1.0.31 | lib/iyzipay/model/basic_payment.rb |
iyzipay-1.0.29 | lib/iyzipay/model/basic_payment.rb |