paymaya 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (65) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +13 -0
  3. data/.rspec +2 -0
  4. data/.rubocop.yml +75 -0
  5. data/.travis.yml +5 -0
  6. data/CODE_OF_CONDUCT.md +49 -0
  7. data/Gemfile +9 -0
  8. data/LICENSE.md +7 -0
  9. data/README.md +35 -0
  10. data/Rakefile +6 -0
  11. data/bin/console +14 -0
  12. data/bin/setup +8 -0
  13. data/fixtures/vcr_cassettes/create_card.yml +54 -0
  14. data/fixtures/vcr_cassettes/create_card_vault_payment.yml +55 -0
  15. data/fixtures/vcr_cassettes/create_checkout.yml +65 -0
  16. data/fixtures/vcr_cassettes/create_customer.yml +58 -0
  17. data/fixtures/vcr_cassettes/create_payment.yml +57 -0
  18. data/fixtures/vcr_cassettes/create_payment_token.yml +54 -0
  19. data/fixtures/vcr_cassettes/create_subscription.yml +54 -0
  20. data/fixtures/vcr_cassettes/delete_card.yml +50 -0
  21. data/fixtures/vcr_cassettes/delete_checkout_webhook.yml +107 -0
  22. data/fixtures/vcr_cassettes/delete_customer.yml +52 -0
  23. data/fixtures/vcr_cassettes/delete_payment_vault_webhook.yml +50 -0
  24. data/fixtures/vcr_cassettes/delete_subscription.yml +50 -0
  25. data/fixtures/vcr_cassettes/get_customization.yml +57 -0
  26. data/fixtures/vcr_cassettes/list_cards.yml +50 -0
  27. data/fixtures/vcr_cassettes/list_checkout_webhooks.yml +54 -0
  28. data/fixtures/vcr_cassettes/list_payment_vault_webhooks.yml +50 -0
  29. data/fixtures/vcr_cassettes/list_refunds.yml +51 -0
  30. data/fixtures/vcr_cassettes/list_subscription_payments.yml +52 -0
  31. data/fixtures/vcr_cassettes/list_subscriptions.yml +50 -0
  32. data/fixtures/vcr_cassettes/refund_payment.yml +54 -0
  33. data/fixtures/vcr_cassettes/register_checkout_webhook.yml +60 -0
  34. data/fixtures/vcr_cassettes/register_payment_vault_webhook.yml +54 -0
  35. data/fixtures/vcr_cassettes/remove_customization.yml +56 -0
  36. data/fixtures/vcr_cassettes/retrieve_card.yml +50 -0
  37. data/fixtures/vcr_cassettes/retrieve_checkout.yml +61 -0
  38. data/fixtures/vcr_cassettes/retrieve_customer.yml +52 -0
  39. data/fixtures/vcr_cassettes/retrieve_payment.yml +51 -0
  40. data/fixtures/vcr_cassettes/retrieve_payment_vault_webhook.yml +50 -0
  41. data/fixtures/vcr_cassettes/retrieve_refund.yml +51 -0
  42. data/fixtures/vcr_cassettes/retrieve_subscription.yml +50 -0
  43. data/fixtures/vcr_cassettes/set_customization.yml +62 -0
  44. data/fixtures/vcr_cassettes/update_card.yml +52 -0
  45. data/fixtures/vcr_cassettes/update_checkout_webhook.yml +113 -0
  46. data/fixtures/vcr_cassettes/update_customer.yml +56 -0
  47. data/fixtures/vcr_cassettes/update_payment_vault_webhook.yml +52 -0
  48. data/fixtures/vcr_cassettes/void_payment.yml +53 -0
  49. data/lib/paymaya.rb +28 -0
  50. data/lib/paymaya/checkout.rb +5 -0
  51. data/lib/paymaya/checkout/checkout.rb +35 -0
  52. data/lib/paymaya/checkout/customization.rb +37 -0
  53. data/lib/paymaya/checkout/webhook.rb +40 -0
  54. data/lib/paymaya/configuration.rb +22 -0
  55. data/lib/paymaya/helper.rb +114 -0
  56. data/lib/paymaya/payment_vault/card_vault/card.rb +44 -0
  57. data/lib/paymaya/payment_vault/card_vault/customer.rb +38 -0
  58. data/lib/paymaya/payment_vault/card_vault/payment.rb +24 -0
  59. data/lib/paymaya/payment_vault/card_vault/subscription.rb +50 -0
  60. data/lib/paymaya/payment_vault/payment.rb +58 -0
  61. data/lib/paymaya/payment_vault/payment_token.rb +20 -0
  62. data/lib/paymaya/payment_vault/webhook.rb +44 -0
  63. data/lib/paymaya/version.rb +4 -0
  64. data/paymaya.gemspec +29 -0
  65. metadata +205 -0
@@ -0,0 +1,57 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://sk-VrEDVetYZ6f4R1w4g0npwLzeBXtksd1smJ5lqk9Yh4y:@pg-sandbox.paymaya.com/checkout/v1/customizations
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - "*/*"
12
+ Accept-Encoding:
13
+ - gzip, deflate
14
+ User-Agent:
15
+ - rest-client/2.0.0 (darwin15.0.0 x86_64) ruby/2.3.0p0
16
+ Content-Type:
17
+ - application/json
18
+ Host:
19
+ - pg-sandbox.paymaya.com
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: OK
24
+ headers:
25
+ Date:
26
+ - Sun, 25 Dec 2016 10:51:36 GMT
27
+ Content-Type:
28
+ - application/json; charset=utf-8
29
+ Content-Length:
30
+ - '360'
31
+ Connection:
32
+ - close
33
+ Access-Control-Allow-Origin:
34
+ - "*"
35
+ X-Content-Type-Options:
36
+ - nosniff
37
+ Strict-Transport-Security:
38
+ - max-age=31536000
39
+ Cache-Control:
40
+ - private, no-cache, no-store, must-revalidate, max-age=0
41
+ Pragma:
42
+ - no-cache
43
+ X-Xss-Protection:
44
+ - 1; mode=block
45
+ X-Frame-Options:
46
+ - DENY
47
+ Etag:
48
+ - W/"168-4SUIzIvDitn8lbnZm7RHLA"
49
+ Via:
50
+ - kong/0.4.2
51
+ body:
52
+ encoding: UTF-8
53
+ string: '{"logoUrl":"https://cdn.paymaya.com/production/checkout_api/customization_example/yourlogo.svg","iconUrl":"https://cdn.paymaya.com/production/checkout_api/customization_example/youricon.ico","appleTouchIconUrl":"https://cdn.paymaya.com/production/checkout_api/customization_example/youricon_ios.ico","customTitle":"Checkout
54
+ Page Title","colorScheme":"#368d5c"}'
55
+ http_version:
56
+ recorded_at: Sun, 25 Dec 2016 10:51:36 GMT
57
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,50 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://sk-GgVT0xX7YJcWBauR4UqnMkyFt8GpksixEUaV7qWnDJc:@pg-sandbox.paymaya.com/payments/v1/customers/5f39f980-225f-4805-b61f-50e84ce3fcdf/cards
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - "*/*"
12
+ Accept-Encoding:
13
+ - gzip, deflate
14
+ User-Agent:
15
+ - rest-client/2.0.0 (darwin15.0.0 x86_64) ruby/2.3.0p0
16
+ Content-Type:
17
+ - application/json
18
+ Host:
19
+ - pg-sandbox.paymaya.com
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: OK
24
+ headers:
25
+ Date:
26
+ - Thu, 29 Dec 2016 02:45:58 GMT
27
+ Content-Type:
28
+ - application/json; charset=utf-8
29
+ Content-Length:
30
+ - '690'
31
+ Connection:
32
+ - close
33
+ Access-Control-Allow-Origin:
34
+ - "*"
35
+ Etag:
36
+ - W/"2b2-DoqDukdrgTv7a+yshSikZg"
37
+ X-Content-Type-Options:
38
+ - nosniff
39
+ X-Frame-Options:
40
+ - DENY
41
+ X-Xss-Protection:
42
+ - 1; mode=block
43
+ Via:
44
+ - kong/0.4.2
45
+ body:
46
+ encoding: UTF-8
47
+ string: '[{"state":"VERIFICATION_FAILED","cardTokenId":"SEoXZtBtNX1AMgUDeJWlnzOaqH6ofjNYAAyRuD6osoBKkkPgT1axov0hkoKWoYayojFFGt0ZtycD8ALz9EU1sSvD7RMo547NRXnEMdDOw91RDuWeaU1ZXpo7oflKt8B8ae4rgNclThq65E7FixsDCH2C8N7skG1ztUw","cardType":"master-card","maskedPan":"2346","createdAt":"2016-12-28T19:36:49.000Z","updatedAt":"2016-12-29T02:41:57.000Z","default":false},{"state":"VERIFIED","cardTokenId":"wdi6mkRvsaLNTiTOoMJD3GLUrdC0SdBvr7e6LbJvjxU2gjdr5k9Gynj0GQN7f9fofsDBlqy0Zzq6u4Vwhfd8hug0dCQo3NSb3RDV2GndnhmSEkKoY4eoAlxYaZUtJ4mFObMGGHxPmTaXZC9rBuPXe5JIZwFkzz5X1SXU","cardType":"master-card","maskedPan":"2346","createdAt":"2016-12-29T02:41:57.000Z","updatedAt":"2016-12-29T02:43:12.000Z","default":true}]'
48
+ http_version:
49
+ recorded_at: Thu, 29 Dec 2016 02:45:58 GMT
50
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,54 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://sk-VrEDVetYZ6f4R1w4g0npwLzeBXtksd1smJ5lqk9Yh4y:@pg-sandbox.paymaya.com/checkout/v1/webhooks
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - "*/*"
12
+ Accept-Encoding:
13
+ - gzip, deflate
14
+ User-Agent:
15
+ - rest-client/2.0.0 (darwin15.0.0 x86_64) ruby/2.3.0p0
16
+ Host:
17
+ - pg-sandbox.paymaya.com
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Date:
24
+ - Sun, 25 Dec 2016 07:56:10 GMT
25
+ Content-Type:
26
+ - application/json; charset=utf-8
27
+ Content-Length:
28
+ - '418'
29
+ Connection:
30
+ - close
31
+ Access-Control-Allow-Origin:
32
+ - "*"
33
+ X-Content-Type-Options:
34
+ - nosniff
35
+ Strict-Transport-Security:
36
+ - max-age=31536000
37
+ Cache-Control:
38
+ - private, no-cache, no-store, must-revalidate, max-age=0
39
+ Pragma:
40
+ - no-cache
41
+ X-Xss-Protection:
42
+ - 1; mode=block
43
+ X-Frame-Options:
44
+ - DENY
45
+ Etag:
46
+ - W/"1a2-XdnKYp57c4Z2YCVqe9zYwg"
47
+ Via:
48
+ - kong/0.4.2
49
+ body:
50
+ encoding: UTF-8
51
+ string: '[{"name":"CHECKOUT_DROPOUT","callbackUrl":"http://userwebsite.com/checkout_success","id":"f6be27a8-3b96-4cf4-bcfc-7b86f5e7c93d"},{"name":"CHECKOUT_SUCCESS","callbackUrl":"https://f85a8f0d.ngrok.io/athan/sandbox/checkout/success","id":"94e15df4-8e0c-470a-beb0-c136a8c3550e"},{"name":"CHECKOUT_FAILURE","callbackUrl":"https://f85a8f0d.ngrok.io/athan/sandbox/checkout/failed","id":"7da35e3b-0973-49d3-a5ce-11fecf2ec7c3"}]'
52
+ http_version:
53
+ recorded_at: Sun, 25 Dec 2016 07:56:10 GMT
54
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,50 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://sk-GgVT0xX7YJcWBauR4UqnMkyFt8GpksixEUaV7qWnDJc:@pg-sandbox.paymaya.com/payments/v1/webhooks
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - "*/*"
12
+ Accept-Encoding:
13
+ - gzip, deflate
14
+ User-Agent:
15
+ - rest-client/2.0.0 (darwin15.0.0 x86_64) ruby/2.3.0p0
16
+ Content-Type:
17
+ - application/json
18
+ Host:
19
+ - pg-sandbox.paymaya.com
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: OK
24
+ headers:
25
+ Date:
26
+ - Wed, 28 Dec 2016 17:16:34 GMT
27
+ Content-Type:
28
+ - application/json; charset=utf-8
29
+ Content-Length:
30
+ - '833'
31
+ Connection:
32
+ - close
33
+ Access-Control-Allow-Origin:
34
+ - "*"
35
+ Etag:
36
+ - W/"341-DkL+QU2Uc5PEPR1tn9yFng"
37
+ X-Content-Type-Options:
38
+ - nosniff
39
+ X-Frame-Options:
40
+ - DENY
41
+ X-Xss-Protection:
42
+ - 1; mode=block
43
+ Via:
44
+ - kong/0.4.2
45
+ body:
46
+ encoding: UTF-8
47
+ string: '[{"id":"62fd417c-ce3e-4228-b2f1-cbd0e00ecf71","name":"RECURRING_PAYMENT_FAILURE","callbackUrl":"http://shop.someserver.com/recurring_failed","createdAt":"2016-10-26T02:47:34.000Z","updatedAt":"2016-10-26T02:47:34.000Z"},{"id":"8dc3dcc6-d9c5-45b0-92c5-cb0375015675","name":"RECURRING_PAYMENT_SUCCESS","callbackUrl":"http://80bc6ebe.ngrok.io/success","createdAt":"2016-10-26T02:47:16.000Z","updatedAt":"2016-11-16T05:00:29.000Z"},{"id":"42ca442b-f08a-4814-b490-39dde7bb3291","name":"3DS_PAYMENT_FAILURE","callbackUrl":"http://80bc6ebe.ngrok.io/failed","createdAt":"2016-10-25T03:41:55.000Z","updatedAt":"2016-11-16T05:01:04.000Z"},{"id":"674a08c7-e68e-4386-a5cb-750db1d3675a","name":"3DS_PAYMENT_SUCCESS","callbackUrl":"http://shop.someserver.com/success","createdAt":"2016-11-17T04:57:50.000Z","updatedAt":"2016-11-17T04:57:50.000Z"}]'
48
+ http_version:
49
+ recorded_at: Wed, 28 Dec 2016 17:16:43 GMT
50
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,51 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://sk-GgVT0xX7YJcWBauR4UqnMkyFt8GpksixEUaV7qWnDJc:@pg-sandbox.paymaya.com/payments/v1/payments/a4fb5b17-9d84-4b8e-ae9f-d61dc95f3f8b/refunds
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - "*/*"
12
+ Accept-Encoding:
13
+ - gzip, deflate
14
+ User-Agent:
15
+ - rest-client/2.0.0 (darwin15.0.0 x86_64) ruby/2.3.0p0
16
+ Content-Type:
17
+ - application/json
18
+ Host:
19
+ - pg-sandbox.paymaya.com
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: OK
24
+ headers:
25
+ Date:
26
+ - Fri, 30 Dec 2016 07:20:50 GMT
27
+ Content-Type:
28
+ - application/json; charset=utf-8
29
+ Content-Length:
30
+ - '247'
31
+ Connection:
32
+ - close
33
+ Access-Control-Allow-Origin:
34
+ - "*"
35
+ Etag:
36
+ - W/"f7-mBzCk+ZMQHYOGbQY59pZBA"
37
+ X-Content-Type-Options:
38
+ - nosniff
39
+ X-Frame-Options:
40
+ - DENY
41
+ X-Xss-Protection:
42
+ - 1; mode=block
43
+ Via:
44
+ - kong/0.4.2
45
+ body:
46
+ encoding: UTF-8
47
+ string: '[{"payment":"a4fb5b17-9d84-4b8e-ae9f-d61dc95f3f8b","id":"a871f909-e169-49c6-8fba-772ef2102ec9","reason":"Test
48
+ refund","amount":"10","currency":"PHP","status":"SUCCESS","createdAt":"2016-12-30T07:18:27.000Z","updatedAt":"2016-12-30T07:18:31.000Z"}]'
49
+ http_version:
50
+ recorded_at: Fri, 30 Dec 2016 07:20:50 GMT
51
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,52 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://sk-GgVT0xX7YJcWBauR4UqnMkyFt8GpksixEUaV7qWnDJc:@pg-sandbox.paymaya.com/payments/v1/subscriptions/e42ac501-5538-461e-80a6-e59ef3884afc/payments
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - "*/*"
12
+ Accept-Encoding:
13
+ - gzip, deflate
14
+ User-Agent:
15
+ - rest-client/2.0.0 (darwin15.0.0 x86_64) ruby/2.3.0p0
16
+ Content-Type:
17
+ - application/json
18
+ Host:
19
+ - pg-sandbox.paymaya.com
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: OK
24
+ headers:
25
+ Date:
26
+ - Fri, 30 Dec 2016 07:27:51 GMT
27
+ Content-Type:
28
+ - application/json; charset=utf-8
29
+ Content-Length:
30
+ - '857'
31
+ Connection:
32
+ - close
33
+ Access-Control-Allow-Origin:
34
+ - "*"
35
+ Etag:
36
+ - W/"359-ooo2b3GlOAbM4WqH5ZuBOw"
37
+ X-Content-Type-Options:
38
+ - nosniff
39
+ X-Frame-Options:
40
+ - DENY
41
+ X-Xss-Protection:
42
+ - 1; mode=block
43
+ Via:
44
+ - kong/0.4.2
45
+ body:
46
+ encoding: UTF-8
47
+ string: '[{"id":"9e244d8d-ca44-4106-931d-66a884beafd0","isPaid":true,"status":"PAYMENT_SUCCESS","amount":100,"currency":"PHP","createdAt":"2016-12-30T00:00:00.000Z","updatedAt":"2016-12-30T00:00:05.000Z","description":"Charge
48
+ for ysadcsantos@gmail.com","paymentTokenId":"wdi6mkRvsaLNTiTOoMJD3GLUrdC0SdBvr7e6LbJvjxU2gjdr5k9Gynj0GQN7f9fofsDBlqy0Zzq6u4Vwhfd8hug0dCQo3NSb3RDV2GndnhmSEkKoY4eoAlxYaZUtJ4mFObMGGHxPmTaXZC9rBuPXe5JIZwFkzz5X1SXU"},{"id":"913cafd3-9b6b-44cc-95d0-3c579560d842","isPaid":true,"status":"PAYMENT_SUCCESS","amount":100,"currency":"PHP","createdAt":"2016-12-30T00:00:01.000Z","updatedAt":"2016-12-30T00:00:07.000Z","description":"Charge
49
+ for ysadcsantos@gmail.com","paymentTokenId":"wdi6mkRvsaLNTiTOoMJD3GLUrdC0SdBvr7e6LbJvjxU2gjdr5k9Gynj0GQN7f9fofsDBlqy0Zzq6u4Vwhfd8hug0dCQo3NSb3RDV2GndnhmSEkKoY4eoAlxYaZUtJ4mFObMGGHxPmTaXZC9rBuPXe5JIZwFkzz5X1SXU"}]'
50
+ http_version:
51
+ recorded_at: Fri, 30 Dec 2016 07:27:51 GMT
52
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,50 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://sk-GgVT0xX7YJcWBauR4UqnMkyFt8GpksixEUaV7qWnDJc:@pg-sandbox.paymaya.com/payments/v1/customers/5f39f980-225f-4805-b61f-50e84ce3fcdf/cards/wdi6mkRvsaLNTiTOoMJD3GLUrdC0SdBvr7e6LbJvjxU2gjdr5k9Gynj0GQN7f9fofsDBlqy0Zzq6u4Vwhfd8hug0dCQo3NSb3RDV2GndnhmSEkKoY4eoAlxYaZUtJ4mFObMGGHxPmTaXZC9rBuPXe5JIZwFkzz5X1SXU/subscriptions
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - "*/*"
12
+ Accept-Encoding:
13
+ - gzip, deflate
14
+ User-Agent:
15
+ - rest-client/2.0.0 (darwin15.0.0 x86_64) ruby/2.3.0p0
16
+ Content-Type:
17
+ - application/json
18
+ Host:
19
+ - pg-sandbox.paymaya.com
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: OK
24
+ headers:
25
+ Date:
26
+ - Thu, 29 Dec 2016 04:00:41 GMT
27
+ Content-Type:
28
+ - application/json; charset=utf-8
29
+ Content-Length:
30
+ - '333'
31
+ Connection:
32
+ - close
33
+ Access-Control-Allow-Origin:
34
+ - "*"
35
+ Etag:
36
+ - W/"14d-XxgXV288C5th9d+Q/j5Vyw"
37
+ X-Content-Type-Options:
38
+ - nosniff
39
+ X-Frame-Options:
40
+ - DENY
41
+ X-Xss-Protection:
42
+ - 1; mode=block
43
+ Via:
44
+ - kong/0.4.2
45
+ body:
46
+ encoding: UTF-8
47
+ string: '[{"id":"e42ac501-5538-461e-80a6-e59ef3884afc","description":"Test subscription","status":"ACTIVE","amount":"100","currency":"PHP","interval":"DAY","metadata":null,"intervalCount":1,"startDate":"2016-12-30T00:00:00.000Z","endDate":null,"cancelledAt":null,"createdAt":"2016-12-29T03:59:37.000Z","updatedAt":"2016-12-29T03:59:37.000Z"}]'
48
+ http_version:
49
+ recorded_at: Thu, 29 Dec 2016 04:00:41 GMT
50
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,54 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://sk-GgVT0xX7YJcWBauR4UqnMkyFt8GpksixEUaV7qWnDJc:@pg-sandbox.paymaya.com/payments/v1/payments/a4fb5b17-9d84-4b8e-ae9f-d61dc95f3f8b/refunds
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"totalAmount":{"amount":10,"currency":"PHP"},"reason":"Test refund"}'
9
+ headers:
10
+ Accept:
11
+ - "*/*"
12
+ Accept-Encoding:
13
+ - gzip, deflate
14
+ User-Agent:
15
+ - rest-client/2.0.0 (darwin15.0.0 x86_64) ruby/2.3.0p0
16
+ Content-Type:
17
+ - application/json
18
+ Content-Length:
19
+ - '69'
20
+ Host:
21
+ - pg-sandbox.paymaya.com
22
+ response:
23
+ status:
24
+ code: 200
25
+ message: OK
26
+ headers:
27
+ Date:
28
+ - Fri, 30 Dec 2016 07:18:31 GMT
29
+ Content-Type:
30
+ - application/json; charset=utf-8
31
+ Content-Length:
32
+ - '245'
33
+ Connection:
34
+ - close
35
+ Access-Control-Allow-Origin:
36
+ - "*"
37
+ Etag:
38
+ - W/"f5-m9LQY77Gj5ySNEXH5eRz/g"
39
+ Vary:
40
+ - X-HTTP-Method-Override
41
+ X-Content-Type-Options:
42
+ - nosniff
43
+ X-Frame-Options:
44
+ - DENY
45
+ X-Xss-Protection:
46
+ - 1; mode=block
47
+ Via:
48
+ - kong/0.4.2
49
+ body:
50
+ encoding: UTF-8
51
+ string: '{"id":"a871f909-e169-49c6-8fba-772ef2102ec9","reason":"Test refund","amount":"10","currency":"PHP","status":"SUCCESS","payment":"a4fb5b17-9d84-4b8e-ae9f-d61dc95f3f8b","createdAt":"2016-12-30T07:18:27.000Z","updatedAt":"2016-12-30T07:18:31.000Z"}'
52
+ http_version:
53
+ recorded_at: Fri, 30 Dec 2016 07:18:31 GMT
54
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,60 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://sk-VrEDVetYZ6f4R1w4g0npwLzeBXtksd1smJ5lqk9Yh4y:@pg-sandbox.paymaya.com/checkout/v1/webhooks
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"name":"CHECKOUT_DROPOUT","callbackUrl":"http://userwebsite.com/dropout"}'
9
+ headers:
10
+ Accept:
11
+ - "*/*"
12
+ Accept-Encoding:
13
+ - gzip, deflate
14
+ User-Agent:
15
+ - rest-client/2.0.0 (darwin15.0.0 x86_64) ruby/2.3.0p0
16
+ Content-Type:
17
+ - application/json
18
+ Content-Length:
19
+ - '74'
20
+ Host:
21
+ - pg-sandbox.paymaya.com
22
+ response:
23
+ status:
24
+ code: 200
25
+ message: OK
26
+ headers:
27
+ Date:
28
+ - Sun, 25 Dec 2016 10:45:27 GMT
29
+ Content-Type:
30
+ - application/json; charset=utf-8
31
+ Content-Length:
32
+ - '118'
33
+ Connection:
34
+ - close
35
+ Access-Control-Allow-Origin:
36
+ - "*"
37
+ Vary:
38
+ - X-HTTP-Method-Override
39
+ X-Content-Type-Options:
40
+ - nosniff
41
+ Strict-Transport-Security:
42
+ - max-age=31536000
43
+ Cache-Control:
44
+ - private, no-cache, no-store, must-revalidate, max-age=0
45
+ Pragma:
46
+ - no-cache
47
+ X-Xss-Protection:
48
+ - 1; mode=block
49
+ X-Frame-Options:
50
+ - DENY
51
+ Etag:
52
+ - W/"76-XIB/7zETWpJWj0TSZ/2dmQ"
53
+ Via:
54
+ - kong/0.4.2
55
+ body:
56
+ encoding: UTF-8
57
+ string: '{"name":"CHECKOUT_DROPOUT","callbackUrl":"http://userwebsite.com/dropout","id":"ef006726-a2f8-4ca1-884d-ee492145831a"}'
58
+ http_version:
59
+ recorded_at: Sun, 25 Dec 2016 10:45:27 GMT
60
+ recorded_with: VCR 3.0.3