Skip to content

Commit

Permalink
add logging for einvoice webhook
Browse files Browse the repository at this point in the history
  • Loading branch information
augustosamame committed Jan 5, 2023
1 parent adfe6e4 commit 8befa87
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions app/controllers/ecommerce/orders_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ def culqi_webhook
head :ok
end

def einvoice_webhook
Rails.logger.info "Webhook Received"
Rails.logger.info params
Rails.logger.info params.to_json
end

def calculate_coupon
puts params
found_coupon = Coupon.find_by(coupon_code: params[:coupon_code])
Expand Down
2 changes: 1 addition & 1 deletion lib/ecommerce/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Ecommerce
VERSION = '0.7.2.9'
VERSION = '0.7.3.0'
end

0 comments on commit 8befa87

Please sign in to comment.