Skip to content
This repository has been archived by the owner on Feb 27, 2020. It is now read-only.

dancingbytes/gpb_merchant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

84 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 ([email protected]), Tyralion ([email protected])

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

About

Эквайринг с ГазПромБанк

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages