paymaya 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +13 -0
- data/.rspec +2 -0
- data/.rubocop.yml +75 -0
- data/.travis.yml +5 -0
- data/CODE_OF_CONDUCT.md +49 -0
- data/Gemfile +9 -0
- data/LICENSE.md +7 -0
- data/README.md +35 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/fixtures/vcr_cassettes/create_card.yml +54 -0
- data/fixtures/vcr_cassettes/create_card_vault_payment.yml +55 -0
- data/fixtures/vcr_cassettes/create_checkout.yml +65 -0
- data/fixtures/vcr_cassettes/create_customer.yml +58 -0
- data/fixtures/vcr_cassettes/create_payment.yml +57 -0
- data/fixtures/vcr_cassettes/create_payment_token.yml +54 -0
- data/fixtures/vcr_cassettes/create_subscription.yml +54 -0
- data/fixtures/vcr_cassettes/delete_card.yml +50 -0
- data/fixtures/vcr_cassettes/delete_checkout_webhook.yml +107 -0
- data/fixtures/vcr_cassettes/delete_customer.yml +52 -0
- data/fixtures/vcr_cassettes/delete_payment_vault_webhook.yml +50 -0
- data/fixtures/vcr_cassettes/delete_subscription.yml +50 -0
- data/fixtures/vcr_cassettes/get_customization.yml +57 -0
- data/fixtures/vcr_cassettes/list_cards.yml +50 -0
- data/fixtures/vcr_cassettes/list_checkout_webhooks.yml +54 -0
- data/fixtures/vcr_cassettes/list_payment_vault_webhooks.yml +50 -0
- data/fixtures/vcr_cassettes/list_refunds.yml +51 -0
- data/fixtures/vcr_cassettes/list_subscription_payments.yml +52 -0
- data/fixtures/vcr_cassettes/list_subscriptions.yml +50 -0
- data/fixtures/vcr_cassettes/refund_payment.yml +54 -0
- data/fixtures/vcr_cassettes/register_checkout_webhook.yml +60 -0
- data/fixtures/vcr_cassettes/register_payment_vault_webhook.yml +54 -0
- data/fixtures/vcr_cassettes/remove_customization.yml +56 -0
- data/fixtures/vcr_cassettes/retrieve_card.yml +50 -0
- data/fixtures/vcr_cassettes/retrieve_checkout.yml +61 -0
- data/fixtures/vcr_cassettes/retrieve_customer.yml +52 -0
- data/fixtures/vcr_cassettes/retrieve_payment.yml +51 -0
- data/fixtures/vcr_cassettes/retrieve_payment_vault_webhook.yml +50 -0
- data/fixtures/vcr_cassettes/retrieve_refund.yml +51 -0
- data/fixtures/vcr_cassettes/retrieve_subscription.yml +50 -0
- data/fixtures/vcr_cassettes/set_customization.yml +62 -0
- data/fixtures/vcr_cassettes/update_card.yml +52 -0
- data/fixtures/vcr_cassettes/update_checkout_webhook.yml +113 -0
- data/fixtures/vcr_cassettes/update_customer.yml +56 -0
- data/fixtures/vcr_cassettes/update_payment_vault_webhook.yml +52 -0
- data/fixtures/vcr_cassettes/void_payment.yml +53 -0
- data/lib/paymaya.rb +28 -0
- data/lib/paymaya/checkout.rb +5 -0
- data/lib/paymaya/checkout/checkout.rb +35 -0
- data/lib/paymaya/checkout/customization.rb +37 -0
- data/lib/paymaya/checkout/webhook.rb +40 -0
- data/lib/paymaya/configuration.rb +22 -0
- data/lib/paymaya/helper.rb +114 -0
- data/lib/paymaya/payment_vault/card_vault/card.rb +44 -0
- data/lib/paymaya/payment_vault/card_vault/customer.rb +38 -0
- data/lib/paymaya/payment_vault/card_vault/payment.rb +24 -0
- data/lib/paymaya/payment_vault/card_vault/subscription.rb +50 -0
- data/lib/paymaya/payment_vault/payment.rb +58 -0
- data/lib/paymaya/payment_vault/payment_token.rb +20 -0
- data/lib/paymaya/payment_vault/webhook.rb +44 -0
- data/lib/paymaya/version.rb +4 -0
- data/paymaya.gemspec +29 -0
- metadata +205 -0
@@ -0,0 +1,54 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://sk-GgVT0xX7YJcWBauR4UqnMkyFt8GpksixEUaV7qWnDJc:@pg-sandbox.paymaya.com/payments/v1/webhooks
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"name":"3DS_PAYMENT_SUCCESS","callbackUrl":"http://shop.someserver.com/success"}'
|
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
|
+
- '81'
|
20
|
+
Host:
|
21
|
+
- pg-sandbox.paymaya.com
|
22
|
+
response:
|
23
|
+
status:
|
24
|
+
code: 200
|
25
|
+
message: OK
|
26
|
+
headers:
|
27
|
+
Date:
|
28
|
+
- Wed, 28 Dec 2016 17:55:54 GMT
|
29
|
+
Content-Type:
|
30
|
+
- application/json; charset=utf-8
|
31
|
+
Content-Length:
|
32
|
+
- '203'
|
33
|
+
Connection:
|
34
|
+
- close
|
35
|
+
Access-Control-Allow-Origin:
|
36
|
+
- "*"
|
37
|
+
Etag:
|
38
|
+
- W/"cb-LcjtPaYVSNS6x8TSk3hCOw"
|
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":"c201a30c-5fe4-4bb9-98b7-c905d7c58074","name":"3DS_PAYMENT_SUCCESS","callbackUrl":"http://shop.someserver.com/success","createdAt":"2016-12-28T17:55:54.000Z","updatedAt":"2016-12-28T17:55:54.000Z"}'
|
52
|
+
http_version:
|
53
|
+
recorded_at: Wed, 28 Dec 2016 17:56:03 GMT
|
54
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,56 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: delete
|
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:37 GMT
|
27
|
+
Content-Type:
|
28
|
+
- application/json; charset=utf-8
|
29
|
+
Content-Length:
|
30
|
+
- '36'
|
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/"24-0SLlmaQZSZXVcXTY9g9HAg"
|
49
|
+
Via:
|
50
|
+
- kong/0.4.2
|
51
|
+
body:
|
52
|
+
encoding: UTF-8
|
53
|
+
string: '{"message":"customizations removed"}'
|
54
|
+
http_version:
|
55
|
+
recorded_at: Sun, 25 Dec 2016 10:51:37 GMT
|
56
|
+
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
|
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:50:10 GMT
|
27
|
+
Content-Type:
|
28
|
+
- application/json; charset=utf-8
|
29
|
+
Content-Length:
|
30
|
+
- '338'
|
31
|
+
Connection:
|
32
|
+
- close
|
33
|
+
Access-Control-Allow-Origin:
|
34
|
+
- "*"
|
35
|
+
Etag:
|
36
|
+
- W/"152-fI8UmZI+0pgh3hBj0GPTUQ"
|
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":"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:50:10 GMT
|
50
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,61 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://sk-VrEDVetYZ6f4R1w4g0npwLzeBXtksd1smJ5lqk9Yh4y:@pg-sandbox.paymaya.com/checkout/v1/checkouts/f739d287-7cbf-44eb-8a59-0e64562521b2
|
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 22:31:49 GMT
|
27
|
+
Content-Type:
|
28
|
+
- application/json; charset=utf-8
|
29
|
+
Content-Length:
|
30
|
+
- '1625'
|
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/"659-zhsYzSOUSZgcL+ybaEP1Tg"
|
49
|
+
Via:
|
50
|
+
- kong/0.4.2
|
51
|
+
body:
|
52
|
+
encoding: UTF-8
|
53
|
+
string: '{"merchant":{"currency":"PHP","locale":"en","name":"PayMaya Merchant","email":"paymaya.merchant@gmail.com","homepageUrl":"https://paymaya.com","isEmailToMerchantEnabled":true,"isEmailToBuyerEnabled":true,"isPageCustomized":false,"supportedSchemes":["Visa","Mastercard"]},"buyer":{"firstName":"Juan","middleName":"dela","lastName":"Cruz","contact":{"phone":"+63(2)1234567890","email":"paymayabuyer1@gmail.com"},"shippingAddress":{"line1":"9F
|
54
|
+
Robinsons Cybergate 3","line2":"Pioneer Street","city":"Mandaluyong City","state":"Metro
|
55
|
+
Manila","zipCode":"12345","countryCode":"PH"},"billingAddress":{"line1":"9F
|
56
|
+
Robinsons Cybergate 3","line2":"Pioneer Street","city":"Mandaluyong City","state":"Metro
|
57
|
+
Manila","zipCode":"12345","countryCode":"PH"},"ipAddress":"125.60.148.241"},"items":[{"name":"Canvas
|
58
|
+
Slip Ons","code":"CVG-096732","description":"Shoes","quantity":"3","amount":{"value":"1621.10","details":{"discount":"100.00","subtotal":"1721.10"}},"totalAmount":{"value":"4863.30","details":{"discount":"300.00","subtotal":"5163.30"}}}],"metadata":{},"status":"CREATED","id":"f739d287-7cbf-44eb-8a59-0e64562521b2","totalAmount":{"currency":"PHP","value":"1234.56"},"requestReferenceNumber":"000141386713","transactionReferenceNumber":null,"receiptNumber":null,"createdAt":"2016-12-25T22:22:30.985Z","updatedAt":"2016-12-25T22:22:30.985Z","expiredAt":"2016-12-25T23:22:30.966Z","paymentType":"CREDIT_CARD","paymentStatus":"PENDING","redirectUrl":{"success":"http://www.askthemaya.com/","failure":"http://www.askthemaya.com/failure?id=6319921","cancel":"http://www.askthemaya.com/cancel?id=6319921"},"voidStatus":"NOT_APPLICABLE"}'
|
59
|
+
http_version:
|
60
|
+
recorded_at: Sun, 25 Dec 2016 22:31:49 GMT
|
61
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,52 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://sk-dOxQfFiCZ7ImhHAsLLTVPpuVt3XBtqPzbcpeJa3TBJv:@pg-sandbox.paymaya.com/payments/v1/customers/c52866a8-c30f-4233-afd4-473b069ac751
|
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 19:15:47 GMT
|
27
|
+
Content-Type:
|
28
|
+
- application/json; charset=utf-8
|
29
|
+
Content-Length:
|
30
|
+
- '456'
|
31
|
+
Connection:
|
32
|
+
- close
|
33
|
+
Access-Control-Allow-Origin:
|
34
|
+
- "*"
|
35
|
+
Etag:
|
36
|
+
- W/"1c8-8cxne/ywLsVx/7sJhTBGCA"
|
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":"c52866a8-c30f-4233-afd4-473b069ac751","firstName":"Ysabelle","middleName":"Cruz","lastName":"Santos","contact":{"phone":"+63(2)1234567890","email":"ysadcsantos@gmail.com"},"billingAddress":{"line1":"9F
|
48
|
+
Robinsons Cybergate 3","line2":"Pioneer Street","city":"Mandaluyong City","state":"Metro
|
49
|
+
Manila","zipCode":"12345","countryCode":"PH"},"sex":"F","birthday":"1987-01-01","createdAt":"2016-12-28T19:15:12.000Z","updatedAt":"2016-12-28T19:15:42.000Z"}'
|
50
|
+
http_version:
|
51
|
+
recorded_at: Wed, 28 Dec 2016 19:15:47 GMT
|
52
|
+
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/4873e908-0a78-416b-b2f4-432080e6ee85
|
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:08:42 GMT
|
27
|
+
Content-Type:
|
28
|
+
- application/json; charset=utf-8
|
29
|
+
Content-Length:
|
30
|
+
- '426'
|
31
|
+
Connection:
|
32
|
+
- close
|
33
|
+
Access-Control-Allow-Origin:
|
34
|
+
- "*"
|
35
|
+
Etag:
|
36
|
+
- W/"1aa-Ot66OxWX9SZYYYfJu5GLIA"
|
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":"4873e908-0a78-416b-b2f4-432080e6ee85","isPaid":true,"status":"PAYMENT_SUCCESS","amount":100,"currency":"PHP","createdAt":"2016-12-28T17:07:41.000Z","updatedAt":"2016-12-28T17:07:44.000Z","description":"Charge
|
48
|
+
for ysadcsantos@gmail.com","paymentTokenId":"Vnb2kkHJ5FkzJ8gE3RZquLRe7iKsEVe9V75e2pwWyMH0jeY94VU5XAq5KF7MQAA3xpK6SfxmQfFpusAHIZtgJW2r6rcEu47CE9W5ExsrBAQPgcCVvOa4ymp4GxCAQFmqb36sWxk2MSeZNXg3HlP6B4hE7Ab2G9Nyaac"}'
|
49
|
+
http_version:
|
50
|
+
recorded_at: Wed, 28 Dec 2016 17:08:52 GMT
|
51
|
+
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/674a08c7-e68e-4386-a5cb-750db1d3675a
|
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:52:37 GMT
|
27
|
+
Content-Type:
|
28
|
+
- application/json; charset=utf-8
|
29
|
+
Content-Length:
|
30
|
+
- '203'
|
31
|
+
Connection:
|
32
|
+
- close
|
33
|
+
Access-Control-Allow-Origin:
|
34
|
+
- "*"
|
35
|
+
Etag:
|
36
|
+
- W/"cb-WOt7Ln0Nizy7hbRcgfxUIA"
|
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":"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:52:47 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/a871f909-e169-49c6-8fba-772ef2102ec9
|
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:21:56 GMT
|
27
|
+
Content-Type:
|
28
|
+
- application/json; charset=utf-8
|
29
|
+
Content-Length:
|
30
|
+
- '245'
|
31
|
+
Connection:
|
32
|
+
- close
|
33
|
+
Access-Control-Allow-Origin:
|
34
|
+
- "*"
|
35
|
+
Etag:
|
36
|
+
- W/"f5-ZbsgNwXwyDcn4W26hnr+Og"
|
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:21:56 GMT
|
51
|
+
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/subscriptions/e42ac501-5538-461e-80a6-e59ef3884afc
|
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:07:59 GMT
|
27
|
+
Content-Type:
|
28
|
+
- application/json; charset=utf-8
|
29
|
+
Content-Length:
|
30
|
+
- '331'
|
31
|
+
Connection:
|
32
|
+
- close
|
33
|
+
Access-Control-Allow-Origin:
|
34
|
+
- "*"
|
35
|
+
Etag:
|
36
|
+
- W/"14b-RdgYguQAIIFRChxpp9PVeg"
|
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:07:58 GMT
|
50
|
+
recorded_with: VCR 3.0.3
|