forked from ayond/klarna-ruby
/
TODO
30 lines (18 loc) · 1.3 KB
/
TODO
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
== CURRENT
x [issue]: Test the invoice activation in a proper way - not allowed in the Klarna 2.0 API (for some weird reason...)
== HIGH-PRIO
* [feature]: Review/Implement something like: our_settype_integer, our_strip_string, our_settype_string (consider one generic method, e.g. parse(:price, value) - all validation/masking/casting in one place)
* [feature]: Ensure valid string format/stripping (e.g. SSN, etc) using regular expressions
* [feature]: Compare implementation with Klarna's new API 2.0
* [feature]: Ensure correct params datatypes are submitted (validation - consider generic method)
* [feature]: Klarna::DSL - wrapper DSL for less sucky integrations
* [feature]: Implement #get_pclasses method to export pclasses as hash (and maybe export to YAML?)
* [feature]: ActiveMerchant-integration (fork ActiveMerchant and add klarna as new gateway with "klarna-ruby" as dependency)
== LOW-PRIO
* [feature]: Finalize the rest of the specs for already implemented methods, commented out currently.
* [feature]: Implement Reservation methods
* [feature]: Bring back "examples/web" - probably not working at all now.
* [feature]: Rack middleware?
== MAYBE
* [feature]: Mock XML-responses by default to avoid live API calls, but allow live calls using ENV['REMOTE]=true
https://github.com/myronmarston/vcr