paymob_accept 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9be4b1690f4a848451740b6b49bed06814dece0eb6cfc8d4bebb8e0445fbd86f
4
- data.tar.gz: 94ab14e1b12819055f982b23e29e5fb7c8f4a35b87ed18d2f8a122ff5aca2a45
3
+ metadata.gz: a6ebddca8de134c54bbf5d5f8dceecde5ae4f65cc735f403e40c04afa13e3f5e
4
+ data.tar.gz: f635a17547b178a9ed8428d1fccf8a8157440e1656b6808375d5984b4e26a8e4
5
5
  SHA512:
6
- metadata.gz: 86ab02b708a4415b8c1cb4a17d96f7e303472a431653b449c7805a0ae884c512930929c8db34045ab83f470f63f819c0f130acb68bef2e7de594aaa913867353
7
- data.tar.gz: d846e0ccf9ad28d591f923c56193e25d98a073794ec3da2c13dbcd7db6bc2815606a1432422dc4f340119378260571e0785ba706b65c22cb7e619a38efc3917f
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. Create_order
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).
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PaymobAccept
4
- VERSION = '0.2.0'
4
+ VERSION = '0.2.1'
5
5
  end
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.0
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-08-21 00:00:00.000000000 Z
11
+ date: 2022-10-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday