pagseguro_next 0.3.0 → 0.4.0

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: 5d3621033463227471c1b4362c07c95b8ad7206f0c6f5bc2c069165a93928abe
4
- data.tar.gz: 6b5982f6bcd85b16f8292b9af569631ea92b7d5902ceb4e500ffbc877dbf5f5d
3
+ metadata.gz: 386a91a6255a8b025d7f02faa5a322c85cb33644ad820a0cb3936746b6a42856
4
+ data.tar.gz: b3386d893d71e2d7d3d8c3038ef0a2d78a609c2ef95758524eba20f29bb80bb6
5
5
  SHA512:
6
- metadata.gz: 71cb4ddd6afe3c7a184adb96a390f9b93b9e2aecf78e3aec2ebb46c4d9a685b318acfb61ac35996612ec286edb22bf1b3f98cedd185446ba5518b96406dad65b
7
- data.tar.gz: 17dce35c20f36132e611a442507287f06d2b65202e8b991a245db2dff61bf9392120c3277d1aee771dde9f95855e1439c85f04968e8f29fb0d10c36e85090324
6
+ metadata.gz: 4ae3b989310eae3ba2aac2053023cdeeed67b91fa2ebc97f94ac74b6943b015f8efd783755bd13fe90870e0eb5763410269b3e746706513fd84af2aef2261547
7
+ data.tar.gz: 1fac01e0a11ddddf1fddee73325c33deb6250741f3c3eaca1c65382801a08e38bfd665257328d0bb1cb02ec5dbd74c18a72a3f563b2d5af2f12d2e841ce84398
@@ -1,7 +1,7 @@
1
1
  module PagSeguro
2
2
  class Checkout < Base
3
3
  def create(params)
4
- params = build_request(params).to_xml
4
+ params = build_request(params).to_xml(encoding: "UTF-8")
5
5
 
6
6
  response = api.post "/v2/checkout", params do |conn|
7
7
  conn.headers[:content_type] = FORMATS[:xml]
@@ -27,7 +27,7 @@ module PagSeguro
27
27
  items do
28
28
  item do
29
29
  id params[:id]
30
- description params[:description]
30
+ description { cdata(params[:description]) }
31
31
  amount format("%.2f", params[:amount].to_f)
32
32
  quantity 1
33
33
  end
@@ -1,3 +1,3 @@
1
1
  module PagSeguro
2
- VERSION = "0.3.0"
2
+ VERSION = "0.4.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pagseguro_next
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rainer Borene
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-07-20 00:00:00.000000000 Z
11
+ date: 2019-10-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -204,7 +204,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
204
204
  - !ruby/object:Gem::Version
205
205
  version: '0'
206
206
  requirements: []
207
- rubygems_version: 3.0.1
207
+ rubygems_version: 3.0.3
208
208
  signing_key:
209
209
  specification_version: 4
210
210
  summary: Yet another client to PagSeguro API