Skip to content
Эквайринг с ГазПромБанк
Ruby
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
app
config
lib
.gitignore
Gemfile
LICENSE.BSD
README.md
Rakefile
gpb_merchant.gemspec

README.md

GpbMerchant

Config

At the file "config/initializers/gpb.rb"

GpbMerchant.login               'you_login'
GpbMerchant.password            'some_secure_password'
GpbMerchant.merch_id            'your_merchant_id'
GpbMerchant.account_id          'your_account_id'
GpbMerchant.pps_url             'https://test.pps.gazprombank.ru/payment/start.wsm'
GpbMerchant.cert_file           'path to public certificate file provided to you by bank'
GpbMerchant.fullhostpath        'https://www.you_mega_shop.com'
GpbMerchant.success_payment_callback  ->(order_uri) { Order.where(uri: order_uri).try(:first).try(:to_success_payment) }

Use

At first create a bill for order:

GpbMerchant.init_payment("0081793")

Then redirect to url:

GpbMerchant.url_for_payment("0081793", "url_for_success_operation", "url_for_faulute_operation")

License

Authors: crackedmind (digital.stream.of.mind@gmail.com), Tyralion (piliaiev@gmail.com)

Copyright (c) 2013 DansingBytes.ru, released under the BSD license

Something went wrong with that request. Please try again.