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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f67175eed41645fc10868070414e33e205dc6970be39038715fbde5c18496932
4
- data.tar.gz: bd725f34c55707aaf30c1e46ecc111a9c00b69f8275d87c7d94f8640b24d84c2
3
+ metadata.gz: ef6938df82189d79a9388ed5b4d5575087fa899078fad1bcd61f54b4b8d62d0d
4
+ data.tar.gz: '06933776eac195dea9025b28600813f92c97bc77d5e25eb978ea29ed5bf02674'
5
5
  SHA512:
6
- metadata.gz: 47b06c20aef2c34454f40bb734c4d1bdd648e9f9f4380c7b5c8d246357036f46b92511bc36ebf7b3b1ec00234700848ad3b12b1eb76c2e274a420e5bc650608b
7
- data.tar.gz: 033e3b12a1a1a6f9b7b7bb2e447cb4a1acfb0cf3d35da7d5f00e187f6301d5cc59a9a3bec0d1577f8a6764286d93dbfefe16553939fc8c83213ee1c6668b09b9
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 ([supports SCA](https://stripe.com/docs/strong-customer-authentication) using API version `2020-08-27`)
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
 
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Pay
2
- VERSION = "2.6.0"
2
+ VERSION = "2.6.1"
3
3
  end
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: 2.6.0
4
+ version: 2.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Charnes