pay 2.6.0 → 2.6.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 +2 -2
- data/lib/pay/stripe/billable.rb +9 -0
- data/lib/pay/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ef6938df82189d79a9388ed5b4d5575087fa899078fad1bcd61f54b4b8d62d0d
|
4
|
+
data.tar.gz: '06933776eac195dea9025b28600813f92c97bc77d5e25eb978ea29ed5bf02674'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e1f3b44d448aecba61a78eb6708dc1a1d4e47b8d80be5aef3801275624ce0b55cc1b17151d695fa23adbb8e0a13699bd67a29b9ab12a49e61d3881ff36a0f2f0
|
7
|
+
data.tar.gz: 1bfcef1dcf8451e62ccdfd6516b1dd69fc289b6644994016d2548ac67cd87c822112544d5e6a7f9424a05b42c4b0be8afb1e284482d081bf621a7896aec5e09d
|
data/README.md
CHANGED
@@ -8,9 +8,9 @@ Pay is a payments engine for Ruby on Rails 4.2 and higher.
|
|
8
8
|
|
9
9
|
**Current Payment Providers**
|
10
10
|
|
11
|
-
- Stripe ([
|
11
|
+
- Stripe ([SCA Compatible](https://stripe.com/docs/strong-customer-authentication) using API version `2020-08-27`)
|
12
|
+
- Paddle (SCA Compatible & supports PayPal)
|
12
13
|
- Braintree (supports PayPal)
|
13
|
-
- Paddle (supports PayPal)
|
14
14
|
|
15
15
|
Want to add a new payment provider? Contributions are welcome and the instructions [are here](https://github.com/jasoncharnes/pay/wiki/New-Payment-Provider).
|
16
16
|
|
data/lib/pay/stripe/billable.rb
CHANGED
@@ -194,6 +194,7 @@ module Pay
|
|
194
194
|
#
|
195
195
|
def checkout(**options)
|
196
196
|
args = {
|
197
|
+
customer: processor_id,
|
197
198
|
payment_method_types: ["card"],
|
198
199
|
mode: "payment",
|
199
200
|
# These placeholder URLs will be replaced in a following step.
|
@@ -232,6 +233,14 @@ module Pay
|
|
232
233
|
**options
|
233
234
|
)
|
234
235
|
end
|
236
|
+
|
237
|
+
def billing_portal(**options)
|
238
|
+
args = {
|
239
|
+
customer: processor_id,
|
240
|
+
return_url: options[:return_url] || root_url
|
241
|
+
}
|
242
|
+
::Stripe::BillingPortal::Session.create(args.merge(options))
|
243
|
+
end
|
235
244
|
end
|
236
245
|
end
|
237
246
|
end
|
data/lib/pay/version.rb
CHANGED