lib/veritrans/events.rb in veritrans-2.0.4 vs lib/veritrans/events.rb in veritrans-2.1.0

- old
+ new

@@ -13,27 +13,27 @@ # # All possible events: # # * payment.success == ['authorize', 'capture', 'settlement'] -# * payment.failed == ['deny', 'canel', 'expire'] -# * payment.challenge # when payment.froud_status == 'challenge' +# * payment.failed == ['deny', 'cancel', 'expire'] +# * payment.challenge # when payment.fraud_status == 'challenge' # # * payment.authorize # * payment.capture # * payment.settlement # * payment.deny -# * payment.canel +# * payment.cancel # * payment.expire # # * error # For sinatra you can use Rack::URLMap # # run Rack::URLMap.new("/" => MyApp.new, "/payment_events" => Veritrans::Events.new) # -module Veritrans +class Veritrans class Events # This is rack application def call(env) Veritrans.logger.info "Receive notification callback" \ No newline at end of file