moneytree-rails 0.1.5 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2006000e7eb666a0edd1d8e035330c00804f41460dcca1a7e73d75f855dcd254
4
- data.tar.gz: 1a36220066504521f1d9d4b477d9eeca1fb5ddd7dce1abc37daefe0a4412001f
3
+ metadata.gz: e93dc9ca7a7f7c33bb6866abec9c4ef68038d5c9c542a92ea20d890086ab4369
4
+ data.tar.gz: ab099aef15f26a36c21934d1a70d39e8641db9fee2feb88107681b3f72b5f890
5
5
  SHA512:
6
- metadata.gz: 72fbbd0d1f6dd0e144e6d72a412aa7313487afa0d92c2bbb5213925a4d3e4eaebdcb1369a64060183d7b073de41823f97d1f978f8751151c82799a8565324530
7
- data.tar.gz: 296df5c1b71b78acd51639d49caca1964bf8260c156ddc7ea68aa648dcf47a6fe8e1e0b9887e1cf20236365a8436dd9b76f45c7e1a5f18fdb74d537a3944d8bf
6
+ metadata.gz: c76a4655eb8f63a3c7643b95b595e8cbe7484ff5a92642ca28e1947225ed6ebce4be3bf80cb620bc1ace05450b308a976901f4f3415fcfce2083dd4f475453fd
7
+ data.tar.gz: ddb835e4f3a5113752ca9929a4fd0788565729a8881a7c917bbb13548bdc856e025e0b7def3c0647d6e5314bf4e0670ce70036355be1a21a77439002cb786699
data/README.md CHANGED
@@ -95,6 +95,11 @@ class Merchant < ApplicationRecord
95
95
  def website
96
96
  'https://www.boomtown.com'
97
97
  end
98
+
99
+ # Optional, will be called by Moneytree after authenticating with the PSP
100
+ def moneytree_oauth_callback
101
+ puts "Hurray, I just got associated with a Moneytree gateway!"
102
+ end
98
103
  end
99
104
  ```
100
105
 
@@ -15,6 +15,7 @@ module Moneytree
15
15
 
16
16
  def oauth_callback(params)
17
17
  update! psp_credentials: payment_provider.get_access_token(params)
18
+ account.send(:moneytree_oauth_callback) if account.respond_to?(:moneytree_oauth_callback, true)
18
19
  end
19
20
 
20
21
  def psp_connected?
@@ -1,3 +1,3 @@
1
1
  module Moneytree
2
- VERSION = '0.1.5'.freeze
2
+ VERSION = '0.1.6'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: moneytree-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kieran Klaassen