Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

kaznachey_payments

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kaznachey_payments

  • 0.9.7.7
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

KaznacheyApi

TODO: Write a gem description

Installation

$ gem install kaznachey_payments

Usage

Getting merchant's payment systems:

KaznacheyConfigurations.MerchantGuid = 'YOUR_MERHCANT_GUID' KaznacheyConfigurations.MerchantSecretKey = 'YOUR_MERCHANT_KEY'

api = KaznacheyPaymentsApi.new

request = ReqGetMerchantInfo.new

request.MerchantGuid = KaznacheyConfigurations.MerchantGuid

response = api.GetMerchantInfo(request)

Payment example:

KaznacheyConfigurations.MerchantGuid = 'YOUR_MERHCANT_GUID' KaznacheyConfigurations.MerchantSecretKey = 'YOUR_MERHCANT_GUID'

api = KaznacheyPaymentsApi.new

request = ReqCreatePayment.new request.MerchantGuid = KaznacheyConfigurations.MerchantGuid request.SelectedPaySystemId = 1

paymentDetails = PaymentDetails.new paymentDetails.PhoneNumber = '123123123' paymentDetails.EMail = 'email@email.com' paymentDetails.MerchantInternalPaymentId = '0' paymentDetails.BuyerFirstname = 'Test' request.PaymentDetails = paymentDetails

product = Product.new product.ProductId = '1' product.ProductItemsNum = 1 product.ProductName = 'Test Item' product.ProductPrice = 1 request.Products = [ product ] request

response = api.CreatePayment(request)

FAQs

Package last updated on 03 Dec 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc