Sha256: 9b4fd975f86e3c6ac8f4df6733d3cc05c923151e68154b0e16031b33a108afdd

Contents?: true

Size: 408 Bytes

Versions: 3

Compression:

Stored size: 408 Bytes

Contents

begin
  PaymentEngines.register({
    name: 'paypal',
    review_path: ->(backer) {
      CatarsePaypalExpress::Engine.routes.url_helpers.review_paypal_express_path(backer)
    },
    refund_path: ->(backer) {
      CatarsePaypalExpress::Engine.routes.url_helpers.refund_paypal_express_path(backer)
    },
    locale: 'en'
  })
rescue Exception => e
  puts "Error while registering payment engine: #{e}"
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
catarse_paypal_express-2.1.2 config/initializers/register.rb
catarse_paypal_express-2.1.1 config/initializers/register.rb
catarse_paypal_express-2.1.0 config/initializers/register.rb