effective_orders 6.14.3 → 6.14.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/effective/deluxe_api.rb +12 -0
- data/app/models/effective/order.rb +3 -3
- data/lib/effective_orders/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c14a71184f0f26d2fedfda94481247d0e86b4e5fa1a7e36112e9d50db58655e1
|
4
|
+
data.tar.gz: 8217ba0469e9633e4ad9fe3c920a13579c002a60bc418150e8bdc0232aecba97
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fad58aa3a38cb6c495ff49218116c0b962afd924eb22291242be65bb373cd20049c531ee399db93d77beaf91f0a97fa1bded143bf903ca2c51a9f140e52fb034
|
7
|
+
data.tar.gz: 688fc081887fa4ff17297d7db8f69e3ab54d96c0e30f33555cc69761c55d25ccc4491b7491c29f908a757823d64407d3ba5a6627be125c1fcd513210a5a2589e
|
@@ -200,6 +200,18 @@ module Effective
|
|
200
200
|
encode ? Base64.encode64(retval.to_json) : retval
|
201
201
|
end
|
202
202
|
|
203
|
+
def webhook_subscribe(params)
|
204
|
+
post('/events/subscribe', params: params)
|
205
|
+
end
|
206
|
+
|
207
|
+
def webhook_unsubscribe(params)
|
208
|
+
post('/events/unsubscribe', params: params)
|
209
|
+
end
|
210
|
+
|
211
|
+
def webhook_test(params)
|
212
|
+
post('/events/test', params: params)
|
213
|
+
end
|
214
|
+
|
203
215
|
protected
|
204
216
|
|
205
217
|
def create_payment_params(order, payment_intent)
|
@@ -725,7 +725,7 @@ module Effective
|
|
725
725
|
|
726
726
|
run_purchasable_callbacks(:after_purchase)
|
727
727
|
end
|
728
|
-
rescue
|
728
|
+
rescue => e
|
729
729
|
Effective::Order.transaction do
|
730
730
|
save!(validate: false)
|
731
731
|
update_purchasables_purchased_order!
|
@@ -802,7 +802,7 @@ module Effective
|
|
802
802
|
save!(validate: validate)
|
803
803
|
run_purchasable_callbacks(:after_defer)
|
804
804
|
end
|
805
|
-
rescue
|
805
|
+
rescue => e
|
806
806
|
self.status = status_was
|
807
807
|
error = e.message
|
808
808
|
end
|
@@ -842,7 +842,7 @@ module Effective
|
|
842
842
|
run_purchasable_callbacks(:before_decline)
|
843
843
|
save!(validate: validate)
|
844
844
|
run_purchasable_callbacks(:after_decline)
|
845
|
-
rescue
|
845
|
+
rescue => e
|
846
846
|
self.status = status_was
|
847
847
|
error = e.message
|
848
848
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: effective_orders
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.14.
|
4
|
+
version: 6.14.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Code and Effect
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-09-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|