Class: DmEvent::PaymentsController

Inherits:
ApplicationController show all
Includes:
ActiveMerchant::Billing::Integrations
Defined in:
app/controllers/dm_event/payments_controller.rb

Instance Method Summary collapse

Instance Method Details

#paypal_ipnObject

TODO Not fully working yet




10
11
12
13
14
15
16
# File 'app/controllers/dm_event/payments_controller.rb', line 10

def paypal_ipn
  logger.error('===> Enter: controller::paypal_ipn')
  notify = Paypal::Notification.new(request.raw_post)
  Payment.event_payment_ipn(notify, 'paypal')

  render :nothing => true
end

#sofort_ipnObject

TODO Not fully working yet




20
21
22
23
24
25
26
# File 'app/controllers/dm_event/payments_controller.rb', line 20

def sofort_ipn
  logger.error('===> Enter: controller::sofort_ipn')
  notify = Directebanking::Notification.new(request.raw_post, credential4: .preferred_sofort_notification_password)
  Payment.event_payment_ipn(notify, 'sofort')

  render :nothing => true
end