module MidasClient module EndPoints def self.get_env Rails.env == "production" ? Production : Development end Development ={ url: "https://sandbox.ansertecnologia.net", context: "/midas-core/v2", } Production ={ url: "https://api.ansertecnologia.net", context: "/midas-core/v2", } Operations = { store: "/creditcard", synchronous_transaction: "/transaction/creditcard", asynchronous_transaction: "/transaction/creditcard/dispatch", authorize: "/transaction/creditcard/authorize", confirm: "/transaction/creditcard/{transactionToken}/capture", cancel: "/transaction/creditcard/{transactionToken}/cancel", refund: "/transaction/creditcard/{transactionToken}/refund", query_by_transaction: "/transaction/{transactionToken}", callback: "http://matricula.crossfitlendarios.com.br/callback", } Subscriptions = { by_token: "/subscription/{subscriptionToken}", invoices: "/subscription/{subscriptionToken}/invoices", invoice_transactions: "/invoice/{invoiceToken}/transactions", create: "/subscription/creditcard", cancel: "/subscription/{subscriptionToken}/cancel", callback: "https://matricula.crossfitlendarios.com.br/callback" } Queries = { by_period: "/transactions", subscriptions: "/subscriptions" } end end