mokapay 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 9b434512e77b8da5d5a4714289dd9d1640eef694
4
+ data.tar.gz: eebb05f75939df4ec6d360c834a29adb532d20fb
5
+ SHA512:
6
+ metadata.gz: 4698229908871a1ee42b55b647231321cdf37db70787582d7ae93a3d544cfcb238624a56f943f68b9ca3ed63cabe53393aac9026cdcfd504b3fde448f298c696
7
+ data.tar.gz: e4a29d177b380aa560d1bbf4345e70c54341adc20d0bb05f8d62bf3a3128ee80d1fc7fb2e931fac4011edb15b7fd97254d41fbe83b62749d528e0751845693cb
data/.gitignore ADDED
@@ -0,0 +1,13 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+ .idea
10
+ .idea/*
11
+
12
+ # rspec failure tracking
13
+ .rspec_status
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.travis.yml ADDED
@@ -0,0 +1,5 @@
1
+ sudo: false
2
+ language: ruby
3
+ rvm:
4
+ - 2.3.3
5
+ before_install: gem install bundler -v 1.16.1
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at huseyin.tunc@bulutfon.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source "https://rubygems.org"
2
+
3
+ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
+
5
+ # Specify your gem's dependencies in mokapay.gemspec
6
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2019 Hüseyin TUNÇ
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,79 @@
1
+ # Mokapay
2
+
3
+ Unofficial API wrapper for [MOKA](https://www.moka.com/) Payment System.
4
+
5
+
6
+ ## Installation
7
+
8
+ Add this line to your application's Gemfile:
9
+
10
+ ```ruby
11
+ gem 'mokapay', require: 'moka'
12
+ ```
13
+
14
+ And then execute:
15
+
16
+ $ bundle
17
+
18
+ Or install it yourself as:
19
+
20
+ $ gem install mokapay
21
+
22
+ ## Usage
23
+ ```ruby
24
+ require 'moka'
25
+
26
+ Moka.configure do |config|
27
+ config.dealer_code = '1730'
28
+ config.username = 'TestMoka1'
29
+ config.password = 'YHSUSHDYHUDHD'
30
+ config.env = 'test' # Default production
31
+ end
32
+ ```
33
+ Note: When making any request, you can use all parameters on the official [documentation](https://developer.moka.com/home.php?page=3dsiz-odeme) with snake case.
34
+ For example you can use card_holder_full_name for CardHolderFullName on official documentation.
35
+
36
+
37
+ #### Create Direct Payment
38
+ ```ruby
39
+ payment = Moka::Payment.new({
40
+ card_holder_full_name: 'Huseyin TUNC',
41
+ card_number: '5269552233334444',
42
+ exp_month: '12',
43
+ exp_year: '2022',
44
+ cvc_number: '000',
45
+ amount: 10.10,
46
+ client_ip: '1.2.3.4',
47
+ other_trx_code: 1
48
+ })
49
+
50
+ payment.pay # Make request (also returns the response)
51
+ payment.success? # To check if it success
52
+ payment.response # Returns the response
53
+ ```
54
+
55
+ #### Create 3D Payment
56
+ ```ruby
57
+ payment = Moka::Payment.new({
58
+ card_holder_full_name: 'Huseyin TUNC',
59
+ card_number: '5269552233334444',
60
+ exp_month: '12',
61
+ exp_year: '2022',
62
+ cvc_number: '000',
63
+ amount: 10.10,
64
+ client_ip: '1.2.3.4',
65
+ other_trx_code: 1,
66
+ redirect_url: 'http://localhost:3000/payments/success'
67
+ })
68
+
69
+ payment.pay_three_d
70
+ ```
71
+
72
+
73
+ ## Contributing
74
+
75
+ Bug reports and pull requests are welcome on GitHub at https://github.com/hsyntnc/mokapay. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
76
+
77
+ ## License
78
+
79
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
data/Rakefile ADDED
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "mokapay"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start(__FILE__)
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,32 @@
1
+ module Moka
2
+ class << self
3
+ attr_accessor :configuration, :endpoints
4
+ end
5
+
6
+ def self.configure
7
+ self.configuration ||= Configuration.new
8
+ yield(configuration)
9
+ self.endpoints ||= Endpoint.new
10
+ end
11
+
12
+ class Configuration
13
+ attr_accessor :dealer_code, :username, :password, :env
14
+
15
+ def check_key
16
+ Digest::SHA256.hexdigest "#{dealer_code}MK#{username}PD#{password}"
17
+ end
18
+
19
+ def test?
20
+ env == 'test'
21
+ end
22
+
23
+ def config_hash
24
+ {
25
+ "DealerCode": dealer_code,
26
+ "UserName": username,
27
+ "Password": password,
28
+ "CheckKey": check_key
29
+ }
30
+ end
31
+ end
32
+ end
@@ -0,0 +1,44 @@
1
+ module Moka
2
+ class Endpoint
3
+ BASE_URL = 'https://service.moka.com'
4
+ TEST_BASE_URL = 'https://service.testmoka.com'
5
+
6
+ ENDPOINTS = {
7
+ # Payment Options
8
+ direct_payment: '/PaymentDealer/DoDirectPayment',
9
+ direct_payment_three_d: '/PaymentDealer/DoDirectPaymentThreeD',
10
+ capture: '/PaymentDealer/DoCapture',
11
+ approve_pool_payment: '/PaymentDealer/DoApprovePoolPayment',
12
+ void: '/PaymentDealer/DoVoid',
13
+ refund: '/PaymentDealer/DoCreateRefundRequest',
14
+ get_payment_list: '/PaymentDealer/GetPaymentList',
15
+ get_transaction_list: '/PaymentDealer/GetPaymentTrxList',
16
+ get_payment_detail_list: '/PaymentDealer/GetDealerPaymentTrxDetailList',
17
+
18
+ # Customer Options
19
+ add_customer: '/DealerCustomer/AddCustomer',
20
+ update_customer: '/DealerCustomer/UpdateCustomer',
21
+ get_customer: '/DealerCustomer/GetCustomer',
22
+ remove_customer: '/DealerCustomer/RemoveCustomer',
23
+ add_customer_with_card: '/DealerCustomer/AddCustomerWithCard',
24
+
25
+ # Card Options
26
+ add_card: '/DealerCustomer/AddCard',
27
+ update_card: '/DealerCustomer/UpdateCard',
28
+ get_card: '/DealerCustomer/GetCard',
29
+ get_card_list: '/DealerCustomer/GetCardList',
30
+ remove_card: '/DealerCustomer/RemoveCard'
31
+ }
32
+
33
+ ENDPOINTS.each_key do |attribute|
34
+ attr_accessor attribute
35
+ end
36
+
37
+ def initialize
38
+ base_url = Moka.configuration.test? ? TEST_BASE_URL : BASE_URL
39
+ ENDPOINTS.each do |attribute, value|
40
+ send("#{attribute}=".to_sym, "#{base_url}#{value}")
41
+ end
42
+ end
43
+ end
44
+ end
@@ -0,0 +1,67 @@
1
+ module Moka
2
+ class Card
3
+ attr_accessor :dealer_customer_id, :customer_code, :card_holder_full_name,
4
+ :card_number, :exp_month, :exp_year, :card_name, :card_token,
5
+ :bank_name, :card_number_first_six, :card_number_last_four,
6
+ :customer, :response
7
+
8
+ def create
9
+ response = RestClient.post Moka.endpoints.add_card, create_hash
10
+ self.response = JSON.parse(response)
11
+ end
12
+
13
+ def update
14
+ response = RestClient.post Moka.endpoints.update_card, update_hash
15
+ self.response = JSON.parse(response)
16
+ end
17
+
18
+ def get
19
+ response = RestClient.post Moka.endpoints.get_card, get_and_delete_hash
20
+ self.response = JSON.parse(response)
21
+ end
22
+
23
+ def delete
24
+ response = RestClient.post Moka.endpoints.get_card, get_and_delete_hash
25
+ self.response = JSON.parse(response)
26
+ end
27
+
28
+ def success?
29
+ response && response['ResultCode'] == 'Success'
30
+ end
31
+
32
+ private
33
+ def create_hash
34
+ {
35
+ "DealerCustomerAuthentication": Moka.configuration.config_hash,
36
+ "DealerCustomerRequest": {
37
+ "DealerCustomerId": dealer_customer_id,
38
+ "CustomerCode": customer_code,
39
+ "CardHolderFullName": card_holder_full_name,
40
+ "CardNumber": card_number,
41
+ "ExpMonth": exp_month,
42
+ "ExpYear": exp_year,
43
+ "CardName": card_name
44
+ }
45
+ }
46
+ end
47
+
48
+ def update_hash
49
+ {
50
+ "DealerCustomerAuthentication": Moka.configuration.config_hash,
51
+ "DealerCustomerRequest": {
52
+ "CardToken": card_token,
53
+ "CardName": card_name
54
+ }
55
+ }
56
+ end
57
+
58
+ def get_and_delete_hash
59
+ {
60
+ "DealerCustomerAuthentication": Moka.configuration.config_hash,
61
+ "DealerCustomerRequest": {
62
+ "CardToken": card_token
63
+ }
64
+ }
65
+ end
66
+ end
67
+ end
@@ -0,0 +1,103 @@
1
+ module Moka
2
+ class Customer
3
+ attr_accessor :dealer_customer_id, :customer_code, :password, :first_name, :last_name,
4
+ :gender, :birth_date, :gsm_number, :email, :address,
5
+ :credit_card, :card_list, :response
6
+
7
+ def initialize(opts = {})
8
+ opts.each do |o|
9
+ send(o.first, o.last)
10
+ end
11
+ end
12
+
13
+ def full_name
14
+ "#{first_name} #{last_name}"
15
+ end
16
+
17
+ def create
18
+ response = RestClient.post Moka.endpoints.add_customer, create_hash
19
+ self.response = JSON.parse(response)
20
+ end
21
+
22
+ def get
23
+ response = RestClient.post Moka.endpoints.add_customer, get_and_delete_hash
24
+ self.response = JSON.parse(response)
25
+ end
26
+
27
+ def update
28
+ response = RestClient.post Moka.endpoints.add_customer, update_hash
29
+ self.response = JSON.parse(response)
30
+ end
31
+
32
+ def delete
33
+ response = RestClient.post Moka.endpoints.add_customer, get_and_delete_hash
34
+ self.response = JSON.parse(response)
35
+ end
36
+
37
+ def add_with_card
38
+ response = RestClient.post Moka.endpoints.add_customer_with_card, get_and_delete_hash
39
+ self.response = JSON.parse(response)
40
+ end
41
+
42
+ def success?
43
+ response && response['ResultCode'] == 'Success'
44
+ end
45
+
46
+ private
47
+ def create_hash(with_card = false)
48
+ hsh = {
49
+ "DealerCustomerAuthentication": Moka.configuration.config_hash,
50
+ "DealerCustomerRequest": {
51
+ "CustomerCode": customer_code,
52
+ "Password": password,
53
+ "FirstName": first_name,
54
+ "LastName": last_name,
55
+ "Gender": gender,
56
+ "BirthDate": birth_date,
57
+ "GsmNumber": gsm_number,
58
+ "Email": email,
59
+ "Address": address
60
+ }
61
+ }
62
+
63
+ if with_card && credit_card && credit_card.is_a?(Moka::Card)
64
+ hsh[:DealerCustomerRequest][:CardHolderFullName] = credit_card.card_holder_full_name
65
+ hsh[:DealerCustomerRequest][:CardNumber] = credit_card.card_number
66
+ hsh[:DealerCustomerRequest][:ExpMonth] = credit_card.exp_month
67
+ hsh[:DealerCustomerRequest][:ExpYear] = credit_card.exp_year
68
+ hsh[:DealerCustomerRequest][:CardName] = credit_card.card_name
69
+ end
70
+
71
+ hsh
72
+ end
73
+
74
+ def update_hash
75
+ {
76
+ "DealerCustomerAuthentication": Moka.configuration.config_hash,
77
+ "DealerCustomerRequest": {
78
+ "DealerCustomerId": dealer_customer_id,
79
+ "CustomerCode": customer_code,
80
+ "Password": password,
81
+ "FirstName": first_name,
82
+ "LastName": last_name,
83
+ "Gender": gender,
84
+ "BirthDate": birth_date,
85
+ "GsmNumber": gsm_number,
86
+ "Email": email,
87
+ "Address": address
88
+ }
89
+ }
90
+
91
+ end
92
+
93
+ def get_and_delete_hash
94
+ {
95
+ "DealerCustomerAuthentication": Moka.configuration.config_hash,
96
+ "DealerCustomerRequest": {
97
+ "DealerCustomerId": dealer_customer_id,
98
+ "CustomerCode": customer_code
99
+ }
100
+ }
101
+ end
102
+ end
103
+ end
@@ -0,0 +1,9 @@
1
+ module Moka
2
+ class Dealer
3
+ attr_accessor :dealer_code, :username, :password, :env, :check_key
4
+
5
+ def initialize()
6
+
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,115 @@
1
+ module Moka
2
+ class Payment
3
+ attr_accessor :card_holder_full_name, :card_number, :exp_month, :exp_year,
4
+ :cvc_number, :amount, :currency, :installment_number, :client_ip,
5
+ :other_trx_code, :is_pre_auth, :is_pool_payment, :integrator_id,
6
+ :software, :redirect_url, :redirect_type, :description,
7
+ :buyer, :credit_card,
8
+
9
+ :virtual_post_order_id, :void_refund_reason, :refund_request_id,
10
+
11
+ :response, :result_code
12
+
13
+ def initialize(opts = {})
14
+ opts.each do |o|
15
+ send("#{o.first.to_s}=".to_sym, o.last)
16
+ end
17
+ end
18
+
19
+ def pay
20
+ response = RestClient.post Moka.endpoints.direct_payment, payment_hash
21
+ self.response = JSON.parse(response.body)
22
+ self.result_code = self.response['ResultCode']
23
+ self.response
24
+ end
25
+
26
+ def pay_three_d
27
+ response = RestClient.post Moka.endpoints.direct_payment_three_d, three_d_payment_hash
28
+ self.response = JSON.parse(response.body)
29
+ self.result_code = self.response['ResultCode']
30
+ self.response
31
+ end
32
+
33
+ def void
34
+ response = RestClient.post Moka.endpoinst.void, void_hash
35
+ self.response = JSON.parse(response.body)
36
+ self.result_code = self.response['ResultCode']
37
+ self.response
38
+ end
39
+
40
+ def refund
41
+ response = RestClient.post Moka.endpoints.refund, refund_hash
42
+ self.response = JSON.parse(response.body)
43
+ self.result_code = self.response['ResultCode']
44
+ self.response
45
+ end
46
+
47
+ def success?
48
+ response && response['ResultCode'] == 'Success' && response['Data']['IsSuccessful'] == true
49
+ end
50
+
51
+ private
52
+ def payment_hash
53
+ hsh = {
54
+ "PaymentDealerAuthentication": Moka.configuration.config_hash,
55
+ "PaymentDealerRequest": {
56
+ "CardHolderFullName": card_holder_full_name,
57
+ "CardNumber": card_number,
58
+ "ExpMonth": exp_month,
59
+ "ExpYear": exp_year,
60
+ "CvcNumber": cvc_number,
61
+ "Amount": amount,
62
+ "Currency": currency,
63
+ "InstallmentNumber": installment_number || 0,
64
+ "ClientIP": client_ip,
65
+ "OtherTrxCode": other_trx_code,
66
+ "IsPreAuth": is_pre_auth || 0,
67
+ "IsPoolPayment": is_pool_payment || 0,
68
+ "IntegratorId": integrator_id,
69
+ "Software": software,
70
+ "Description": description
71
+ }
72
+ }
73
+ if buyer && buyer.is_a?(Moka::Customer)
74
+ hsh[:PaymentDealerRequest][:BuyerInformation] = {
75
+ "BuyerFullName": buyer.full_name,
76
+ "BuyerEmail": buyer.email,
77
+ "BuyerGsmNumber": buyer.email,
78
+ "BuyerAddress": buyer.address
79
+ }
80
+ end
81
+ hsh
82
+ end
83
+
84
+ def three_d_payment_hash
85
+ hsh = payment_hash
86
+ hsh[:PaymentDealerRequest][:RedirectUrl] = redirect_url
87
+ hsh[:PaymentDealerRequest][:RedirectType] = redirect_type
88
+ hsh
89
+ end
90
+
91
+ def void_hash
92
+ {
93
+ "PaymentDealerAuthentication": Moka.configuration.config_hash,
94
+ "PaymentDealerRequest": {
95
+ "VirtualPosOrderId": virtual_post_order_id,
96
+ "ClientIP": client_ip,
97
+ "VoidRefundReason": void_refund_reason || 2
98
+ }
99
+ }
100
+
101
+ end
102
+
103
+ def refund_hash
104
+ {
105
+ "PaymentDealerAuthentication": Moka.configuration.config_hash,
106
+ "PaymentDealerRequest": {
107
+ "VirtualPosOrderId": virtual_post_order_id,
108
+ "OtherTrxCode": "",
109
+ "Amount": amount
110
+ }
111
+ }
112
+
113
+ end
114
+ end
115
+ end
data/lib/moka/model.rb ADDED
@@ -0,0 +1,4 @@
1
+ require_relative 'model/card'
2
+ require_relative 'model/customer'
3
+ require_relative 'model/dealer'
4
+ require_relative 'model/payment'
@@ -0,0 +1,3 @@
1
+ module Moka
2
+ VERSION = "0.1.0"
3
+ end
data/lib/moka.rb ADDED
@@ -0,0 +1,12 @@
1
+ require 'moka/version'
2
+ require 'digest'
3
+ require 'rest-client'
4
+ require 'json'
5
+
6
+ module Moka
7
+
8
+ end
9
+
10
+ require_relative 'moka/model'
11
+ require_relative 'moka/configuration'
12
+ require_relative 'moka/endpoint'
data/mokapay.gemspec ADDED
@@ -0,0 +1,28 @@
1
+
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require "moka/version"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "mokapay"
8
+ spec.version = Moka::VERSION
9
+ spec.authors = ["H\xC3\xBCseyin TUN\xC3\x87"]
10
+ spec.email = ["huseyin.tunc@bulutfon.com"]
11
+
12
+ spec.summary = %q{Ruby gem for Moka payment system.}
13
+ #spec.description = %q{}
14
+ spec.homepage = "http://github.com/hsyntnc/mokapay"
15
+ spec.license = "MIT"
16
+
17
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
18
+ f.match(%r{^(test|spec|features)/})
19
+ end
20
+ spec.bindir = "exe"
21
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
22
+ spec.require_paths = ["lib"]
23
+
24
+ spec.add_development_dependency "bundler", "~> 1.16"
25
+ spec.add_development_dependency "rake", "~> 10.0"
26
+ spec.add_development_dependency "rspec", "~> 3.0"
27
+ spec.add_development_dependency "rest-client", "~> 2.1.0"
28
+ end
metadata ADDED
@@ -0,0 +1,120 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: mokapay
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Hüseyin TUNÇ
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2019-01-21 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.16'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.16'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rest-client
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 2.1.0
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 2.1.0
69
+ description:
70
+ email:
71
+ - huseyin.tunc@bulutfon.com
72
+ executables: []
73
+ extensions: []
74
+ extra_rdoc_files: []
75
+ files:
76
+ - ".gitignore"
77
+ - ".rspec"
78
+ - ".travis.yml"
79
+ - CODE_OF_CONDUCT.md
80
+ - Gemfile
81
+ - LICENSE.txt
82
+ - README.md
83
+ - Rakefile
84
+ - bin/console
85
+ - bin/setup
86
+ - lib/moka.rb
87
+ - lib/moka/configuration.rb
88
+ - lib/moka/endpoint.rb
89
+ - lib/moka/model.rb
90
+ - lib/moka/model/card.rb
91
+ - lib/moka/model/customer.rb
92
+ - lib/moka/model/dealer.rb
93
+ - lib/moka/model/payment.rb
94
+ - lib/moka/version.rb
95
+ - mokapay.gemspec
96
+ homepage: http://github.com/hsyntnc/mokapay
97
+ licenses:
98
+ - MIT
99
+ metadata: {}
100
+ post_install_message:
101
+ rdoc_options: []
102
+ require_paths:
103
+ - lib
104
+ required_ruby_version: !ruby/object:Gem::Requirement
105
+ requirements:
106
+ - - ">="
107
+ - !ruby/object:Gem::Version
108
+ version: '0'
109
+ required_rubygems_version: !ruby/object:Gem::Requirement
110
+ requirements:
111
+ - - ">="
112
+ - !ruby/object:Gem::Version
113
+ version: '0'
114
+ requirements: []
115
+ rubyforge_project:
116
+ rubygems_version: 2.5.1
117
+ signing_key:
118
+ specification_version: 4
119
+ summary: Ruby gem for Moka payment system.
120
+ test_files: []