firekassa 0.1.1 → 0.1.2
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 +25 -1
- data/lib/firekassa/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bdceae90e4b6b0bb78ec79ecb406849054e3a2b1adf86c0837716f4be9ae7a41
|
4
|
+
data.tar.gz: d660a83b5a51ee7d994507c3390ddad6f4e6527856e63edd77daf7cd23672026
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 94c4e146df6e8de0c896ab150926f1ffe13fff69a9569885a54e2b7fcdd2e5b9acb0bcab1f8be5c830502b8c4d84b58b91eb14f25716186488dbf64abdf9482c
|
7
|
+
data.tar.gz: 0513dfb4f9ecfbe9c9883edc1c683c937c14efd68549fe3c6a03ad88dbac94aaf4dcd94a32b6e1b486f40b941f57fd7175e467ae8b237579b0df40cc0be91da2
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -61,12 +61,36 @@ See more info in tests and [API method reference](https://admin.vanilapay.com/ap
|
|
61
61
|
|
62
62
|
#### To create deposit:
|
63
63
|
```ruby
|
64
|
-
|
64
|
+
deposit_data = {
|
65
|
+
order_id: "123", # payment ID from your system
|
66
|
+
method: "h2h-a", # host to host payment
|
67
|
+
amount: "5000.0",
|
68
|
+
# callbacks
|
69
|
+
notification_url: "http://some.url/callback",
|
70
|
+
success_url: "http://some.url/callback",
|
71
|
+
fail_url: "http://some.url/callback",
|
72
|
+
# card credentials
|
73
|
+
card_number: "4242424242424242",
|
74
|
+
card_expire: "01/25",
|
75
|
+
card_cvv: "123"
|
76
|
+
}
|
77
|
+
result = Firekassa::Deposit.new.create(deposit_data)
|
78
|
+
payment_url = result['payment_url'] # Customer should visit this link to proceed the payment
|
65
79
|
```
|
66
80
|
See more info in tests and [API method reference](https://admin.vanilapay.com/api/doc/v2#/operations/createDepositTransaction)
|
67
81
|
|
68
82
|
#### To create withdrawal:
|
69
83
|
```ruby
|
84
|
+
withdraw_data = {
|
85
|
+
order_id: "123123", # payment ID from your system
|
86
|
+
method: "card",
|
87
|
+
account: "4242424242424242",
|
88
|
+
amount: "100.00",
|
89
|
+
# callbacks
|
90
|
+
notification_url: "http://some.url/callback",
|
91
|
+
success_url: "http://some.url/callback",
|
92
|
+
fail_url: "http://some.url/callback"
|
93
|
+
}
|
70
94
|
Firekassa::Withdraw.new.create(withdraw_data) # => { trx data... }
|
71
95
|
```
|
72
96
|
See more info in tests and [API method reference](https://admin.vanilapay.com/api/doc/v2#/operations/createWithdrawalTransaction)
|
data/lib/firekassa/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: firekassa
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexey Kuznetsov
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-04-
|
11
|
+
date: 2023-04-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|