Story#107571572 prepare workflow for payments with bank

This commit is contained in:
Vladimir Krylov 2015-11-10 13:21:32 +02:00
parent 96e599f885
commit 587e7db062
4 changed files with 56 additions and 14 deletions

View file

@ -109,6 +109,19 @@ new_relic_license_key: '42d1c2ba4ed17a9cf6297c59d80e563a3dd3c4fa'
secret_key_base: 'please-change-it-you-can-generate-it-with-rake-secret'
devise_secret: 'please-change-it-you-can-generate-it-with-rake-secret'
payments_banks: >
seb,
swed,
lhv
payments_seb_url: 'https://www.seb.ee/cgi-bin/dv.sh/ipank.r'
payments_seb_bank_certificate: 'eyp_pub.pem'
payments_seb_seller_private: 'kaupmees_priv.pem'
payments_swed_url: 'https://www.seb.ee/cgi-bin/dv.sh/ipank.r'
payments_swed_bank_certificate: 'eyp_pub.pem'
payments_swed_seller_private: 'kaupmees_priv.pem'
payments_lhv_url: 'https://www.seb.ee/cgi-bin/dv.sh/ipank.r'
payments_lhv_bank_certificate: 'eyp_pub.pem'
payments_lhv_seller_private: 'kaupmees_priv.pem'
#
# AUTOTEST overwrites

View file

@ -91,6 +91,10 @@ Rails.application.routes.draw do
get 'load_xml'
end
end
get 'pay/:bank' => 'payments#pay', as: 'payment_with'
get 'pay/:bank/cancel' => 'payments#cancel',as: 'cancel_payment_with'
get 'pay/:bank/return' => 'payments#back', as: 'return_payment_with'
end
# REGISTRANT ROUTES