mandarin-api 0.0.10 → 0.1.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 +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +9 -2
- data/lib/mandarin_api/card_manager.rb +5 -1
- data/mandarin-api.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 920442acd7bf7f079e9457ee033df0f6ea7d74c3
|
4
|
+
data.tar.gz: a6b93d6e006593ec8c27492de8c2587cade92d90
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7286337650eac5c940f9e68488a80505ba208ade8fe88e7beb8cdf789fce6742a06dd0f314f0bf62969001d17b02fffd8f436968f1469cd31314cf7a9d4c2fed
|
7
|
+
data.tar.gz: dd9ddd01f363b14ce9b6ee70f5b0453f3534e74f692c6efb2c68b8c7c0817eec2b4ae63c1bcdaebd379fa010ddad33b8655533ce01c255c59d91e591671172fa
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -81,8 +81,15 @@ MandarinApi.charge(order_id, amount, user)
|
|
81
81
|
```
|
82
82
|
`user` should be an instance or a Struct, and should respond to `#email` and `#phone` methods
|
83
83
|
`#phone` should be serialized, for example '+79091234567' is correctly serialized number.
|
84
|
-
`#
|
85
|
-
|
84
|
+
`#charge` will return a hash.
|
85
|
+
###**Example:**
|
86
|
+
```ruby
|
87
|
+
{
|
88
|
+
"id": "43913ddc000c4d3990fddbd3980c1725",
|
89
|
+
"userWebLink": "https://secure.mandarinpay.com/Pay' \
|
90
|
+
'?transaction=0eb51e74-e704-4c36-b5cb-8f0227621518"
|
91
|
+
}
|
92
|
+
```
|
86
93
|
|
87
94
|
###**Example of performing refund:**
|
88
95
|
```ruby
|
data/mandarin-api.gemspec
CHANGED