class YaKassa::V3::Router
Constants
- ENDPOINT
- PATH
Public Class Methods
new(params = {})
click to toggle source
# File lib/ya_kassa/v3/router.rb, line 11 def initialize(params = {}) @params = params end
Public Instance Methods
payment_cancel_url()
click to toggle source
# File lib/ya_kassa/v3/router.rb, line 27 def payment_cancel_url "#{ENDPOINT}#{PATH[:payments]}/#{@params[:payment_id]}/cancel" end
payment_confirmation_url()
click to toggle source
# File lib/ya_kassa/v3/router.rb, line 23 def payment_confirmation_url "#{ENDPOINT}#{PATH[:payments]}/#{@params[:payment_id]}/capture" end
payment_status_url()
click to toggle source
# File lib/ya_kassa/v3/router.rb, line 19 def payment_status_url "#{ENDPOINT}#{PATH[:payments]}/#{@params[:payment_id]}" end
payment_url()
click to toggle source
# File lib/ya_kassa/v3/router.rb, line 15 def payment_url "#{ENDPOINT}#{PATH[:payments]}" end
receipt_url()
click to toggle source
# File lib/ya_kassa/v3/router.rb, line 35 def receipt_url "#{ENDPOINT}#{PATH[:receipts]}" end
refund_url()
click to toggle source
# File lib/ya_kassa/v3/router.rb, line 31 def refund_url "#{ENDPOINT}#{PATH[:refunds]}" end