ipizza 1.0.0 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (72) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +3 -1
  3. data/CHANGELOG.md +9 -0
  4. data/Gemfile +1 -1
  5. data/Gemfile.lock +16 -14
  6. data/Guardfile +2 -2
  7. data/README.markdown +11 -7
  8. data/Rakefile +1 -1
  9. data/ipizza.gemspec +9 -9
  10. data/lib/ipizza.rb +3 -0
  11. data/lib/ipizza/authentication.rb +15 -0
  12. data/lib/ipizza/authentication_request.rb +1 -1
  13. data/lib/ipizza/authentication_response.rb +22 -9
  14. data/lib/ipizza/config.rb +3 -3
  15. data/lib/ipizza/payment.rb +4 -4
  16. data/lib/ipizza/payment_request.rb +1 -1
  17. data/lib/ipizza/payment_response.rb +15 -7
  18. data/lib/ipizza/provider.rb +8 -12
  19. data/lib/ipizza/provider/base.rb +90 -0
  20. data/lib/ipizza/provider/krediidipank.rb +1 -47
  21. data/lib/ipizza/provider/lhv.rb +4 -0
  22. data/lib/ipizza/provider/nordea/authentication_request.rb +2 -2
  23. data/lib/ipizza/provider/nordea/authentication_response.rb +7 -3
  24. data/lib/ipizza/provider/nordea/payment_request.rb +2 -2
  25. data/lib/ipizza/provider/nordea/payment_response.rb +4 -4
  26. data/lib/ipizza/provider/sampo.rb +1 -46
  27. data/lib/ipizza/provider/seb.rb +1 -78
  28. data/lib/ipizza/provider/swedbank.rb +1 -66
  29. data/lib/ipizza/request.rb +9 -2
  30. data/lib/ipizza/response.rb +7 -9
  31. data/lib/ipizza/util.rb +9 -5
  32. data/lib/ipizza/version.rb +2 -2
  33. data/spec/certificates/pangalink_danske_bank_cert.pem +22 -0
  34. data/spec/certificates/pangalink_danske_bank_key.pem +27 -0
  35. data/spec/certificates/pangalink_danske_user_key.pem +27 -0
  36. data/spec/certificates/pangalink_krediidipank_bank_cert.pem +22 -0
  37. data/spec/certificates/pangalink_krediidipank_bank_key.pem +27 -0
  38. data/spec/certificates/pangalink_krediidipank_user_key.pem +27 -0
  39. data/spec/certificates/pangalink_lhv_bank_cert.pem +22 -0
  40. data/spec/certificates/pangalink_lhv_bank_key.pem +27 -0
  41. data/spec/certificates/pangalink_lhv_user_key.pem +27 -0
  42. data/spec/certificates/pangalink_seb_bank_cert.pem +16 -0
  43. data/spec/certificates/pangalink_seb_bank_key.pem +15 -0
  44. data/spec/certificates/pangalink_seb_user_key.pem +15 -0
  45. data/spec/certificates/pangalink_swedbank_bank_cert.pem +22 -0
  46. data/spec/certificates/pangalink_swedbank_bank_key.pem +27 -0
  47. data/spec/certificates/pangalink_swedbank_user_key.pem +27 -0
  48. data/spec/config/config.yml +39 -6
  49. data/spec/config/plain_config.yml +3 -3
  50. data/spec/ipizza/authentication_response_spec.rb +11 -9
  51. data/spec/ipizza/config_spec.rb +9 -10
  52. data/spec/ipizza/provider/krediidipank_spec.rb +89 -0
  53. data/spec/ipizza/provider/lhv_spec.rb +89 -0
  54. data/spec/ipizza/provider/nordea/authentication_response_spec.rb +3 -3
  55. data/spec/ipizza/provider/sampo_spec.rb +85 -0
  56. data/spec/ipizza/provider/seb_spec.rb +60 -30
  57. data/spec/ipizza/provider/swedbank_spec.rb +63 -34
  58. data/spec/ipizza/provider_spec.rb +9 -1
  59. data/spec/ipizza/util_spec.rb +5 -1
  60. data/spec/spec_helper.rb +1 -1
  61. data/spec/support/pizza.rb +1 -1
  62. metadata +45 -25
  63. data/spec/certificates/bank.crt +0 -21
  64. data/spec/certificates/bank.csr +0 -17
  65. data/spec/certificates/bank.key +0 -27
  66. data/spec/certificates/bank.pub +0 -1
  67. data/spec/certificates/dealer.key +0 -30
  68. data/spec/certificates/dealer.pub +0 -1
  69. data/spec/certificates/seb_test_priv.pem +0 -16
  70. data/spec/certificates/seb_test_pub.crt +0 -20
  71. data/spec/certificates/seb_test_pub.pem +0 -20
  72. data/spec/certificates/swedbank_production.pem +0 -48
@@ -1,20 +0,0 @@
1
- -----BEGIN CERTIFICATE-----
2
- MIIDRTCCAq6gAwIBAgI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L/c
18
- eD4D1UFM1qdp2VZzhBd1eeMjxYjCP8qL2v2MfLkCYcP30Sl6ISSkFjFc5qbGXZOc
19
- C82uR/wUZJDw9kj+R1O46/byG8yA+S9FVw==
20
- -----END CERTIFICATE-----
@@ -1,48 +0,0 @@
1
- Certificate:
2
- Data:
3
- Version: 3 (0x2)
4
- Serial Number: 125 (0x7d)
5
- Signature Algorithm: md5WithRSAEncryption
6
- Issuer: C=EE, ST=Estonia, L=Tallinn, O=Hansabank, OU=0025200, CN=Hansabank Server Certification Authority/emailAddress=certmaster@hansa.ee
7
- Validity
8
- Not Before: Oct 31 09:26:45 2007 GMT
9
- Not After : Dec 25 09:26:45 2008 GMT
10
- Subject: C=EE, O=Hansabank, CN=Virtual POS
11
- Subject Public Key Info:
12
- Public Key Algorithm: rsaEncryption
13
- RSA Public Key: (1024 bit)
14
- Modulus (1024 bit):
15
- 00:b1:4a:b1:cf:a6:1c:bc:7d:1f:6b:ca:a9:c9:a9:
16
- 7b:e4:f1:c9:61:4c:c7:14:33:57:1e:d3:79:9e:73:
17
- ff:25:f1:55:ba:67:c2:34:9f:97:5c:ca:d0:1f:26:
18
- 88:09:d3:76:9a:35:c8:31:22:47:ed:f1:2d:73:f1:
19
- c6:13:0e:19:0c:18:a2:93:1a:97:8c:9e:d6:13:43:
20
- d7:95:5b:5c:a3:59:60:96:44:ce:81:d9:4d:14:d1:
21
- ec:d0:e3:80:32:b2:5d:fd:de:de:01:0a:87:e6:4b:
22
- 33:94:25:94:1d:ba:29:e8:8e:48:88:3e:0a:b0:a2:
23
- 4a:6e:39:f8:ba:d4:4f:aa:8f
24
- Exponent: 65537 (0x10001)
25
- Signature Algorithm: md5WithRSAEncryption
26
- 23:dc:bb:5b:a9:b7:70:c6:93:39:75:74:ad:ee:69:81:0b:b7:
27
- 9e:73:24:28:00:97:2c:57:a8:8b:76:d9:cc:87:7f:74:1f:35:
28
- 8b:ea:a2:25:5c:a6:af:3c:15:06:25:8e:89:ac:05:e8:d4:b4:
29
- d2:0a:04:ca:81:36:dc:8c:72:24:06:b1:f6:e5:79:a9:f7:68:
30
- 3a:1b:15:7c:9c:99:4b:38:c8:c7:f9:bf:db:52:60:74:c4:03:
31
- 65:8b:11:e6:cc:e1:d5:d0:c0:07:fd:cb:5a:c8:2d:ef:01:e8:
32
- 16:87:51:d0:b2:59:51:d3:d1:93:a8:7b:30:74:85:46:5c:0f:
33
- 22:c0
34
- -----BEGIN CERTIFICATE-----
35
- MIICWjCCAcOgAwIBAgIBfTANBgkqhkiG9w0BAQQFADCBrjELMAkGA1UEBhMCRUUx
36
- EDAOBgNVBAgTB0VzdG9uaWExEDAOBgNVBAcTB1RhbGxpbm4xEjAQBgNVBAoTCUhh
37
- bnNhYmFuazEQMA4GA1UECxMHMDAyNTIwMDExMC8GA1UEAxMoSGFuc2FiYW5rIFNl
38
- cnZlciBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTEiMCAGCSqGSIb3DQEJARYTY2Vy
39
- dG1hc3RlckBoYW5zYS5lZTAeFw0wNzEwMzEwOTI2NDVaFw0wODEyMjUwOTI2NDVa
40
- MDcxCzAJBgNVBAYTAkVFMRIwEAYDVQQKEwlIYW5zYWJhbmsxFDASBgNVBAMTC1Zp
41
- cnR1YWwgUE9TMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCxSrHPphy8fR9r
42
- yqnJqXvk8clhTMcUM1ce03mec/8l8VW6Z8I0n5dcytAfJogJ03aaNcgxIkft8S1z
43
- 8cYTDhkMGKKTGpeMntYTQ9eVW1yjWWCWRM6B2U0U0ezQ44Aysl393t4BCofmSzOU
44
- JZQduinojkiIPgqwokpuOfi61E+qjwIDAQABMA0GCSqGSIb3DQEBBAUAA4GBACPc
45
- u1upt3DGkzl1dK3uaYELt55zJCgAlyxXqIt22cyHf3QfNYvqoiVcpq88FQYljoms
46
- BejUtNIKBMqBNtyMciQGsfblean3aDobFXycmUs4yMf5v9tSYHTEA2WLEebM4dXQ
47
- wAf9y1rILe8B6BaHUdCyWVHT0ZOoezB0hUZcDyLA
48
- -----END CERTIFICATE-----