https://github.com/0x2c6/moka-payment
Unofficial Moka Payment Service api wrapper
https://github.com/0x2c6/moka-payment
moka moka-payment payment ruby
Last synced: 12 months ago
JSON representation
Unofficial Moka Payment Service api wrapper
- Host: GitHub
- URL: https://github.com/0x2c6/moka-payment
- Owner: 0x2C6
- License: mit
- Created: 2018-05-26T17:57:06.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2019-01-18T00:27:02.000Z (over 7 years ago)
- Last Synced: 2025-06-21T04:17:54.420Z (about 1 year ago)
- Topics: moka, moka-payment, payment, ruby
- Language: Ruby
- Homepage: https://rubygems.org/gems/moka-payment
- Size: 57.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Moka
[](http://progressed.io/bar/12?title=completed) [](https://badge.fury.io/rb/moka-payment)
MOKA'nın ödeme alma, ödeme isteği gönderme, kart saklama ve tekrarlayan ödeme servisleri ile ödemelerinizi alabilirsiniz.
[Üye](https://mokapos.moka.com/) olun ve Moka'yı kullanmaya hemen başlayın!
## Kurulum
Moka'yı Gemfile içine dahil edin
```ruby
gem 'moka-payment', :require => 'moka'
```
Gerekli paketlerin tamamen kurulduğundan emin olun
$ bundle
Veya kendiniz kurun
$ gem install moka-payment
## Kullanım
İlk önce Moka'dan aldığınız bayi numarasını, kullanıcı adınızı ve parolanızı tanıtmanız gerekiyor
```ruby
require 'moka'
Moka.configure do |config|
config.dealer_code = "123456"
config.username = "ZXCVBNVBN"
config.password = "abcdef"
end
```
Şimdi ilk ödememizi yapabiliriz
```ruby
@payment = Moka::Payment::Direct.details do |detail|
detail.card_holder_full_name = "Ali Yılmaz"
detail.card_number = "5269552233334444"
detail.exp_month = "12"
detail.exp_year = "2022"
detail.cvc_number = "123"
detail.amount = 35.5
detail.currency = "TL"
detail.client_ip = "195.155.96.234"
detail.software = "OpenCart"
detail.sub_merchant_name = "Company"
detail.description = "Test Description"
detail.buyer_full_name = "Elif Yetimoğlu"
detail.buyer_email = "test@test.com"
detail.buyer_gsm_number = "1111111111"
detail.buyer_address = "New York City"
end
@payment.pay
if @payment.success?
puts "Ödeme başarı ile tamamlanmıştır"
end
```
Daha detaylı bilgi için wiki kısmına ve resmi Moka dökümantasyonuna göz atın.
## Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/0x2C6/moka-payment.
## License
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).