class YaKassa::V3::PaymentRequest

Public Instance Methods

body() click to toggle source

amount_value and return_url are required

# File lib/ya_kassa/v3/payment_request.rb, line 19
def body
  {
    amount: {
      value: amount_value,
      currency: amount_currency
    },
    capture: capture,
    confirmation: {
      type: confirmation_type,
      return_url: return_url
    },
    description: description
  }
end

Private Instance Methods

api_client() click to toggle source
# File lib/ya_kassa/v3/payment_request.rb, line 36
def api_client
  api_client_post
end
url() click to toggle source
# File lib/ya_kassa/v3/payment_request.rb, line 40
def url
  router.payment_url
end