paymob_accept 0.2.0 → 0.2.1
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/README.md +12 -5
- data/lib/paymob_accept/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: a6ebddca8de134c54bbf5d5f8dceecde5ae4f65cc735f403e40c04afa13e3f5e
|
4
|
+
data.tar.gz: f635a17547b178a9ed8428d1fccf8a8157440e1656b6808375d5984b4e26a8e4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3925164b5d6519cf7216d719222c79c3882a70e88d56b1227c59a9c6bec93e4c9e499f22a7351620eb66c320550104615dddd2bc99b9da03fc82335c41d0c3b1
|
7
|
+
data.tar.gz: 6009edcbbbc9f9feeaad04f26169cd14b9131102fb651944fee152b4c8c2b2bd62e109a1030b87ee5be5831faea4f0077bff157add1535a0cd87e5d9343616b1
|
data/README.md
CHANGED
@@ -76,7 +76,7 @@ service.online_integration_id = "123"
|
|
76
76
|
token = service.get_auth_token
|
77
77
|
```
|
78
78
|
|
79
|
-
2.
|
79
|
+
2. Create order
|
80
80
|
```ruby
|
81
81
|
service.create_order(auth_token: token, amount_cents: 1000, amount_currency: 'EGP', items: [])
|
82
82
|
```
|
@@ -107,12 +107,16 @@ The `:method` key in the `charge` method could be one of the following:
|
|
107
107
|
- :kiosk => Aman/Masary kiosk network
|
108
108
|
- :cash => Cash on delivery
|
109
109
|
- :wallet => Vodafone cash
|
110
|
-
- :moto => Paying with a saved token
|
110
|
+
- :moto => Paying with a saved car token
|
111
111
|
|
112
112
|
Please refer to the official Paymob documentation for in-depth explanation about each payment method.
|
113
113
|
|
114
114
|
The return value of the `charge` method in general is the response of Paymob's server which varies according to the payment method except in `:online`. In an `:online` payment if an `iframe_id` is provided, the return value is an iFrame URL with an embedded payment token. If the `iframe_id` is not provided, only the payment token is returned
|
115
115
|
|
116
|
+
### Paying with a saved card token
|
117
|
+
|
118
|
+
To pre-fill an iFrame with a customer card data or process a MOTO charge, make sure the `customer_data` hash has a `cc_token` key in addition to the fields mentioned above.
|
119
|
+
|
116
120
|
## Dealing with charges
|
117
121
|
|
118
122
|
- **Initialize your Charge service**
|
@@ -126,11 +130,14 @@ The return value of the `charge` method in general is the response of Paymob's s
|
|
126
130
|
- Void a transaction: `service.void!(transaction_id: transaction_id)`
|
127
131
|
- Capture an auth transaction: `service.capture!(transaction_id: transaction_id, amount_cents: amount_cents)`
|
128
132
|
|
133
|
+
## Roadmap
|
134
|
+
|
135
|
+
- [ ] HMAC validation
|
129
136
|
|
130
137
|
## Contributing
|
131
138
|
|
132
|
-
Bug reports and pull requests are welcome on [GitHub](https://github.com/oneorder-tech/paymob).
|
133
|
-
This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/oneorder-tech/paymob/blob/master/CODE_OF_CONDUCT.md).
|
139
|
+
Bug reports and pull requests are welcome on [GitHub](https://github.com/oneorder-tech/paymob-accept).
|
140
|
+
This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/oneorder-tech/paymob-accept/blob/master/CODE_OF_CONDUCT.md).
|
134
141
|
|
135
142
|
## License
|
136
143
|
|
@@ -138,4 +145,4 @@ The gem is available as open source under the terms of the [MIT License](https:/
|
|
138
145
|
|
139
146
|
## Code of Conduct
|
140
147
|
|
141
|
-
Everyone interacting in the PaymobAccept project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/oneorder-tech/paymob/blob/master/CODE_OF_CONDUCT.md).
|
148
|
+
Everyone interacting in the PaymobAccept project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/oneorder-tech/paymob-accept/blob/master/CODE_OF_CONDUCT.md).
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: paymob_accept
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OneOrder
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-10-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|