pay 4.2.0 → 5.0.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of pay might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/pay/stripe/billable.rb +1 -0
- data/lib/pay/stripe/subscription.rb +1 -1
- data/lib/pay/stripe.rb +2 -2
- data/lib/pay/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: 245eccc7871a0e826b8879c65e34bd6c628a49c34f8f5a4fe36c0188e27a6bb8
|
4
|
+
data.tar.gz: ebf9e27a156d337908e6122fa5ceb4646fee91170c2a4bba061780ea02e7c224
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a25477e37ecbc71270d3882071e1074826b7745e919bfb5c45e124984d1975a64730e244949d5dbc04a4eedb5f949c75ee9d911cb90ae82245a57259400998a6
|
7
|
+
data.tar.gz: 8a90dfbbf5467fc1449746e8baceac913a6590cc8f94507440735c512ba650847c741d13be9d29341b1522ef4b00402c564fed348427e83e8219d538b898806f
|
data/README.md
CHANGED
@@ -20,7 +20,7 @@ Want to see how Pay works? Check out our video getting started guide.
|
|
20
20
|
|
21
21
|
Our supported payment processors are:
|
22
22
|
|
23
|
-
- Stripe ([SCA Compatible](https://stripe.com/docs/strong-customer-authentication) using API version `
|
23
|
+
- Stripe ([SCA Compatible](https://stripe.com/docs/strong-customer-authentication) using API version `2022-08-01`)
|
24
24
|
- Paddle (SCA Compatible & supports PayPal)
|
25
25
|
- Braintree (supports PayPal)
|
26
26
|
- [Fake Processor](docs/fake_processor/1_overview.md) (used for generic trials without cards, free subscriptions, testing, etc)
|
data/lib/pay/stripe/billable.rb
CHANGED
@@ -142,7 +142,7 @@ module Pay
|
|
142
142
|
# cancel_now!(prorate: true)
|
143
143
|
# cancel_now!(invoice_now: true)
|
144
144
|
def cancel_now!(**options)
|
145
|
-
@stripe_subscription = ::Stripe::Subscription.
|
145
|
+
@stripe_subscription = ::Stripe::Subscription.cancel(processor_id, options.merge(expand_options), stripe_options)
|
146
146
|
pay_subscription.update(ends_at: Time.current, status: :canceled)
|
147
147
|
rescue ::Stripe::StripeError => e
|
148
148
|
raise Pay::Stripe::Error, e
|
data/lib/pay/stripe.rb
CHANGED
@@ -31,12 +31,12 @@ module Pay
|
|
31
31
|
def self.enabled?
|
32
32
|
return false unless Pay.enabled_processors.include?(:stripe) && defined?(::Stripe)
|
33
33
|
|
34
|
-
Pay::Engine.version_matches?(required: "~>
|
34
|
+
Pay::Engine.version_matches?(required: "~> 7", current: ::Stripe::VERSION) || (raise "[Pay] stripe gem must be version ~> 7")
|
35
35
|
end
|
36
36
|
|
37
37
|
def self.setup
|
38
38
|
::Stripe.api_key = private_key
|
39
|
-
::Stripe.api_version = "
|
39
|
+
::Stripe.api_version = "2022-08-01"
|
40
40
|
|
41
41
|
# Used by Stripe to identify Pay for support
|
42
42
|
::Stripe.set_app_info("PayRails", partner_id: "pp_partner_IqhY0UExnJYLxg", version: Pay::VERSION, url: "https://github.com/pay-rails/pay")
|
data/lib/pay/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pay
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 5.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jason Charnes
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2022-
|
12
|
+
date: 2022-08-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|