paddle_pay 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE +20 -0
- data/README.md +207 -0
- data/lib/paddle_pay.rb +40 -0
- data/lib/paddle_pay/configuration.rb +17 -0
- data/lib/paddle_pay/connection.rb +69 -0
- data/lib/paddle_pay/errors/paddle_pay_error.rb +54 -0
- data/lib/paddle_pay/models/alert/webhook.rb +14 -0
- data/lib/paddle_pay/models/product/coupon.rb +36 -0
- data/lib/paddle_pay/models/product/license.rb +14 -0
- data/lib/paddle_pay/models/product/pay_link.rb +14 -0
- data/lib/paddle_pay/models/product/payment.rb +15 -0
- data/lib/paddle_pay/models/product/product.rb +12 -0
- data/lib/paddle_pay/models/subscription/charge.rb +14 -0
- data/lib/paddle_pay/models/subscription/modifier.rb +24 -0
- data/lib/paddle_pay/models/subscription/payment.rb +25 -0
- data/lib/paddle_pay/models/subscription/plan.rb +19 -0
- data/lib/paddle_pay/models/subscription/user.rb +31 -0
- data/lib/paddle_pay/models/transaction/checkout.rb +13 -0
- data/lib/paddle_pay/models/transaction/order.rb +13 -0
- data/lib/paddle_pay/models/transaction/product.rb +13 -0
- data/lib/paddle_pay/models/transaction/subscription.rb +13 -0
- data/lib/paddle_pay/models/transaction/user.rb +13 -0
- data/lib/paddle_pay/util.rb +36 -0
- data/lib/paddle_pay/version.rb +5 -0
- data/test/spec/paddle_pay/configuration_spec.rb +24 -0
- data/test/spec/paddle_pay/connection_spec.rb +115 -0
- data/test/spec/paddle_pay/models/alert/webhook_spec.rb +41 -0
- data/test/spec/paddle_pay/models/product/coupon_spec.rb +98 -0
- data/test/spec/paddle_pay/models/product/license_spec.rb +33 -0
- data/test/spec/paddle_pay/models/product/pay_link_spec.rb +33 -0
- data/test/spec/paddle_pay/models/product/payment_spec.rb +31 -0
- data/test/spec/paddle_pay/models/product/product_spec.rb +42 -0
- data/test/spec/paddle_pay/models/subscription/charge_spec.rb +31 -0
- data/test/spec/paddle_pay/models/subscription/modifier_spec.rb +70 -0
- data/test/spec/paddle_pay/models/subscription/payment_spec.rb +68 -0
- data/test/spec/paddle_pay/models/subscription/plan_spec.rb +57 -0
- data/test/spec/paddle_pay/models/subscription/user_spec.rb +87 -0
- data/test/spec/paddle_pay/models/transaction/checkout_spec.rb +41 -0
- data/test/spec/paddle_pay/models/transaction/order_spec.rb +41 -0
- data/test/spec/paddle_pay/models/transaction/product_spec.rb +41 -0
- data/test/spec/paddle_pay/models/transaction/subscription_spec.rb +41 -0
- data/test/spec/paddle_pay/models/transaction/user_spec.rb +41 -0
- data/test/spec/paddle_pay/util_spec.rb +41 -0
- data/test/spec/paddle_pay/version_spec.rb +9 -0
- data/test/test_helper.rb +18 -0
- data/test/vcr_cassettes/paddle_pay/alert/webhook/test_0001_should_list_all_webhooks.yml +61 -0
- data/test/vcr_cassettes/paddle_pay/alert/webhook/test_0002_should_raise_an_error_if_no_vendor_id_is_present.yml +61 -0
- data/test/vcr_cassettes/paddle_pay/alert/webhook/test_0003_should_raise_an_error_if_no_vendor_auth_code_is_present.yml +61 -0
- data/test/vcr_cassettes/paddle_pay/product/coupon/test_0001_should_list_all_coupons.yml +60 -0
- data/test/vcr_cassettes/paddle_pay/product/coupon/test_0001_should_raise_an_error_if_the_coupon_deletion_is_invalid.yml +61 -0
- data/test/vcr_cassettes/paddle_pay/product/coupon/test_0001_should_raise_an_error_if_the_coupon_is_invalid.yml +61 -0
- data/test/vcr_cassettes/paddle_pay/product/coupon/test_0001_should_return_updated_0_if_the_coupon_group_update_is_invalid.yml +62 -0
- data/test/vcr_cassettes/paddle_pay/product/coupon/test_0001_should_return_updated_0_if_the_coupon_update_is_invalid.yml +62 -0
- data/test/vcr_cassettes/paddle_pay/product/coupon/test_0002_should_raise_an_error_if_no_vendor_id_is_present.yml +61 -0
- data/test/vcr_cassettes/paddle_pay/product/coupon/test_0002_should_return_coupon_codes_if_the_coupon_is_valid.yml +60 -0
- data/test/vcr_cassettes/paddle_pay/product/coupon/test_0002_should_return_success_if_the_coupon_deletion_is_valid.yml +62 -0
- data/test/vcr_cassettes/paddle_pay/product/coupon/test_0002_should_return_updated_0_if_the_coupon_group_update_is_valid.yml +62 -0
- data/test/vcr_cassettes/paddle_pay/product/coupon/test_0002_should_return_updated_0_if_the_coupon_update_is_valid.yml +62 -0
- data/test/vcr_cassettes/paddle_pay/product/coupon/test_0003_should_raise_an_error_if_no_vendor_auth_code_is_present.yml +61 -0
- data/test/vcr_cassettes/paddle_pay/product/license/test_0001_should_raise_an_error_if_license_generation_request_is_invalid.yml +61 -0
- data/test/vcr_cassettes/paddle_pay/product/license/test_0002_should_return_a_license_code_if_license_generation_request_is_valid.yml +61 -0
- data/test/vcr_cassettes/paddle_pay/product/pay_link/test_0001_should_raise_an_error_if_pay_link_generation_request_is_invalid.yml +61 -0
- data/test/vcr_cassettes/paddle_pay/product/pay_link/test_0002_should_return_an_url_if_pay_link_generation_request_is_valid.yml +60 -0
- data/test/vcr_cassettes/paddle_pay/product/payment/test_0001_should_raise_an_error_if_the_payment_refund_is_invalid.yml +61 -0
- data/test/vcr_cassettes/paddle_pay/product/payment/test_0002_should_return_success_if_the_payment_refund_is_valid.yml +60 -0
- data/test/vcr_cassettes/paddle_pay/product/test_0001_should_list_all_products.yml +60 -0
- data/test/vcr_cassettes/paddle_pay/product/test_0002_should_raise_an_error_if_no_vendor_id_is_present.yml +61 -0
- data/test/vcr_cassettes/paddle_pay/product/test_0003_should_raise_an_error_if_no_vendor_auth_code_is_present.yml +61 -0
- data/test/vcr_cassettes/paddle_pay/subscription/charge/test_0001_should_raise_an_error_if_the_charge_is_invalid.yml +61 -0
- data/test/vcr_cassettes/paddle_pay/subscription/charge/test_0002_should_return_invoice_id_if_the_charge_is_valid.yml +61 -0
- data/test/vcr_cassettes/paddle_pay/subscription/modifier/test_0001_should_list_all_modifiers.yml +62 -0
- data/test/vcr_cassettes/paddle_pay/subscription/modifier/test_0001_should_raise_an_error_if_the_modifier_deletion_is_invalid.yml +61 -0
- data/test/vcr_cassettes/paddle_pay/subscription/modifier/test_0001_should_raise_an_error_if_the_modifier_is_invalid.yml +61 -0
- data/test/vcr_cassettes/paddle_pay/subscription/modifier/test_0002_should_raise_an_error_if_no_vendor_id_is_present.yml +61 -0
- data/test/vcr_cassettes/paddle_pay/subscription/modifier/test_0002_should_return_a_modifier_id_if_the_modifier_is_valid.yml +60 -0
- data/test/vcr_cassettes/paddle_pay/subscription/modifier/test_0002_should_return_a_product_id_if_the_modifier_deletion_is_valid.yml +60 -0
- data/test/vcr_cassettes/paddle_pay/subscription/modifier/test_0003_should_raise_an_error_if_no_vendor_auth_code_is_present.yml +61 -0
- data/test/vcr_cassettes/paddle_pay/subscription/payment/test_0001_should_list_all_payments.yml +60 -0
- data/test/vcr_cassettes/paddle_pay/subscription/payment/test_0001_should_raise_an_error_if_the_payment_refund_is_invalid.yml +61 -0
- data/test/vcr_cassettes/paddle_pay/subscription/payment/test_0001_should_raise_an_error_if_the_payment_reschedule_is_invalid.yml +313 -0
- data/test/vcr_cassettes/paddle_pay/subscription/payment/test_0002_should_raise_an_error_if_no_vendor_id_is_present.yml +61 -0
- data/test/vcr_cassettes/paddle_pay/subscription/payment/test_0002_should_return_success_if_the_payment_refund_is_valid.yml +60 -0
- data/test/vcr_cassettes/paddle_pay/subscription/payment/test_0002_should_return_success_if_the_payment_reschedule_is_valid.yml +62 -0
- data/test/vcr_cassettes/paddle_pay/subscription/payment/test_0003_should_raise_an_error_if_no_vendor_auth_code_is_present.yml +61 -0
- data/test/vcr_cassettes/paddle_pay/subscription/plan/test_0001_should_list_all_plans.yml +60 -0
- data/test/vcr_cassettes/paddle_pay/subscription/plan/test_0001_should_raise_an_error_if_the_plan_is_invalid.yml +61 -0
- data/test/vcr_cassettes/paddle_pay/subscription/plan/test_0002_should_be_successful_if_the_plan_is_valid.yml +62 -0
- data/test/vcr_cassettes/paddle_pay/subscription/plan/test_0002_should_raise_an_error_if_no_vendor_id_is_present.yml +61 -0
- data/test/vcr_cassettes/paddle_pay/subscription/plan/test_0002_should_return_a_product_id_if_the_plan_is_valid.yml +62 -0
- data/test/vcr_cassettes/paddle_pay/subscription/plan/test_0003_should_raise_an_error_if_no_vendor_auth_code_is_present.yml +61 -0
- data/test/vcr_cassettes/paddle_pay/subscription/user/test_0001_should_list_all_users.yml +61 -0
- data/test/vcr_cassettes/paddle_pay/subscription/user/test_0001_should_raise_an_error_if_the_cancelation_is_invalid.yml +61 -0
- data/test/vcr_cassettes/paddle_pay/subscription/user/test_0001_should_raise_an_error_if_the_subscription_update_is_invalid.yml +61 -0
- data/test/vcr_cassettes/paddle_pay/subscription/user/test_0001_should_raise_an_error_if_the_subscription_update_preview_is_invalid.yml +61 -0
- data/test/vcr_cassettes/paddle_pay/subscription/user/test_0002_should_raise_an_error_if_no_vendor_id_is_present.yml +61 -0
- data/test/vcr_cassettes/paddle_pay/subscription/user/test_0002_should_return_a_subscription_id_if_the_subscription_update_is_valid.yml +60 -0
- data/test/vcr_cassettes/paddle_pay/subscription/user/test_0002_should_return_a_subscription_id_if_the_subscription_update_preview_is_valid.yml +60 -0
- data/test/vcr_cassettes/paddle_pay/subscription/user/test_0002_should_return_success_if_the_cancelation_is_valid.yml +62 -0
- data/test/vcr_cassettes/paddle_pay/subscription/user/test_0003_should_raise_an_error_if_no_vendor_auth_code_is_present.yml +61 -0
- data/test/vcr_cassettes/paddle_pay/transaction/checkout/test_0001_should_list_all_checkouts.yml +61 -0
- data/test/vcr_cassettes/paddle_pay/transaction/checkout/test_0002_should_raise_an_error_if_no_vendor_id_is_present.yml +61 -0
- data/test/vcr_cassettes/paddle_pay/transaction/checkout/test_0003_should_raise_an_error_if_no_vendor_auth_code_is_present.yml +61 -0
- data/test/vcr_cassettes/paddle_pay/transaction/order/test_0001_should_list_all_orders.yml +61 -0
- data/test/vcr_cassettes/paddle_pay/transaction/order/test_0002_should_raise_an_error_if_no_vendor_id_is_present.yml +61 -0
- data/test/vcr_cassettes/paddle_pay/transaction/order/test_0003_should_raise_an_error_if_no_vendor_auth_code_is_present.yml +61 -0
- data/test/vcr_cassettes/paddle_pay/transaction/product/test_0001_should_list_all_products.yml +62 -0
- data/test/vcr_cassettes/paddle_pay/transaction/product/test_0002_should_raise_an_error_if_no_vendor_id_is_present.yml +61 -0
- data/test/vcr_cassettes/paddle_pay/transaction/product/test_0003_should_raise_an_error_if_no_vendor_auth_code_is_present.yml +61 -0
- data/test/vcr_cassettes/paddle_pay/transaction/subscription/test_0001_should_list_all_subscriptions.yml +61 -0
- data/test/vcr_cassettes/paddle_pay/transaction/subscription/test_0002_should_raise_an_error_if_no_vendor_id_is_present.yml +61 -0
- data/test/vcr_cassettes/paddle_pay/transaction/subscription/test_0003_should_raise_an_error_if_no_vendor_auth_code_is_present.yml +61 -0
- data/test/vcr_cassettes/paddle_pay/transaction/user/test_0001_should_list_all_users.yml +62 -0
- data/test/vcr_cassettes/paddle_pay/transaction/user/test_0002_should_raise_an_error_if_no_vendor_id_is_present.yml +61 -0
- data/test/vcr_cassettes/paddle_pay/transaction/user/test_0003_should_raise_an_error_if_no_vendor_auth_code_is_present.yml +61 -0
- metadata +358 -0
@@ -0,0 +1,61 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://vendors.paddle.com/api/2.0/subscription/users_cancel
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: subscription_id=1000000&vendor_auth_code=<VENDOR_AUTH_CODE>&vendor_id=<VENDOR_ID>
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v1.0.1
|
12
|
+
Content-Type:
|
13
|
+
- application/x-www-form-urlencoded
|
14
|
+
Accept-Encoding:
|
15
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
|
+
Accept:
|
17
|
+
- "*/*"
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Date:
|
24
|
+
- Fri, 22 May 2020 17:18:15 GMT
|
25
|
+
Content-Type:
|
26
|
+
- application/json
|
27
|
+
Transfer-Encoding:
|
28
|
+
- chunked
|
29
|
+
Connection:
|
30
|
+
- keep-alive
|
31
|
+
Set-Cookie:
|
32
|
+
- __cfduid=d68639405926499ad831b1e858b3549231590167895; expires=Sun, 21-Jun-20
|
33
|
+
17:18:15 GMT; path=/; domain=.paddle.com; HttpOnly; SameSite=Lax
|
34
|
+
- paddle_session_vendor=eyJpdiI6Ik1KdUxERHkxM1NvV1BUZWI5b3piYktvUkZZSDBMWEZ6Q1BvS0F5bjRzREk9IiwidmFsdWUiOiJFbTJ3dDBFRU9ndnFJbE4zaDgzdXRsU3VROTdRUVRyd2I5OW14ZkdRalNka3E1djNLXC9tYVhLbHgyMUptc2RrMk5uTzN4K3RyQ3loKzZWckZvQ1ZURUE9PSIsIm1hYyI6IjRhM2ZlZWY1Njc3NGQyMmRlNjliMjQ4MDljYmY4YjA5OGJmMGI4YmU5OWM2MTI5MGY3YTIxZGM3NTdjMmFiM2EifQ%3D%3D;
|
35
|
+
expires=Fri, 22-May-2020 19:18:15 GMT; Max-Age=7200; path=/; domain=vendors.paddle.com;
|
36
|
+
secure; HttpOnly;SameSite=none;Secure
|
37
|
+
X-Powered-By:
|
38
|
+
- PHP/7.2.31
|
39
|
+
Cache-Control:
|
40
|
+
- no-cache
|
41
|
+
X-Frame-Options:
|
42
|
+
- sameorigin
|
43
|
+
P3p:
|
44
|
+
- CP="CAO CUR ADMa DEVa TAIa OUR DELa STP ONL NAV STA PUR"
|
45
|
+
Cf-Cache-Status:
|
46
|
+
- DYNAMIC
|
47
|
+
Expect-Ct:
|
48
|
+
- max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
|
49
|
+
Server:
|
50
|
+
- cloudflare
|
51
|
+
Cf-Ray:
|
52
|
+
- 59783203dd4cc771-AMS
|
53
|
+
Cf-Request-Id:
|
54
|
+
- 02defd96670000c771da09f200000001
|
55
|
+
body:
|
56
|
+
encoding: ASCII-8BIT
|
57
|
+
string: '{"success":false,"error":{"code":119,"message":"Unable to find requested
|
58
|
+
subscription"}}'
|
59
|
+
http_version: null
|
60
|
+
recorded_at: Fri, 22 May 2020 17:18:15 GMT
|
61
|
+
recorded_with: VCR 5.1.0
|
@@ -0,0 +1,61 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://vendors.paddle.com/api/2.0/subscription/users_update
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: subscription_id=3479984&vendor_auth_code=<VENDOR_AUTH_CODE>&vendor_id=<VENDOR_ID>
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v1.0.1
|
12
|
+
Content-Type:
|
13
|
+
- application/x-www-form-urlencoded
|
14
|
+
Accept-Encoding:
|
15
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
|
+
Accept:
|
17
|
+
- "*/*"
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Date:
|
24
|
+
- Fri, 22 May 2020 17:05:59 GMT
|
25
|
+
Content-Type:
|
26
|
+
- application/json
|
27
|
+
Transfer-Encoding:
|
28
|
+
- chunked
|
29
|
+
Connection:
|
30
|
+
- keep-alive
|
31
|
+
Set-Cookie:
|
32
|
+
- __cfduid=d8782e054913e9f02cbf8a29ccbee58601590167159; expires=Sun, 21-Jun-20
|
33
|
+
17:05:59 GMT; path=/; domain=.paddle.com; HttpOnly; SameSite=Lax
|
34
|
+
- paddle_session_vendor=eyJpdiI6InV0QXlOekx2ME1kOGd4ZUFPRUJMcHdCaThkbDcyamhXc0dnTVBmcUlaeU09IiwidmFsdWUiOiIrTnJTVjJGRjZFaHZzS0FBR2RoRzVhdWlcL2l3NWgxNlk0aW5wN3VJY1R0c1wvQjZXdjQrM1VpRXFUd2ZmZ3ZlU09RKzdUZldvc3A5amhoS1g0K1hcL1l2QT09IiwibWFjIjoiYjAzMGZhZWMxZjdkOGI2ZGRjYmJhYzVlNjhkNmI2YmUwMjVlODQyYzA4YmIyMzZkNTM4MzdkNTZiNGRhZDFmOCJ9;
|
35
|
+
expires=Fri, 22-May-2020 19:05:59 GMT; Max-Age=7200; path=/; domain=vendors.paddle.com;
|
36
|
+
secure; HttpOnly;SameSite=none;Secure
|
37
|
+
X-Powered-By:
|
38
|
+
- PHP/7.2.31
|
39
|
+
Cache-Control:
|
40
|
+
- no-cache
|
41
|
+
X-Frame-Options:
|
42
|
+
- sameorigin
|
43
|
+
P3p:
|
44
|
+
- CP="CAO CUR ADMa DEVa TAIa OUR DELa STP ONL NAV STA PUR"
|
45
|
+
Cf-Cache-Status:
|
46
|
+
- DYNAMIC
|
47
|
+
Expect-Ct:
|
48
|
+
- max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
|
49
|
+
Server:
|
50
|
+
- cloudflare
|
51
|
+
Cf-Ray:
|
52
|
+
- 5978200c3ead0c05-AMS
|
53
|
+
Cf-Request-Id:
|
54
|
+
- 02def25ba700000c05bcbc8200000001
|
55
|
+
body:
|
56
|
+
encoding: ASCII-8BIT
|
57
|
+
string: '{"success":false,"error":{"code":116,"message":"One or more required
|
58
|
+
arguments are missing"}}'
|
59
|
+
http_version: null
|
60
|
+
recorded_at: Fri, 22 May 2020 17:05:59 GMT
|
61
|
+
recorded_with: VCR 5.1.0
|
@@ -0,0 +1,61 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://vendors.paddle.com/api/2.0/subscription/preview_update
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: subscription_id=3479984&vendor_auth_code=<VENDOR_AUTH_CODE>&vendor_id=<VENDOR_ID>
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v1.0.1
|
12
|
+
Content-Type:
|
13
|
+
- application/x-www-form-urlencoded
|
14
|
+
Accept-Encoding:
|
15
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
|
+
Accept:
|
17
|
+
- "*/*"
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Date:
|
24
|
+
- Fri, 22 May 2020 17:06:00 GMT
|
25
|
+
Content-Type:
|
26
|
+
- application/json
|
27
|
+
Transfer-Encoding:
|
28
|
+
- chunked
|
29
|
+
Connection:
|
30
|
+
- keep-alive
|
31
|
+
Set-Cookie:
|
32
|
+
- __cfduid=defdf1dcb1b0d2198b3866292792385591590167160; expires=Sun, 21-Jun-20
|
33
|
+
17:06:00 GMT; path=/; domain=.paddle.com; HttpOnly; SameSite=Lax
|
34
|
+
- paddle_session_vendor=eyJpdiI6ImdUQTVWQzRGQW54Vyt6N21nR25yRmZDajVLQzlLYmpjZTlyM2RHS1FRalU9IiwidmFsdWUiOiJLeWpzbjR3OUpBREJBTFM1a0s5REh5SElxMmxxU0h6Sk5EWm1xREwrUzVlYzNJRUJ2bzg5elJNTXZra3pKRVZGbW01OVZkNEJjQzg3XC83ZDI3YUo3OGc9PSIsIm1hYyI6IjBmNjQ2YjAwMTE3M2Y4YzY2MjU0OWVkZDZlYTc5NDg5MTZhMTQyZGMyOWE3OWZmNTYyNTliYWM3NDc5ZjEyYWQifQ%3D%3D;
|
35
|
+
expires=Fri, 22-May-2020 19:06:00 GMT; Max-Age=7200; path=/; domain=vendors.paddle.com;
|
36
|
+
secure; HttpOnly;SameSite=none;Secure
|
37
|
+
X-Powered-By:
|
38
|
+
- PHP/7.2.31
|
39
|
+
Cache-Control:
|
40
|
+
- no-cache
|
41
|
+
X-Frame-Options:
|
42
|
+
- sameorigin
|
43
|
+
P3p:
|
44
|
+
- CP="CAO CUR ADMa DEVa TAIa OUR DELa STP ONL NAV STA PUR"
|
45
|
+
Cf-Cache-Status:
|
46
|
+
- DYNAMIC
|
47
|
+
Expect-Ct:
|
48
|
+
- max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
|
49
|
+
Server:
|
50
|
+
- cloudflare
|
51
|
+
Cf-Ray:
|
52
|
+
- 59782011becf0b63-AMS
|
53
|
+
Cf-Request-Id:
|
54
|
+
- 02def25f0e00000b63999ac200000001
|
55
|
+
body:
|
56
|
+
encoding: ASCII-8BIT
|
57
|
+
string: '{"success":false,"error":{"code":116,"message":"One or more required
|
58
|
+
arguments are missing"}}'
|
59
|
+
http_version: null
|
60
|
+
recorded_at: Fri, 22 May 2020 17:06:00 GMT
|
61
|
+
recorded_with: VCR 5.1.0
|
@@ -0,0 +1,61 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://vendors.paddle.com/api/2.0/subscription/users
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: vendor_auth_code=<VENDOR_AUTH_CODE>&vendor_id
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v1.0.1
|
12
|
+
Content-Type:
|
13
|
+
- application/x-www-form-urlencoded
|
14
|
+
Accept-Encoding:
|
15
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
|
+
Accept:
|
17
|
+
- "*/*"
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Date:
|
24
|
+
- Fri, 22 May 2020 16:29:39 GMT
|
25
|
+
Content-Type:
|
26
|
+
- application/json
|
27
|
+
Transfer-Encoding:
|
28
|
+
- chunked
|
29
|
+
Connection:
|
30
|
+
- keep-alive
|
31
|
+
Set-Cookie:
|
32
|
+
- __cfduid=d4f9721eb2acc1ce5a3e9c2ac1ee1ca7d1590164979; expires=Sun, 21-Jun-20
|
33
|
+
16:29:39 GMT; path=/; domain=.paddle.com; HttpOnly; SameSite=Lax
|
34
|
+
- paddle_session_vendor=eyJpdiI6InVqeUw3K0dFODNDSmYydFwvN25rSVpNNXhKM0NhOVpnOEpxbmJkMXlLM2hBPSIsInZhbHVlIjoiaG5Ed2FkTDRZSVRFbWNkZElOMkhFNUR1U0dvdFN1dnRnbUh3VkNOdTRLU3paQ0tDeWxNejg5bVJsaGJRdzh2cExKSGRKQVU1VVJoWnFtUHFXKzlWMnc9PSIsIm1hYyI6ImYzZDg2YTc5ODg2NWQ2M2E3M2FiY2FiZmY0Yzc3OWEzNDcyZjY0NWZlYzY1MjMyZjhjZGVmZDJlZmZlYmZiODYifQ%3D%3D;
|
35
|
+
expires=Fri, 22-May-2020 18:29:39 GMT; Max-Age=7200; path=/; domain=vendors.paddle.com;
|
36
|
+
secure; HttpOnly;SameSite=none;Secure
|
37
|
+
X-Powered-By:
|
38
|
+
- PHP/7.2.31
|
39
|
+
Cache-Control:
|
40
|
+
- no-cache
|
41
|
+
X-Frame-Options:
|
42
|
+
- sameorigin
|
43
|
+
P3p:
|
44
|
+
- CP="CAO CUR ADMa DEVa TAIa OUR DELa STP ONL NAV STA PUR"
|
45
|
+
Cf-Cache-Status:
|
46
|
+
- DYNAMIC
|
47
|
+
Expect-Ct:
|
48
|
+
- max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
|
49
|
+
Server:
|
50
|
+
- cloudflare
|
51
|
+
Cf-Ray:
|
52
|
+
- 5977ead2aadd0c79-AMS
|
53
|
+
Cf-Request-Id:
|
54
|
+
- 02ded117ac00000c7913840200000001
|
55
|
+
body:
|
56
|
+
encoding: ASCII-8BIT
|
57
|
+
string: '{"success":false,"error":{"code":107,"message":"You don''t have permission
|
58
|
+
to access this resource"}}'
|
59
|
+
http_version: null
|
60
|
+
recorded_at: Fri, 22 May 2020 16:29:39 GMT
|
61
|
+
recorded_with: VCR 5.1.0
|
@@ -0,0 +1,60 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://vendors.paddle.com/api/2.0/subscription/users_update
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: currency=USD&quantity=1&recurring_price=10.00&subscription_id=3479984&vendor_auth_code=<VENDOR_AUTH_CODE>&vendor_id=<VENDOR_ID>
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v1.0.1
|
12
|
+
Content-Type:
|
13
|
+
- application/x-www-form-urlencoded
|
14
|
+
Accept-Encoding:
|
15
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
|
+
Accept:
|
17
|
+
- "*/*"
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Date:
|
24
|
+
- Fri, 22 May 2020 17:06:00 GMT
|
25
|
+
Content-Type:
|
26
|
+
- application/json
|
27
|
+
Transfer-Encoding:
|
28
|
+
- chunked
|
29
|
+
Connection:
|
30
|
+
- keep-alive
|
31
|
+
Set-Cookie:
|
32
|
+
- __cfduid=d30f5f92caff4a7af6e7c6e8bb5351bd21590167160; expires=Sun, 21-Jun-20
|
33
|
+
17:06:00 GMT; path=/; domain=.paddle.com; HttpOnly; SameSite=Lax
|
34
|
+
- paddle_session_vendor=eyJpdiI6IndXR1o5YlE0RXBBUHo0Q3labG5wQ1p1Y2lLWVZmQ2VMMUFhOWJPVm83aWs9IiwidmFsdWUiOiI1RWZmaUVPY1wvV3pXMWJsNjJUSEE3K0RtTkhOOUltRm9DSXVxdDZueW1pMXlIZnRVTlh1V05SQXYrT1N5d3dnNWpoUEQ5cjFsVmhtN3F1cjcyOWVBa0E9PSIsIm1hYyI6ImEzZjUxNGNhZDAwMzgxNTYyNGJlOWNiZWY3YmU3MDFkODQ3NjU0NmYwYWIwZjQ5NzhkYzRhZmY0YmE4YzY1YTEifQ%3D%3D;
|
35
|
+
expires=Fri, 22-May-2020 19:06:00 GMT; Max-Age=7200; path=/; domain=vendors.paddle.com;
|
36
|
+
secure; HttpOnly;SameSite=none;Secure
|
37
|
+
X-Powered-By:
|
38
|
+
- PHP/7.2.31
|
39
|
+
Cache-Control:
|
40
|
+
- no-cache
|
41
|
+
X-Frame-Options:
|
42
|
+
- sameorigin
|
43
|
+
P3p:
|
44
|
+
- CP="CAO CUR ADMa DEVa TAIa OUR DELa STP ONL NAV STA PUR"
|
45
|
+
Cf-Cache-Status:
|
46
|
+
- DYNAMIC
|
47
|
+
Expect-Ct:
|
48
|
+
- max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
|
49
|
+
Server:
|
50
|
+
- cloudflare
|
51
|
+
Cf-Ray:
|
52
|
+
- 5978200e8a26bdf5-AMS
|
53
|
+
Cf-Request-Id:
|
54
|
+
- 02def25d190000bdf5d78d7200000001
|
55
|
+
body:
|
56
|
+
encoding: ASCII-8BIT
|
57
|
+
string: '{"success":true,"response":{"subscription_id":3479984,"user_id":17368056,"plan_id":594469,"next_payment":{"amount":17.85,"currency":"USD","date":"2020-06-22"}}}'
|
58
|
+
http_version: null
|
59
|
+
recorded_at: Fri, 22 May 2020 17:06:00 GMT
|
60
|
+
recorded_with: VCR 5.1.0
|
@@ -0,0 +1,60 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://vendors.paddle.com/api/2.0/subscription/preview_update
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: currency=USD&quantity=1&recurring_price=10.00&subscription_id=3479984&vendor_auth_code=<VENDOR_AUTH_CODE>&vendor_id=<VENDOR_ID>
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v1.0.1
|
12
|
+
Content-Type:
|
13
|
+
- application/x-www-form-urlencoded
|
14
|
+
Accept-Encoding:
|
15
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
|
+
Accept:
|
17
|
+
- "*/*"
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Date:
|
24
|
+
- Fri, 22 May 2020 17:06:01 GMT
|
25
|
+
Content-Type:
|
26
|
+
- application/json
|
27
|
+
Transfer-Encoding:
|
28
|
+
- chunked
|
29
|
+
Connection:
|
30
|
+
- keep-alive
|
31
|
+
Set-Cookie:
|
32
|
+
- __cfduid=d90183d9434dbdb5047cecdba6c8da4f91590167160; expires=Sun, 21-Jun-20
|
33
|
+
17:06:00 GMT; path=/; domain=.paddle.com; HttpOnly; SameSite=Lax
|
34
|
+
- paddle_session_vendor=eyJpdiI6IjJkOHpHMWVYZ2dDZEJXZU04UmEwVGRBT2xxK0VXNmZSNFJtbDNWV0hCWU09IiwidmFsdWUiOiJlOFpVUitUbVljVFFZNVpzM0lzd2RNdXkwblVNWlp1XC9oVDVpc0VlKzZmSDI4MXBSRnBHZ2RBZFIwZ0ROcHc5a1crRnE3ZEljU2F4VTMzWnp3S09vSFE9PSIsIm1hYyI6IjhjYzNmZDgxOGFhZWYwMGNlM2NlZTg1YTgxNmQxYTJkZTU0ZGY0MTU5MmRmYjlkNGNiMzA5NjRlZTY5N2Y5MDEifQ%3D%3D;
|
35
|
+
expires=Fri, 22-May-2020 19:06:01 GMT; Max-Age=7200; path=/; domain=vendors.paddle.com;
|
36
|
+
secure; HttpOnly;SameSite=none;Secure
|
37
|
+
X-Powered-By:
|
38
|
+
- PHP/7.2.31
|
39
|
+
Cache-Control:
|
40
|
+
- no-cache
|
41
|
+
X-Frame-Options:
|
42
|
+
- sameorigin
|
43
|
+
P3p:
|
44
|
+
- CP="CAO CUR ADMa DEVa TAIa OUR DELa STP ONL NAV STA PUR"
|
45
|
+
Cf-Cache-Status:
|
46
|
+
- DYNAMIC
|
47
|
+
Expect-Ct:
|
48
|
+
- max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
|
49
|
+
Server:
|
50
|
+
- cloudflare
|
51
|
+
Cf-Ray:
|
52
|
+
- 59782013ce419c45-AMS
|
53
|
+
Cf-Request-Id:
|
54
|
+
- 02def2605e00009c4593985200000001
|
55
|
+
body:
|
56
|
+
encoding: ASCII-8BIT
|
57
|
+
string: '{"success":true,"response":{"subscription_id":3479984,"user_id":17368056,"plan_id":594469,"next_payment":{"amount":11.9,"currency":"USD","date":"2020-06-22"}}}'
|
58
|
+
http_version: null
|
59
|
+
recorded_at: Fri, 22 May 2020 17:06:01 GMT
|
60
|
+
recorded_with: VCR 5.1.0
|
@@ -0,0 +1,62 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://vendors.paddle.com/api/2.0/subscription/users_cancel
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: subscription_id=3479984&vendor_auth_code=<VENDOR_AUTH_CODE>&vendor_id=<VENDOR_ID>
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v1.0.1
|
12
|
+
Content-Type:
|
13
|
+
- application/x-www-form-urlencoded
|
14
|
+
Accept-Encoding:
|
15
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
|
+
Accept:
|
17
|
+
- "*/*"
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Date:
|
24
|
+
- Fri, 22 May 2020 17:42:36 GMT
|
25
|
+
Content-Type:
|
26
|
+
- application/json
|
27
|
+
Content-Length:
|
28
|
+
- '32'
|
29
|
+
Connection:
|
30
|
+
- keep-alive
|
31
|
+
Set-Cookie:
|
32
|
+
- __cfduid=d2f828e7e6234ba80eca317b87ba20c3d1590169356; expires=Sun, 21-Jun-20
|
33
|
+
17:42:36 GMT; path=/; domain=.paddle.com; HttpOnly; SameSite=Lax
|
34
|
+
- paddle_session_vendor=eyJpdiI6InprdXp0M0hLellCNFBRZUpucXZJVVhLNWtseUFGT3BJVG9WY1NlT2c0Szg9IiwidmFsdWUiOiJjTHVSb0h6Q2szY1dFZXc0cTZnSWdVbUdSVTZzWUxOMUVtRDZIMHArRGpkMUloM0t1NUtudWV6Q1YrSE1pbmpSR1NcLzdJZXA5NFNFeHJFcUd3dStwb0E9PSIsIm1hYyI6IjI2ZWRjMmU4N2Q5YjA4MWFkMjhlMWVlODFmYzAxNzRkMzAxMGFiNTliZjczZTg5YWUyNjFlMWY1ZTBlNmI1NWQifQ%3D%3D;
|
35
|
+
expires=Fri, 22-May-2020 19:42:36 GMT; Max-Age=7200; path=/; domain=vendors.paddle.com;
|
36
|
+
secure; HttpOnly;SameSite=none;Secure
|
37
|
+
X-Powered-By:
|
38
|
+
- PHP/7.2.31
|
39
|
+
Cache-Control:
|
40
|
+
- no-cache
|
41
|
+
X-Frame-Options:
|
42
|
+
- sameorigin
|
43
|
+
P3p:
|
44
|
+
- CP="CAO CUR ADMa DEVa TAIa OUR DELa STP ONL NAV STA PUR"
|
45
|
+
Accept-Ranges:
|
46
|
+
- bytes
|
47
|
+
Cf-Cache-Status:
|
48
|
+
- DYNAMIC
|
49
|
+
Expect-Ct:
|
50
|
+
- max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
|
51
|
+
Server:
|
52
|
+
- cloudflare
|
53
|
+
Cf-Ray:
|
54
|
+
- 597855addc20bf82-AMS
|
55
|
+
Cf-Request-Id:
|
56
|
+
- 02df13e0a40000bf82ed312200000001
|
57
|
+
body:
|
58
|
+
encoding: UTF-8
|
59
|
+
string: '{"success":true,"response":null}'
|
60
|
+
http_version: null
|
61
|
+
recorded_at: Fri, 22 May 2020 17:42:36 GMT
|
62
|
+
recorded_with: VCR 5.1.0
|
@@ -0,0 +1,61 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://vendors.paddle.com/api/2.0/subscription/users
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: vendor_auth_code&vendor_id=<VENDOR_ID>
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v1.0.1
|
12
|
+
Content-Type:
|
13
|
+
- application/x-www-form-urlencoded
|
14
|
+
Accept-Encoding:
|
15
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
16
|
+
Accept:
|
17
|
+
- "*/*"
|
18
|
+
response:
|
19
|
+
status:
|
20
|
+
code: 200
|
21
|
+
message: OK
|
22
|
+
headers:
|
23
|
+
Date:
|
24
|
+
- Fri, 22 May 2020 16:29:40 GMT
|
25
|
+
Content-Type:
|
26
|
+
- application/json
|
27
|
+
Transfer-Encoding:
|
28
|
+
- chunked
|
29
|
+
Connection:
|
30
|
+
- keep-alive
|
31
|
+
Set-Cookie:
|
32
|
+
- __cfduid=dbce9431a3658af4cc2654935c2b10ccd1590164980; expires=Sun, 21-Jun-20
|
33
|
+
16:29:40 GMT; path=/; domain=.paddle.com; HttpOnly; SameSite=Lax
|
34
|
+
- paddle_session_vendor=eyJpdiI6InlXRHZROUowNUVcL3NJWkpIVEFrWXlnXC96ejAyUDluWDg2Y2Z3YlkxU3gybz0iLCJ2YWx1ZSI6IjV6QjBNendvQUJwc3FkejFReVBCcWRGSTIwMGFFcWtPWU5HSklUOXZnQkFvSldqbGVMTGx1MlNJSUtiWEQ1MGplNzN3NERhczRZWjBRcWVXKzdvN0x3PT0iLCJtYWMiOiIyNGI5NDhjOTdhN2Q0NjUzMWNkNGIyNDdlNGEyNzE5NzIyNDA3MmRlMjEwOWI5MzExODI5OTQ2NzliOTI4N2E3In0%3D;
|
35
|
+
expires=Fri, 22-May-2020 18:29:40 GMT; Max-Age=7200; path=/; domain=vendors.paddle.com;
|
36
|
+
secure; HttpOnly;SameSite=none;Secure
|
37
|
+
X-Powered-By:
|
38
|
+
- PHP/7.2.31
|
39
|
+
Cache-Control:
|
40
|
+
- no-cache
|
41
|
+
X-Frame-Options:
|
42
|
+
- sameorigin
|
43
|
+
P3p:
|
44
|
+
- CP="CAO CUR ADMa DEVa TAIa OUR DELa STP ONL NAV STA PUR"
|
45
|
+
Cf-Cache-Status:
|
46
|
+
- DYNAMIC
|
47
|
+
Expect-Ct:
|
48
|
+
- max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
|
49
|
+
Server:
|
50
|
+
- cloudflare
|
51
|
+
Cf-Ray:
|
52
|
+
- 5977ead77840c79d-AMS
|
53
|
+
Cf-Request-Id:
|
54
|
+
- 02ded11aa70000c79d5b223200000001
|
55
|
+
body:
|
56
|
+
encoding: ASCII-8BIT
|
57
|
+
string: '{"success":false,"error":{"code":107,"message":"You don''t have permission
|
58
|
+
to access this resource"}}'
|
59
|
+
http_version: null
|
60
|
+
recorded_at: Fri, 22 May 2020 16:29:40 GMT
|
61
|
+
recorded_with: VCR 5.1.0
|