Sha256: 495126eface04e4ff394de64550c065ba31b59f21034f01548204466c02b06fc

Contents?: true

Size: 438 Bytes

Versions: 1

Compression:

Stored size: 438 Bytes

Contents

begin
  PaymentEngines.register({
    name: 'paypal',
    review_path: ->(contribution) {
      CatarsePaypalExpress::Engine.routes.url_helpers.review_paypal_express_path(contribution)
    },
    can_do_refund?: true,
    direct_refund: ->(contribution) {
      CatarsePaypalExpress::ContributionActions.new(contribution).refund
    },
    locale: 'en'
  })
rescue Exception => e
  puts "Error while registering payment engine: #{e}"
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
catarse_paypal_express-2.2.1 config/initializers/register.rb