GpbMerchant
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) }
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")
Authors: crackedmind ([email protected]), Tyralion ([email protected])
Copyright (c) 2013 DansingBytes.ru, released under the BSD license