Skip to content

Commit

Permalink
v1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mungler committed Jan 17, 2020
1 parent 199734c commit 14cebbb
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

A simple client library for [PCI Proxy](https://pci-proxy.com)'s API

v1.1.0 - 17th January 2020 - Return an instance of PciProxy::Model::TokenisedCard instead of plain Hash

v1.0.1 - 14th January 2020 - Relax dependency version requirements

v1.0.0 - 14th January 2020 - Initial release - covering the [Token API](https://docs.pci-proxy.com/collect-and-store-cards/capture-iframes/token-api)
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
pci_proxy (1.0.1)
pci_proxy (1.1.0)
faraday (>= 0.8.9)
multi_json (>= 1.10.0)

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ And execute a token exchange like so:
client.execute(transaction_id: '1234567890')
```

In the event of a 200 OK response, the JSON response body is returned as a hash, for example:
In the event of a 200 OK response, an instance of PciProxy::Model::TokenisedCard is returned:

```ruby
{"aliasCC"=>"411111GGCMUJ1111", "aliasCVV"=>"vCslSwP0SQ9JXJy-nDzLKHaS"}
#<PciProxy::Model::TokenisedCard:0x00007fda073453f8 @response={"aliasCC"=>"411111GGCMUJ1111", "aliasCVV"=>"b8XeAbhQQES6OVWTpOCaAscj", "paymentMethod"=>"VIS"}, @pan_token="411111GGCMUJ1111", @cvv_token="b8XeAbhQQES6OVWTpOCaAscj", @type_slug=:visa>
```

In the event of an error, a subclass of ```PciProxyAPIError``` will be raised.
Expand Down
1 change: 1 addition & 0 deletions lib/pci_proxy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

require 'pci_proxy/base'
require 'pci_proxy/token'
require 'pci_proxy/model/tokenised_card'

module PciProxy
PciProxyAPIError = Class.new(StandardError)
Expand Down

0 comments on commit 14cebbb

Please sign in to comment.