From 43d0e833f6fd9cfb6299f7713c256e7a93d379b9 Mon Sep 17 00:00:00 2001 From: Jay Patel Date: Thu, 19 Feb 2015 16:10:56 -0600 Subject: [PATCH] Reverted: Updates to API Urls - api-s.sandbox.paypal.com is reverted to api.sandbox.paypal.com - api-s.paypal.com was reverted to api.paypal.com --- docs/index.html | 10 +++---- lib/PayPal/Core/PayPalConstants.php | 4 +-- .../testGet.json | 10 +++---- .../testGetCancelled.json | 10 +++---- .../testGetSuspended.json | 10 +++---- .../InvoiceFunctionalTest/testCancel.json | 2 +- .../InvoiceFunctionalTest/testCreate.json | 2 +- .../InvoiceFunctionalTest/testDelete.json | 2 +- .../InvoiceFunctionalTest/testGet.json | 2 +- .../InvoiceFunctionalTest/testGetAll.json | 2 +- .../InvoiceFunctionalTest/testQRCode.json | 2 +- .../InvoiceFunctionalTest/testRemind.json | 2 +- .../InvoiceFunctionalTest/testSearch.json | 2 +- .../InvoiceFunctionalTest/testSend.json | 2 +- .../InvoiceFunctionalTest/testUpdate.json | 2 +- .../PaymentsFunctionalTest/testCreate.json | 8 +++--- .../testCreateWallet.json | 8 +++--- .../PaymentsFunctionalTest/testExecute.json | 8 +++--- .../PaymentsFunctionalTest/testGet.json | 8 +++--- .../testGetPending.json | 8 +++--- .../PaymentsFunctionalTest/testGetSale.json | 6 ++-- .../testRefundSale.json | 6 ++-- .../PayoutsFunctionalTest/testCancel.json | 4 +-- .../PayoutsFunctionalTest/testCreate.json | 4 +-- .../PayoutsFunctionalTest/testGetItem.json | 4 +-- .../WebProfileFunctionalTest/testCreate.json | 2 +- .../WebProfileFunctionalTest/testDelete.json | 2 +- .../WebProfileFunctionalTest/testGet.json | 2 +- .../WebProfileFunctionalTest/testGetList.json | 2 +- .../testPartialUpdate.json | 2 +- .../WebProfileFunctionalTest/testUpdate.json | 2 +- .../WebhookFunctionalTest/testCreate.json | 6 ++-- .../testEventResend.json | 12 ++++---- .../testEventSearch.json | 28 +++++++++---------- .../WebhookFunctionalTest/testGet.json | 6 ++-- .../WebhookFunctionalTest/testGetAll.json | 12 ++++---- .../WebhookFunctionalTest/testGetEvent.json | 12 ++++---- .../WebhookFunctionalTest/testUpdate.json | 6 ++-- tests/sdk_config.ini | 4 +-- 39 files changed, 113 insertions(+), 113 deletions(-) diff --git a/docs/index.html b/docs/index.html index 6d7f73d..5fb879d 100644 --- a/docs/index.html +++ b/docs/index.html @@ -10,7 +10,7 @@ PayPal PHP SDK - Welcome - + @@ -31,10 +31,10 @@

// PayPal PHP SDK


- PayPal-PHP-SDK is our official Open-Source PHP SDK for supporting PayPal Rest APIs. Checkout all the supporting documents, samples, codebase from the following links + PayPal PHP SDK is our official Open Source PHP SDK for supporting PayPal Rest APIs. Checkout all the supporting documents, samples, codebase from the following links



-
+
-
+ diff --git a/lib/PayPal/Core/PayPalConstants.php b/lib/PayPal/Core/PayPalConstants.php index 502e5c2..3dab406 100644 --- a/lib/PayPal/Core/PayPalConstants.php +++ b/lib/PayPal/Core/PayPalConstants.php @@ -19,9 +19,9 @@ class PayPalConstants */ const APPROVAL_URL = 'approval_url'; - const REST_SANDBOX_ENDPOINT = "https://api-s.sandbox.paypal.com/"; + const REST_SANDBOX_ENDPOINT = "https://api.sandbox.paypal.com/"; const OPENID_REDIRECT_SANDBOX_URL = "https://www.sandbox.paypal.com/webapps/auth/protocol/openidconnect"; - const REST_LIVE_ENDPOINT = "https://api-s.paypal.com/"; + const REST_LIVE_ENDPOINT = "https://api.paypal.com/"; const OPENID_REDIRECT_LIVE_URL = "https://www.paypal.com/webapps/auth/protocol/openidconnect"; } diff --git a/tests/PayPal/Test/Functional/resources/BillingAgreementsFunctionalTest/testGet.json b/tests/PayPal/Test/Functional/resources/BillingAgreementsFunctionalTest/testGet.json index 25c3b56..5189efd 100755 --- a/tests/PayPal/Test/Functional/resources/BillingAgreementsFunctionalTest/testGet.json +++ b/tests/PayPal/Test/Functional/resources/BillingAgreementsFunctionalTest/testGet.json @@ -92,27 +92,27 @@ }, "links": [ { - "href": "https://api-s.sandbox.paypal.com/v1/payments/billing-agreements/I-XTN3V7NY6KG7/suspend", + "href": "https://api.sandbox.paypal.com/v1/payments/billing-agreements/I-XTN3V7NY6KG7/suspend", "rel": "suspend", "method": "POST" }, { - "href": "https://api-s.sandbox.paypal.com/v1/payments/billing-agreements/I-XTN3V7NY6KG7/re-activate", + "href": "https://api.sandbox.paypal.com/v1/payments/billing-agreements/I-XTN3V7NY6KG7/re-activate", "rel": "re_activate", "method": "POST" }, { - "href": "https://api-s.sandbox.paypal.com/v1/payments/billing-agreements/I-XTN3V7NY6KG7/cancel", + "href": "https://api.sandbox.paypal.com/v1/payments/billing-agreements/I-XTN3V7NY6KG7/cancel", "rel": "cancel", "method": "POST" }, { - "href": "https://api-s.sandbox.paypal.com/v1/payments/billing-agreements/I-XTN3V7NY6KG7/bill-balance", + "href": "https://api.sandbox.paypal.com/v1/payments/billing-agreements/I-XTN3V7NY6KG7/bill-balance", "rel": "self", "method": "POST" }, { - "href": "https://api-s.sandbox.paypal.com/v1/payments/billing-agreements/I-XTN3V7NY6KG7/set-balance", + "href": "https://api.sandbox.paypal.com/v1/payments/billing-agreements/I-XTN3V7NY6KG7/set-balance", "rel": "self", "method": "POST" } diff --git a/tests/PayPal/Test/Functional/resources/BillingAgreementsFunctionalTest/testGetCancelled.json b/tests/PayPal/Test/Functional/resources/BillingAgreementsFunctionalTest/testGetCancelled.json index 923a17e..d1f656a 100755 --- a/tests/PayPal/Test/Functional/resources/BillingAgreementsFunctionalTest/testGetCancelled.json +++ b/tests/PayPal/Test/Functional/resources/BillingAgreementsFunctionalTest/testGetCancelled.json @@ -92,27 +92,27 @@ }, "links": [ { - "href": "https://api-s.sandbox.paypal.com/v1/payments/billing-agreements/I-XTN3V7NY6KG7/suspend", + "href": "https://api.sandbox.paypal.com/v1/payments/billing-agreements/I-XTN3V7NY6KG7/suspend", "rel": "suspend", "method": "POST" }, { - "href": "https://api-s.sandbox.paypal.com/v1/payments/billing-agreements/I-XTN3V7NY6KG7/re-activate", + "href": "https://api.sandbox.paypal.com/v1/payments/billing-agreements/I-XTN3V7NY6KG7/re-activate", "rel": "re_activate", "method": "POST" }, { - "href": "https://api-s.sandbox.paypal.com/v1/payments/billing-agreements/I-XTN3V7NY6KG7/cancel", + "href": "https://api.sandbox.paypal.com/v1/payments/billing-agreements/I-XTN3V7NY6KG7/cancel", "rel": "cancel", "method": "POST" }, { - "href": "https://api-s.sandbox.paypal.com/v1/payments/billing-agreements/I-XTN3V7NY6KG7/bill-balance", + "href": "https://api.sandbox.paypal.com/v1/payments/billing-agreements/I-XTN3V7NY6KG7/bill-balance", "rel": "self", "method": "POST" }, { - "href": "https://api-s.sandbox.paypal.com/v1/payments/billing-agreements/I-XTN3V7NY6KG7/set-balance", + "href": "https://api.sandbox.paypal.com/v1/payments/billing-agreements/I-XTN3V7NY6KG7/set-balance", "rel": "self", "method": "POST" } diff --git a/tests/PayPal/Test/Functional/resources/BillingAgreementsFunctionalTest/testGetSuspended.json b/tests/PayPal/Test/Functional/resources/BillingAgreementsFunctionalTest/testGetSuspended.json index 7365aa2..5da4558 100755 --- a/tests/PayPal/Test/Functional/resources/BillingAgreementsFunctionalTest/testGetSuspended.json +++ b/tests/PayPal/Test/Functional/resources/BillingAgreementsFunctionalTest/testGetSuspended.json @@ -92,27 +92,27 @@ }, "links": [ { - "href": "https://api-s.sandbox.paypal.com/v1/payments/billing-agreements/I-XTN3V7NY6KG7/suspend", + "href": "https://api.sandbox.paypal.com/v1/payments/billing-agreements/I-XTN3V7NY6KG7/suspend", "rel": "suspend", "method": "POST" }, { - "href": "https://api-s.sandbox.paypal.com/v1/payments/billing-agreements/I-XTN3V7NY6KG7/re-activate", + "href": "https://api.sandbox.paypal.com/v1/payments/billing-agreements/I-XTN3V7NY6KG7/re-activate", "rel": "re_activate", "method": "POST" }, { - "href": "https://api-s.sandbox.paypal.com/v1/payments/billing-agreements/I-XTN3V7NY6KG7/cancel", + "href": "https://api.sandbox.paypal.com/v1/payments/billing-agreements/I-XTN3V7NY6KG7/cancel", "rel": "cancel", "method": "POST" }, { - "href": "https://api-s.sandbox.paypal.com/v1/payments/billing-agreements/I-XTN3V7NY6KG7/bill-balance", + "href": "https://api.sandbox.paypal.com/v1/payments/billing-agreements/I-XTN3V7NY6KG7/bill-balance", "rel": "self", "method": "POST" }, { - "href": "https://api-s.sandbox.paypal.com/v1/payments/billing-agreements/I-XTN3V7NY6KG7/set-balance", + "href": "https://api.sandbox.paypal.com/v1/payments/billing-agreements/I-XTN3V7NY6KG7/set-balance", "rel": "self", "method": "POST" } diff --git a/tests/PayPal/Test/Functional/resources/InvoiceFunctionalTest/testCancel.json b/tests/PayPal/Test/Functional/resources/InvoiceFunctionalTest/testCancel.json index 5a874a7..cc89dbb 100644 --- a/tests/PayPal/Test/Functional/resources/InvoiceFunctionalTest/testCancel.json +++ b/tests/PayPal/Test/Functional/resources/InvoiceFunctionalTest/testCancel.json @@ -19,7 +19,7 @@ "path": "v1/invoicing/invoices/INV2-WW57-VFCD-X5H4-XTUP/cancel", "method": "POST", "headers": { - "X-PAYPAL-SECURITY-CONTEXT": "{\"actor\":{\"auth_claims\":[\"CLIENT_ID_SECRET\"],\"auth_state\":\"LOGGEDIN\",\"account_number\":\"1942617323817135416\",\"encrypted_account_number\":\"6QNCBKP95EWWN\",\"party_id\":\"1942617323817135416\"},\"auth_token\":\"A015vRRfXmgj2UscSiBbwz1Elw8RW.ypMlPJsMH77snr6fc\",\"auth_token_type\":\"ACCESS_TOKEN\",\"last_validated\":1405632568,\"scopes\":[\"openid\",\"https://uri.paypal.com/services/invoicing\",\"https://uri.paypal.com/services/subscriptions\",\"https://api-s.paypal.com/v1/payments/.*\",\"https://api-s.paypal.com/v1/vault/credit-card/.*\",\"https://api-s.paypal.com/v1/vault/credit-card\"],\"client_id\":\"AewC1RCK3i4Z7WTbE0cz5buvd_NW17sYbYI4kc29c5qGxeh-0P7sMuXh2chc\",\"claims\":{\"actor_payer_id\":\"6QNCBKP95EWWN\"},\"subjects\":[]}" + "X-PAYPAL-SECURITY-CONTEXT": "{\"actor\":{\"auth_claims\":[\"CLIENT_ID_SECRET\"],\"auth_state\":\"LOGGEDIN\",\"account_number\":\"1942617323817135416\",\"encrypted_account_number\":\"6QNCBKP95EWWN\",\"party_id\":\"1942617323817135416\"},\"auth_token\":\"A015vRRfXmgj2UscSiBbwz1Elw8RW.ypMlPJsMH77snr6fc\",\"auth_token_type\":\"ACCESS_TOKEN\",\"last_validated\":1405632568,\"scopes\":[\"openid\",\"https://uri.paypal.com/services/invoicing\",\"https://uri.paypal.com/services/subscriptions\",\"https://api.paypal.com/v1/payments/.*\",\"https://api.paypal.com/v1/vault/credit-card/.*\",\"https://api.paypal.com/v1/vault/credit-card\"],\"client_id\":\"AewC1RCK3i4Z7WTbE0cz5buvd_NW17sYbYI4kc29c5qGxeh-0P7sMuXh2chc\",\"claims\":{\"actor_payer_id\":\"6QNCBKP95EWWN\"},\"subjects\":[]}" }, "body": { "subject": "Past due", diff --git a/tests/PayPal/Test/Functional/resources/InvoiceFunctionalTest/testCreate.json b/tests/PayPal/Test/Functional/resources/InvoiceFunctionalTest/testCreate.json index 3685d6f..4d19ff6 100644 --- a/tests/PayPal/Test/Functional/resources/InvoiceFunctionalTest/testCreate.json +++ b/tests/PayPal/Test/Functional/resources/InvoiceFunctionalTest/testCreate.json @@ -21,7 +21,7 @@ "path": "v1/invoicing/invoices/", "method": "POST", "headers": { - "X-PAYPAL-SECURITY-CONTEXT": "{\"actor\":{\"auth_claims\":[\"CLIENT_ID_SECRET\"],\"auth_state\":\"LOGGEDIN\",\"account_number\":\"1942617323817135416\",\"encrypted_account_number\":\"6QNCBKP95EWWN\",\"party_id\":\"1942617323817135416\"},\"auth_token\":\"A015vRRfXmgj2UscSiBbwz1Elw8RW.ypMlPJsMH77snr6fc\",\"auth_token_type\":\"ACCESS_TOKEN\",\"last_validated\":1405632568,\"scopes\":[\"openid\",\"https://uri.paypal.com/services/invoicing\",\"https://uri.paypal.com/services/subscriptions\",\"https://api-s.paypal.com/v1/payments/.*\",\"https://api-s.paypal.com/v1/vault/credit-card/.*\",\"https://api-s.paypal.com/v1/vault/credit-card\"],\"client_id\":\"AewC1RCK3i4Z7WTbE0cz5buvd_NW17sYbYI4kc29c5qGxeh-0P7sMuXh2chc\",\"claims\":{\"actor_payer_id\":\"6QNCBKP95EWWN\"},\"subjects\":[]}" + "X-PAYPAL-SECURITY-CONTEXT": "{\"actor\":{\"auth_claims\":[\"CLIENT_ID_SECRET\"],\"auth_state\":\"LOGGEDIN\",\"account_number\":\"1942617323817135416\",\"encrypted_account_number\":\"6QNCBKP95EWWN\",\"party_id\":\"1942617323817135416\"},\"auth_token\":\"A015vRRfXmgj2UscSiBbwz1Elw8RW.ypMlPJsMH77snr6fc\",\"auth_token_type\":\"ACCESS_TOKEN\",\"last_validated\":1405632568,\"scopes\":[\"openid\",\"https://uri.paypal.com/services/invoicing\",\"https://uri.paypal.com/services/subscriptions\",\"https://api.paypal.com/v1/payments/.*\",\"https://api.paypal.com/v1/vault/credit-card/.*\",\"https://api.paypal.com/v1/vault/credit-card\"],\"client_id\":\"AewC1RCK3i4Z7WTbE0cz5buvd_NW17sYbYI4kc29c5qGxeh-0P7sMuXh2chc\",\"claims\":{\"actor_payer_id\":\"6QNCBKP95EWWN\"},\"subjects\":[]}" }, "body": {"merchant_info": { "email": "jaypatel512-facilitator@hotmail.com", diff --git a/tests/PayPal/Test/Functional/resources/InvoiceFunctionalTest/testDelete.json b/tests/PayPal/Test/Functional/resources/InvoiceFunctionalTest/testDelete.json index c8e3800..4155e0b 100644 --- a/tests/PayPal/Test/Functional/resources/InvoiceFunctionalTest/testDelete.json +++ b/tests/PayPal/Test/Functional/resources/InvoiceFunctionalTest/testDelete.json @@ -19,7 +19,7 @@ "path": "v1/invoicing/invoices/INV2-92MG-CNXV-ND7G-P3D2", "method": "DELETE", "headers": { - "X-PAYPAL-SECURITY-CONTEXT": "{\"actor\":{\"auth_claims\":[\"CLIENT_ID_SECRET\"],\"auth_state\":\"LOGGEDIN\",\"account_number\":\"1942617323817135416\",\"encrypted_account_number\":\"6QNCBKP95EWWN\",\"party_id\":\"1942617323817135416\"},\"auth_token\":\"A015vRRfXmgj2UscSiBbwz1Elw8RW.ypMlPJsMH77snr6fc\",\"auth_token_type\":\"ACCESS_TOKEN\",\"last_validated\":1405632568,\"scopes\":[\"openid\",\"https://uri.paypal.com/services/invoicing\",\"https://uri.paypal.com/services/subscriptions\",\"https://api-s.paypal.com/v1/payments/.*\",\"https://api-s.paypal.com/v1/vault/credit-card/.*\",\"https://api-s.paypal.com/v1/vault/credit-card\"],\"client_id\":\"AewC1RCK3i4Z7WTbE0cz5buvd_NW17sYbYI4kc29c5qGxeh-0P7sMuXh2chc\",\"claims\":{\"actor_payer_id\":\"6QNCBKP95EWWN\"},\"subjects\":[]}" + "X-PAYPAL-SECURITY-CONTEXT": "{\"actor\":{\"auth_claims\":[\"CLIENT_ID_SECRET\"],\"auth_state\":\"LOGGEDIN\",\"account_number\":\"1942617323817135416\",\"encrypted_account_number\":\"6QNCBKP95EWWN\",\"party_id\":\"1942617323817135416\"},\"auth_token\":\"A015vRRfXmgj2UscSiBbwz1Elw8RW.ypMlPJsMH77snr6fc\",\"auth_token_type\":\"ACCESS_TOKEN\",\"last_validated\":1405632568,\"scopes\":[\"openid\",\"https://uri.paypal.com/services/invoicing\",\"https://uri.paypal.com/services/subscriptions\",\"https://api.paypal.com/v1/payments/.*\",\"https://api.paypal.com/v1/vault/credit-card/.*\",\"https://api.paypal.com/v1/vault/credit-card\"],\"client_id\":\"AewC1RCK3i4Z7WTbE0cz5buvd_NW17sYbYI4kc29c5qGxeh-0P7sMuXh2chc\",\"claims\":{\"actor_payer_id\":\"6QNCBKP95EWWN\"},\"subjects\":[]}" }, "body": {} }, diff --git a/tests/PayPal/Test/Functional/resources/InvoiceFunctionalTest/testGet.json b/tests/PayPal/Test/Functional/resources/InvoiceFunctionalTest/testGet.json index bb8929e..65d607d 100644 --- a/tests/PayPal/Test/Functional/resources/InvoiceFunctionalTest/testGet.json +++ b/tests/PayPal/Test/Functional/resources/InvoiceFunctionalTest/testGet.json @@ -19,7 +19,7 @@ "path": "v1/invoicing/invoices/INV2-RF6D-L66T-D7H2-CRU7", "method": "GET", "headers": { - "X-PAYPAL-SECURITY-CONTEXT": "{\"actor\":{\"auth_claims\":[\"CLIENT_ID_SECRET\"],\"auth_state\":\"LOGGEDIN\",\"account_number\":\"1942617323817135416\",\"encrypted_account_number\":\"6QNCBKP95EWWN\",\"party_id\":\"1942617323817135416\"},\"auth_token\":\"A015vRRfXmgj2UscSiBbwz1Elw8RW.ypMlPJsMH77snr6fc\",\"auth_token_type\":\"ACCESS_TOKEN\",\"last_validated\":1405632568,\"scopes\":[\"openid\",\"https://uri.paypal.com/services/invoicing\",\"https://uri.paypal.com/services/subscriptions\",\"https://api-s.paypal.com/v1/payments/.*\",\"https://api-s.paypal.com/v1/vault/credit-card/.*\",\"https://api-s.paypal.com/v1/vault/credit-card\"],\"client_id\":\"AewC1RCK3i4Z7WTbE0cz5buvd_NW17sYbYI4kc29c5qGxeh-0P7sMuXh2chc\",\"claims\":{\"actor_payer_id\":\"6QNCBKP95EWWN\"},\"subjects\":[]}" + "X-PAYPAL-SECURITY-CONTEXT": "{\"actor\":{\"auth_claims\":[\"CLIENT_ID_SECRET\"],\"auth_state\":\"LOGGEDIN\",\"account_number\":\"1942617323817135416\",\"encrypted_account_number\":\"6QNCBKP95EWWN\",\"party_id\":\"1942617323817135416\"},\"auth_token\":\"A015vRRfXmgj2UscSiBbwz1Elw8RW.ypMlPJsMH77snr6fc\",\"auth_token_type\":\"ACCESS_TOKEN\",\"last_validated\":1405632568,\"scopes\":[\"openid\",\"https://uri.paypal.com/services/invoicing\",\"https://uri.paypal.com/services/subscriptions\",\"https://api.paypal.com/v1/payments/.*\",\"https://api.paypal.com/v1/vault/credit-card/.*\",\"https://api.paypal.com/v1/vault/credit-card\"],\"client_id\":\"AewC1RCK3i4Z7WTbE0cz5buvd_NW17sYbYI4kc29c5qGxeh-0P7sMuXh2chc\",\"claims\":{\"actor_payer_id\":\"6QNCBKP95EWWN\"},\"subjects\":[]}" }, "body": {} }, diff --git a/tests/PayPal/Test/Functional/resources/InvoiceFunctionalTest/testGetAll.json b/tests/PayPal/Test/Functional/resources/InvoiceFunctionalTest/testGetAll.json index eec826a..a5f3c4d 100644 --- a/tests/PayPal/Test/Functional/resources/InvoiceFunctionalTest/testGetAll.json +++ b/tests/PayPal/Test/Functional/resources/InvoiceFunctionalTest/testGetAll.json @@ -19,7 +19,7 @@ "path": "v1/invoicing/invoices?page=0&page_size=10&total_count_required=true", "method": "GET", "headers": { - "X-PAYPAL-SECURITY-CONTEXT": "{\"actor\":{\"auth_claims\":[\"CLIENT_ID_SECRET\"],\"auth_state\":\"LOGGEDIN\",\"account_number\":\"1942617323817135416\",\"encrypted_account_number\":\"6QNCBKP95EWWN\",\"party_id\":\"1942617323817135416\"},\"auth_token\":\"A015vRRfXmgj2UscSiBbwz1Elw8RW.ypMlPJsMH77snr6fc\",\"auth_token_type\":\"ACCESS_TOKEN\",\"last_validated\":1405632568,\"scopes\":[\"openid\",\"https://uri.paypal.com/services/invoicing\",\"https://uri.paypal.com/services/subscriptions\",\"https://api-s.paypal.com/v1/payments/.*\",\"https://api-s.paypal.com/v1/vault/credit-card/.*\",\"https://api-s.paypal.com/v1/vault/credit-card\"],\"client_id\":\"AewC1RCK3i4Z7WTbE0cz5buvd_NW17sYbYI4kc29c5qGxeh-0P7sMuXh2chc\",\"claims\":{\"actor_payer_id\":\"6QNCBKP95EWWN\"},\"subjects\":[]}" + "X-PAYPAL-SECURITY-CONTEXT": "{\"actor\":{\"auth_claims\":[\"CLIENT_ID_SECRET\"],\"auth_state\":\"LOGGEDIN\",\"account_number\":\"1942617323817135416\",\"encrypted_account_number\":\"6QNCBKP95EWWN\",\"party_id\":\"1942617323817135416\"},\"auth_token\":\"A015vRRfXmgj2UscSiBbwz1Elw8RW.ypMlPJsMH77snr6fc\",\"auth_token_type\":\"ACCESS_TOKEN\",\"last_validated\":1405632568,\"scopes\":[\"openid\",\"https://uri.paypal.com/services/invoicing\",\"https://uri.paypal.com/services/subscriptions\",\"https://api.paypal.com/v1/payments/.*\",\"https://api.paypal.com/v1/vault/credit-card/.*\",\"https://api.paypal.com/v1/vault/credit-card\"],\"client_id\":\"AewC1RCK3i4Z7WTbE0cz5buvd_NW17sYbYI4kc29c5qGxeh-0P7sMuXh2chc\",\"claims\":{\"actor_payer_id\":\"6QNCBKP95EWWN\"},\"subjects\":[]}" }, "body": {} }, diff --git a/tests/PayPal/Test/Functional/resources/InvoiceFunctionalTest/testQRCode.json b/tests/PayPal/Test/Functional/resources/InvoiceFunctionalTest/testQRCode.json index b675f82..f1a133d 100644 --- a/tests/PayPal/Test/Functional/resources/InvoiceFunctionalTest/testQRCode.json +++ b/tests/PayPal/Test/Functional/resources/InvoiceFunctionalTest/testQRCode.json @@ -19,7 +19,7 @@ "path": "v1/invoicing/invoices/INV2-S6FG-ZZCK-VXMM-8KKP/qr-code", "method": "GET", "headers": { - "X-PAYPAL-SECURITY-CONTEXT": "{\"actor\":{\"auth_claims\":[\"CLIENT_ID_SECRET\"],\"auth_state\":\"LOGGEDIN\",\"account_number\":\"1942617323817135416\",\"encrypted_account_number\":\"6QNCBKP95EWWN\",\"party_id\":\"1942617323817135416\"},\"auth_token\":\"A015vRRfXmgj2UscSiBbwz1Elw8RW.ypMlPJsMH77snr6fc\",\"auth_token_type\":\"ACCESS_TOKEN\",\"last_validated\":1405632568,\"scopes\":[\"openid\",\"https://uri.paypal.com/services/invoicing\",\"https://uri.paypal.com/services/subscriptions\",\"https://api-s.paypal.com/v1/payments/.*\",\"https://api-s.paypal.com/v1/vault/credit-card/.*\",\"https://api-s.paypal.com/v1/vault/credit-card\"],\"client_id\":\"AewC1RCK3i4Z7WTbE0cz5buvd_NW17sYbYI4kc29c5qGxeh-0P7sMuXh2chc\",\"claims\":{\"actor_payer_id\":\"6QNCBKP95EWWN\"},\"subjects\":[]}" + "X-PAYPAL-SECURITY-CONTEXT": "{\"actor\":{\"auth_claims\":[\"CLIENT_ID_SECRET\"],\"auth_state\":\"LOGGEDIN\",\"account_number\":\"1942617323817135416\",\"encrypted_account_number\":\"6QNCBKP95EWWN\",\"party_id\":\"1942617323817135416\"},\"auth_token\":\"A015vRRfXmgj2UscSiBbwz1Elw8RW.ypMlPJsMH77snr6fc\",\"auth_token_type\":\"ACCESS_TOKEN\",\"last_validated\":1405632568,\"scopes\":[\"openid\",\"https://uri.paypal.com/services/invoicing\",\"https://uri.paypal.com/services/subscriptions\",\"https://api.paypal.com/v1/payments/.*\",\"https://api.paypal.com/v1/vault/credit-card/.*\",\"https://api.paypal.com/v1/vault/credit-card\"],\"client_id\":\"AewC1RCK3i4Z7WTbE0cz5buvd_NW17sYbYI4kc29c5qGxeh-0P7sMuXh2chc\",\"claims\":{\"actor_payer_id\":\"6QNCBKP95EWWN\"},\"subjects\":[]}" }, "body": {} }, diff --git a/tests/PayPal/Test/Functional/resources/InvoiceFunctionalTest/testRemind.json b/tests/PayPal/Test/Functional/resources/InvoiceFunctionalTest/testRemind.json index 5f44b10..62cb4c3 100644 --- a/tests/PayPal/Test/Functional/resources/InvoiceFunctionalTest/testRemind.json +++ b/tests/PayPal/Test/Functional/resources/InvoiceFunctionalTest/testRemind.json @@ -19,7 +19,7 @@ "path": "v1/invoicing/invoices/INV2-T4UQ-VW4W-K7N7-XM2R/remind", "method": "POST", "headers": { - "X-PAYPAL-SECURITY-CONTEXT": "{\"actor\":{\"auth_claims\":[\"CLIENT_ID_SECRET\"],\"auth_state\":\"LOGGEDIN\",\"account_number\":\"1942617323817135416\",\"encrypted_account_number\":\"6QNCBKP95EWWN\",\"party_id\":\"1942617323817135416\"},\"auth_token\":\"A015vRRfXmgj2UscSiBbwz1Elw8RW.ypMlPJsMH77snr6fc\",\"auth_token_type\":\"ACCESS_TOKEN\",\"last_validated\":1405632568,\"scopes\":[\"openid\",\"https://uri.paypal.com/services/invoicing\",\"https://uri.paypal.com/services/subscriptions\",\"https://api-s.paypal.com/v1/payments/.*\",\"https://api-s.paypal.com/v1/vault/credit-card/.*\",\"https://api-s.paypal.com/v1/vault/credit-card\"],\"client_id\":\"AewC1RCK3i4Z7WTbE0cz5buvd_NW17sYbYI4kc29c5qGxeh-0P7sMuXh2chc\",\"claims\":{\"actor_payer_id\":\"6QNCBKP95EWWN\"},\"subjects\":[]}" + "X-PAYPAL-SECURITY-CONTEXT": "{\"actor\":{\"auth_claims\":[\"CLIENT_ID_SECRET\"],\"auth_state\":\"LOGGEDIN\",\"account_number\":\"1942617323817135416\",\"encrypted_account_number\":\"6QNCBKP95EWWN\",\"party_id\":\"1942617323817135416\"},\"auth_token\":\"A015vRRfXmgj2UscSiBbwz1Elw8RW.ypMlPJsMH77snr6fc\",\"auth_token_type\":\"ACCESS_TOKEN\",\"last_validated\":1405632568,\"scopes\":[\"openid\",\"https://uri.paypal.com/services/invoicing\",\"https://uri.paypal.com/services/subscriptions\",\"https://api.paypal.com/v1/payments/.*\",\"https://api.paypal.com/v1/vault/credit-card/.*\",\"https://api.paypal.com/v1/vault/credit-card\"],\"client_id\":\"AewC1RCK3i4Z7WTbE0cz5buvd_NW17sYbYI4kc29c5qGxeh-0P7sMuXh2chc\",\"claims\":{\"actor_payer_id\":\"6QNCBKP95EWWN\"},\"subjects\":[]}" }, "body": { "subject": "Past due", diff --git a/tests/PayPal/Test/Functional/resources/InvoiceFunctionalTest/testSearch.json b/tests/PayPal/Test/Functional/resources/InvoiceFunctionalTest/testSearch.json index d8fca73..a136578 100644 --- a/tests/PayPal/Test/Functional/resources/InvoiceFunctionalTest/testSearch.json +++ b/tests/PayPal/Test/Functional/resources/InvoiceFunctionalTest/testSearch.json @@ -19,7 +19,7 @@ "path": "v1/invoicing/search/", "method": "POST", "headers": { - "X-PAYPAL-SECURITY-CONTEXT": "{\"actor\":{\"auth_claims\":[\"CLIENT_ID_SECRET\"],\"auth_state\":\"LOGGEDIN\",\"account_number\":\"1942617323817135416\",\"encrypted_account_number\":\"6QNCBKP95EWWN\",\"party_id\":\"1942617323817135416\"},\"auth_token\":\"A015vRRfXmgj2UscSiBbwz1Elw8RW.ypMlPJsMH77snr6fc\",\"auth_token_type\":\"ACCESS_TOKEN\",\"last_validated\":1405632568,\"scopes\":[\"openid\",\"https://uri.paypal.com/services/invoicing\",\"https://uri.paypal.com/services/subscriptions\",\"https://api-s.paypal.com/v1/payments/.*\",\"https://api-s.paypal.com/v1/vault/credit-card/.*\",\"https://api-s.paypal.com/v1/vault/credit-card\"],\"client_id\":\"AewC1RCK3i4Z7WTbE0cz5buvd_NW17sYbYI4kc29c5qGxeh-0P7sMuXh2chc\",\"claims\":{\"actor_payer_id\":\"6QNCBKP95EWWN\"},\"subjects\":[]}" + "X-PAYPAL-SECURITY-CONTEXT": "{\"actor\":{\"auth_claims\":[\"CLIENT_ID_SECRET\"],\"auth_state\":\"LOGGEDIN\",\"account_number\":\"1942617323817135416\",\"encrypted_account_number\":\"6QNCBKP95EWWN\",\"party_id\":\"1942617323817135416\"},\"auth_token\":\"A015vRRfXmgj2UscSiBbwz1Elw8RW.ypMlPJsMH77snr6fc\",\"auth_token_type\":\"ACCESS_TOKEN\",\"last_validated\":1405632568,\"scopes\":[\"openid\",\"https://uri.paypal.com/services/invoicing\",\"https://uri.paypal.com/services/subscriptions\",\"https://api.paypal.com/v1/payments/.*\",\"https://api.paypal.com/v1/vault/credit-card/.*\",\"https://api.paypal.com/v1/vault/credit-card\"],\"client_id\":\"AewC1RCK3i4Z7WTbE0cz5buvd_NW17sYbYI4kc29c5qGxeh-0P7sMuXh2chc\",\"claims\":{\"actor_payer_id\":\"6QNCBKP95EWWN\"},\"subjects\":[]}" }, "body": { "page": 0, diff --git a/tests/PayPal/Test/Functional/resources/InvoiceFunctionalTest/testSend.json b/tests/PayPal/Test/Functional/resources/InvoiceFunctionalTest/testSend.json index c49d589..c321517 100644 --- a/tests/PayPal/Test/Functional/resources/InvoiceFunctionalTest/testSend.json +++ b/tests/PayPal/Test/Functional/resources/InvoiceFunctionalTest/testSend.json @@ -19,7 +19,7 @@ "path": "v1/invoicing/invoices/INV2-EHNV-LJ5S-A7DZ-V6NJ/send", "method": "POST", "headers": { - "X-PAYPAL-SECURITY-CONTEXT": "{\"actor\":{\"auth_claims\":[\"CLIENT_ID_SECRET\"],\"auth_state\":\"LOGGEDIN\",\"account_number\":\"1942617323817135416\",\"encrypted_account_number\":\"6QNCBKP95EWWN\",\"party_id\":\"1942617323817135416\"},\"auth_token\":\"A015vRRfXmgj2UscSiBbwz1Elw8RW.ypMlPJsMH77snr6fc\",\"auth_token_type\":\"ACCESS_TOKEN\",\"last_validated\":1405632568,\"scopes\":[\"openid\",\"https://uri.paypal.com/services/invoicing\",\"https://uri.paypal.com/services/subscriptions\",\"https://api-s.paypal.com/v1/payments/.*\",\"https://api-s.paypal.com/v1/vault/credit-card/.*\",\"https://api-s.paypal.com/v1/vault/credit-card\"],\"client_id\":\"AewC1RCK3i4Z7WTbE0cz5buvd_NW17sYbYI4kc29c5qGxeh-0P7sMuXh2chc\",\"claims\":{\"actor_payer_id\":\"6QNCBKP95EWWN\"},\"subjects\":[]}" + "X-PAYPAL-SECURITY-CONTEXT": "{\"actor\":{\"auth_claims\":[\"CLIENT_ID_SECRET\"],\"auth_state\":\"LOGGEDIN\",\"account_number\":\"1942617323817135416\",\"encrypted_account_number\":\"6QNCBKP95EWWN\",\"party_id\":\"1942617323817135416\"},\"auth_token\":\"A015vRRfXmgj2UscSiBbwz1Elw8RW.ypMlPJsMH77snr6fc\",\"auth_token_type\":\"ACCESS_TOKEN\",\"last_validated\":1405632568,\"scopes\":[\"openid\",\"https://uri.paypal.com/services/invoicing\",\"https://uri.paypal.com/services/subscriptions\",\"https://api.paypal.com/v1/payments/.*\",\"https://api.paypal.com/v1/vault/credit-card/.*\",\"https://api.paypal.com/v1/vault/credit-card\"],\"client_id\":\"AewC1RCK3i4Z7WTbE0cz5buvd_NW17sYbYI4kc29c5qGxeh-0P7sMuXh2chc\",\"claims\":{\"actor_payer_id\":\"6QNCBKP95EWWN\"},\"subjects\":[]}" }, "body": {} }, diff --git a/tests/PayPal/Test/Functional/resources/InvoiceFunctionalTest/testUpdate.json b/tests/PayPal/Test/Functional/resources/InvoiceFunctionalTest/testUpdate.json index eda7805..1c45eb4 100644 --- a/tests/PayPal/Test/Functional/resources/InvoiceFunctionalTest/testUpdate.json +++ b/tests/PayPal/Test/Functional/resources/InvoiceFunctionalTest/testUpdate.json @@ -19,7 +19,7 @@ "path": "v1/invoicing/invoices/INV2-8UZ6-Q3DK-VZXV-SXQB", "method": "PUT", "headers": { - "X-PAYPAL-SECURITY-CONTEXT": "{\"actor\":{\"auth_claims\":[\"CLIENT_ID_SECRET\"],\"auth_state\":\"LOGGEDIN\",\"account_number\":\"1942617323817135416\",\"encrypted_account_number\":\"6QNCBKP95EWWN\",\"party_id\":\"1942617323817135416\"},\"auth_token\":\"A015vRRfXmgj2UscSiBbwz1Elw8RW.ypMlPJsMH77snr6fc\",\"auth_token_type\":\"ACCESS_TOKEN\",\"last_validated\":1405632568,\"scopes\":[\"openid\",\"https://uri.paypal.com/services/invoicing\",\"https://uri.paypal.com/services/subscriptions\",\"https://api-s.paypal.com/v1/payments/.*\",\"https://api-s.paypal.com/v1/vault/credit-card/.*\",\"https://api-s.paypal.com/v1/vault/credit-card\"],\"client_id\":\"AewC1RCK3i4Z7WTbE0cz5buvd_NW17sYbYI4kc29c5qGxeh-0P7sMuXh2chc\",\"claims\":{\"actor_payer_id\":\"6QNCBKP95EWWN\"},\"subjects\":[]}" + "X-PAYPAL-SECURITY-CONTEXT": "{\"actor\":{\"auth_claims\":[\"CLIENT_ID_SECRET\"],\"auth_state\":\"LOGGEDIN\",\"account_number\":\"1942617323817135416\",\"encrypted_account_number\":\"6QNCBKP95EWWN\",\"party_id\":\"1942617323817135416\"},\"auth_token\":\"A015vRRfXmgj2UscSiBbwz1Elw8RW.ypMlPJsMH77snr6fc\",\"auth_token_type\":\"ACCESS_TOKEN\",\"last_validated\":1405632568,\"scopes\":[\"openid\",\"https://uri.paypal.com/services/invoicing\",\"https://uri.paypal.com/services/subscriptions\",\"https://api.paypal.com/v1/payments/.*\",\"https://api.paypal.com/v1/vault/credit-card/.*\",\"https://api.paypal.com/v1/vault/credit-card\"],\"client_id\":\"AewC1RCK3i4Z7WTbE0cz5buvd_NW17sYbYI4kc29c5qGxeh-0P7sMuXh2chc\",\"claims\":{\"actor_payer_id\":\"6QNCBKP95EWWN\"},\"subjects\":[]}" }, "body": { "merchant_info": { diff --git a/tests/PayPal/Test/Functional/resources/PaymentsFunctionalTest/testCreate.json b/tests/PayPal/Test/Functional/resources/PaymentsFunctionalTest/testCreate.json index 2d87df5..313037b 100644 --- a/tests/PayPal/Test/Functional/resources/PaymentsFunctionalTest/testCreate.json +++ b/tests/PayPal/Test/Functional/resources/PaymentsFunctionalTest/testCreate.json @@ -115,17 +115,17 @@ "parent_payment": "PAY-17S8410768582940NKEE66EQ", "links": [ { - "href": "https://api-s.paypal.com/v1/payments/sale/4RR959492F879224U", + "href": "https://api.paypal.com/v1/payments/sale/4RR959492F879224U", "rel": "self", "method": "GET" }, { - "href": "https://api-s.paypal.com/v1/payments/sale/4RR959492F879224U/refund", + "href": "https://api.paypal.com/v1/payments/sale/4RR959492F879224U/refund", "rel": "refund", "method": "POST" }, { - "href": "https://api-s.paypal.com/v1/payments/payment/PAY-17S8410768582940NKEE66EQ", + "href": "https://api.paypal.com/v1/payments/payment/PAY-17S8410768582940NKEE66EQ", "rel": "parent_payment", "method": "GET" } @@ -137,7 +137,7 @@ ], "links": [ { - "href": "https://api-s.paypal.com/v1/payments/payment/PAY-17S8410768582940NKEE66EQ", + "href": "https://api.paypal.com/v1/payments/payment/PAY-17S8410768582940NKEE66EQ", "rel": "self", "method": "GET" } diff --git a/tests/PayPal/Test/Functional/resources/PaymentsFunctionalTest/testCreateWallet.json b/tests/PayPal/Test/Functional/resources/PaymentsFunctionalTest/testCreateWallet.json index 5513012..06bb793 100644 --- a/tests/PayPal/Test/Functional/resources/PaymentsFunctionalTest/testCreateWallet.json +++ b/tests/PayPal/Test/Functional/resources/PaymentsFunctionalTest/testCreateWallet.json @@ -144,17 +144,17 @@ "parent_payment": "PAY-17S8410768582940NKEE66EQ", "links": [ { - "href": "https: //api-s.paypal.com/v1/payments/sale/4RR959492F879224U", + "href": "https: //api.paypal.com/v1/payments/sale/4RR959492F879224U", "rel": "self", "method": "GET" }, { - "href": "https: //api-s.paypal.com/v1/payments/sale/4RR959492F879224U/refund", + "href": "https: //api.paypal.com/v1/payments/sale/4RR959492F879224U/refund", "rel": "refund", "method": "POST" }, { - "href": "https: //api-s.paypal.com/v1/payments/payment/PAY-17S8410768582940NKEE66EQ", + "href": "https: //api.paypal.com/v1/payments/payment/PAY-17S8410768582940NKEE66EQ", "rel": "parent_payment", "method": "GET" } @@ -166,7 +166,7 @@ ], "links": [ { - "href": "https: //api-s.paypal.com/v1/payments/payment/PAY-17S8410768582940NKEE66EQ", + "href": "https: //api.paypal.com/v1/payments/payment/PAY-17S8410768582940NKEE66EQ", "rel": "self", "method": "GET" } diff --git a/tests/PayPal/Test/Functional/resources/PaymentsFunctionalTest/testExecute.json b/tests/PayPal/Test/Functional/resources/PaymentsFunctionalTest/testExecute.json index 4cd51eb..77d5a80 100644 --- a/tests/PayPal/Test/Functional/resources/PaymentsFunctionalTest/testExecute.json +++ b/tests/PayPal/Test/Functional/resources/PaymentsFunctionalTest/testExecute.json @@ -65,17 +65,17 @@ "parent_payment": "PAY-34629814WL663112AKEE3AWQ", "links": [ { - "href": "https://api-s.paypal.com/v1/payments/sale/1KE4800207592173L", + "href": "https://api.paypal.com/v1/payments/sale/1KE4800207592173L", "rel": "self", "method": "GET" }, { - "href": "https://api-s.paypal.com/v1/payments/sale/1KE4800207592173L/refund", + "href": "https://api.paypal.com/v1/payments/sale/1KE4800207592173L/refund", "rel": "refund", "method": "POST" }, { - "href": "https://api-s.paypal.com/v1/payments/payment/PAY-34629814WL663112AKEE3AWQ", + "href": "https://api.paypal.com/v1/payments/payment/PAY-34629814WL663112AKEE3AWQ", "rel": "parent_payment", "method": "GET" } @@ -87,7 +87,7 @@ ], "links": [ { - "href": "https://api-s.paypal.com/v1/payments/payment/PAY-34629814WL663112AKEE3AWQ", + "href": "https://api.paypal.com/v1/payments/payment/PAY-34629814WL663112AKEE3AWQ", "rel": "self", "method": "GET" } diff --git a/tests/PayPal/Test/Functional/resources/PaymentsFunctionalTest/testGet.json b/tests/PayPal/Test/Functional/resources/PaymentsFunctionalTest/testGet.json index 4e7ee41..a3dea4c 100644 --- a/tests/PayPal/Test/Functional/resources/PaymentsFunctionalTest/testGet.json +++ b/tests/PayPal/Test/Functional/resources/PaymentsFunctionalTest/testGet.json @@ -76,17 +76,17 @@ "parent_payment": "PAY-17S8410768582940NKEE66EQ", "links": [ { - "href": "https://api-s.paypal.com/v1/payments/sale/4RR959492F879224U", + "href": "https://api.paypal.com/v1/payments/sale/4RR959492F879224U", "rel": "self", "method": "GET" }, { - "href": "https://api-s.paypal.com/v1/payments/sale/4RR959492F879224U/refund", + "href": "https://api.paypal.com/v1/payments/sale/4RR959492F879224U/refund", "rel": "refund", "method": "POST" }, { - "href": "https://api-s.paypal.com/v1/payments/payment/PAY-17S8410768582940NKEE66EQ", + "href": "https://api.paypal.com/v1/payments/payment/PAY-17S8410768582940NKEE66EQ", "rel": "parent_payment", "method": "GET" } @@ -98,7 +98,7 @@ ], "links": [ { - "href": "https://api-s.paypal.com/v1/payments/payment/PAY-17S8410768582940NKEE66EQ", + "href": "https://api.paypal.com/v1/payments/payment/PAY-17S8410768582940NKEE66EQ", "rel": "self", "method": "GET" } diff --git a/tests/PayPal/Test/Functional/resources/PaymentsFunctionalTest/testGetPending.json b/tests/PayPal/Test/Functional/resources/PaymentsFunctionalTest/testGetPending.json index 5362af2..08d11c0 100644 --- a/tests/PayPal/Test/Functional/resources/PaymentsFunctionalTest/testGetPending.json +++ b/tests/PayPal/Test/Functional/resources/PaymentsFunctionalTest/testGetPending.json @@ -62,12 +62,12 @@ "parent_payment": "PAY-5YK922393D847794YKER7MUI", "links": [ { - "href": "https://api-s.paypal.com/v1/payments/sale/36C38912MN9658832", + "href": "https://api.paypal.com/v1/payments/sale/36C38912MN9658832", "rel": "self", "method": "GET" }, { - "href": "https://api-s.paypal.com/v1/payments/sale/36C38912MN9658832/refund", + "href": "https://api.paypal.com/v1/payments/sale/36C38912MN9658832/refund", "rel": "refund", "method": "POST" }, @@ -77,7 +77,7 @@ "method": "GET" }, { - "href": "https://api-s.paypal.com/v1/payments/payment/PAY-5YK922393D847794YKER7MUI", + "href": "https://api.paypal.com/v1/payments/payment/PAY-5YK922393D847794YKER7MUI", "rel": "parent_payment", "method": "GET" } @@ -89,7 +89,7 @@ ], "links": [ { - "href": "https://api-s.paypal.com/v1/payments/payment/PAY-5YK922393D847794YKER7MUI", + "href": "https://api.paypal.com/v1/payments/payment/PAY-5YK922393D847794YKER7MUI", "rel": "self", "method": "GET" } diff --git a/tests/PayPal/Test/Functional/resources/PaymentsFunctionalTest/testGetSale.json b/tests/PayPal/Test/Functional/resources/PaymentsFunctionalTest/testGetSale.json index 9f535c2..ac843fc 100644 --- a/tests/PayPal/Test/Functional/resources/PaymentsFunctionalTest/testGetSale.json +++ b/tests/PayPal/Test/Functional/resources/PaymentsFunctionalTest/testGetSale.json @@ -39,17 +39,17 @@ "parent_payment": "PAY-17S8410768582940NKEE66EQ", "links": [ { - "href": "https://api-s.sandbox.paypal.com/v1/payments/sale/5SA006225W236580K", + "href": "https://api.sandbox.paypal.com/v1/payments/sale/5SA006225W236580K", "rel": "self", "method": "GET" }, { - "href": "https://api-s.sandbox.paypal.com/v1/payments/sale/5SA006225W236580K/refund", + "href": "https://api.sandbox.paypal.com/v1/payments/sale/5SA006225W236580K/refund", "rel": "refund", "method": "POST" }, { - "href": "https://api-s.sandbox.paypal.com/v1/payments/payment/PAY-48W25034R6080713AKRH64KY", + "href": "https://api.sandbox.paypal.com/v1/payments/payment/PAY-48W25034R6080713AKRH64KY", "rel": "parent_payment", "method": "GET" } diff --git a/tests/PayPal/Test/Functional/resources/PaymentsFunctionalTest/testRefundSale.json b/tests/PayPal/Test/Functional/resources/PaymentsFunctionalTest/testRefundSale.json index 70de703..bc49b9f 100644 --- a/tests/PayPal/Test/Functional/resources/PaymentsFunctionalTest/testRefundSale.json +++ b/tests/PayPal/Test/Functional/resources/PaymentsFunctionalTest/testRefundSale.json @@ -41,17 +41,17 @@ "parent_payment": "PAY-17S8410768582940NKEE66EQ", "links": [ { - "href": "https://api-s.paypal.com/v1/payments/refund/4CF18861HF410323U", + "href": "https://api.paypal.com/v1/payments/refund/4CF18861HF410323U", "rel": "self", "method": "GET" }, { - "href": "https://api-s.paypal.com/v1/payments/payment/PAY-46E69296BH2194803KEE662Y", + "href": "https://api.paypal.com/v1/payments/payment/PAY-46E69296BH2194803KEE662Y", "rel": "parent_payment", "method": "GET" }, { - "href": "https://api-s.paypal.com/v1/payments/sale/2MU78835H4515710F", + "href": "https://api.paypal.com/v1/payments/sale/2MU78835H4515710F", "rel": "sale", "method": "GET" } diff --git a/tests/PayPal/Test/Functional/resources/PayoutsFunctionalTest/testCancel.json b/tests/PayPal/Test/Functional/resources/PayoutsFunctionalTest/testCancel.json index d77e904..a3850ae 100644 --- a/tests/PayPal/Test/Functional/resources/PayoutsFunctionalTest/testCancel.json +++ b/tests/PayPal/Test/Functional/resources/PayoutsFunctionalTest/testCancel.json @@ -62,12 +62,12 @@ "links":[ { "rel":"self", - "href":"https://api-s.sandbox.paypal.com/v1/payments/payouts-item/1421342", + "href":"https://api.sandbox.paypal.com/v1/payments/payouts-item/1421342", "method":"GET" }, { "rel":"batch", - "href":"https://api-s.sandbox.paypal.com/v1/payments/payouts/20140724", + "href":"https://api.sandbox.paypal.com/v1/payments/payouts/20140724", "method":"GET" } ] diff --git a/tests/PayPal/Test/Functional/resources/PayoutsFunctionalTest/testCreate.json b/tests/PayPal/Test/Functional/resources/PayoutsFunctionalTest/testCreate.json index 45a860c..c2c5307 100755 --- a/tests/PayPal/Test/Functional/resources/PayoutsFunctionalTest/testCreate.json +++ b/tests/PayPal/Test/Functional/resources/PayoutsFunctionalTest/testCreate.json @@ -87,7 +87,7 @@ "time_processed": "2014-46-14T06:46:23Z", "links": [ { - "href": "https://api-s.sandbox.paypal.com/v1/payments/payouts-item/VHBFGN95AWV82", + "href": "https://api.sandbox.paypal.com/v1/payments/payouts-item/VHBFGN95AWV82", "rel": "item", "method": "GET" } @@ -96,7 +96,7 @@ ], "links": [ { - "href": "https://api-s.sandbox.paypal.com/v1/payments/payouts/CDZEC5MJ8R5HY", + "href": "https://api.sandbox.paypal.com/v1/payments/payouts/CDZEC5MJ8R5HY", "rel": "self", "method": "GET" } diff --git a/tests/PayPal/Test/Functional/resources/PayoutsFunctionalTest/testGetItem.json b/tests/PayPal/Test/Functional/resources/PayoutsFunctionalTest/testGetItem.json index 87ef4d0..19adc71 100755 --- a/tests/PayPal/Test/Functional/resources/PayoutsFunctionalTest/testGetItem.json +++ b/tests/PayPal/Test/Functional/resources/PayoutsFunctionalTest/testGetItem.json @@ -50,12 +50,12 @@ }, "links": [ { - "href": "https://api-s.sandbox.paypal.com/v1/payments/payouts-item/HUUQ5YASYLQFN", + "href": "https://api.sandbox.paypal.com/v1/payments/payouts-item/HUUQ5YASYLQFN", "rel": "self", "method": "GET" }, { - "href": "https://api-s.sandbox.paypal.com/v1/payments/payouts/LNLSEVGU4P85S", + "href": "https://api.sandbox.paypal.com/v1/payments/payouts/LNLSEVGU4P85S", "rel": "batch", "method": "GET" } diff --git a/tests/PayPal/Test/Functional/resources/WebProfileFunctionalTest/testCreate.json b/tests/PayPal/Test/Functional/resources/WebProfileFunctionalTest/testCreate.json index a36373a..53c8798 100644 --- a/tests/PayPal/Test/Functional/resources/WebProfileFunctionalTest/testCreate.json +++ b/tests/PayPal/Test/Functional/resources/WebProfileFunctionalTest/testCreate.json @@ -5,7 +5,7 @@ "operationId": "web-profile.create", "user": { "scopes": [ - "https://api-s.paypal.com/v1/payments/.*" + "https://api.paypal.com/v1/payments/.*" ] }, "credentials": { diff --git a/tests/PayPal/Test/Functional/resources/WebProfileFunctionalTest/testDelete.json b/tests/PayPal/Test/Functional/resources/WebProfileFunctionalTest/testDelete.json index fd74b29..6f873e4 100644 --- a/tests/PayPal/Test/Functional/resources/WebProfileFunctionalTest/testDelete.json +++ b/tests/PayPal/Test/Functional/resources/WebProfileFunctionalTest/testDelete.json @@ -5,7 +5,7 @@ "operationId": "web-profile.delete", "user": { "scopes": [ - "https://api-s.paypal.com/v1/payments/.*" + "https://api.paypal.com/v1/payments/.*" ] }, "credentials": { diff --git a/tests/PayPal/Test/Functional/resources/WebProfileFunctionalTest/testGet.json b/tests/PayPal/Test/Functional/resources/WebProfileFunctionalTest/testGet.json index 4d645c1..d3bc266 100644 --- a/tests/PayPal/Test/Functional/resources/WebProfileFunctionalTest/testGet.json +++ b/tests/PayPal/Test/Functional/resources/WebProfileFunctionalTest/testGet.json @@ -5,7 +5,7 @@ "operationId": "web-profile.get", "user": { "scopes": [ - "https://api-s.paypal.com/v1/payments/.*" + "https://api.paypal.com/v1/payments/.*" ] }, "credentials": { diff --git a/tests/PayPal/Test/Functional/resources/WebProfileFunctionalTest/testGetList.json b/tests/PayPal/Test/Functional/resources/WebProfileFunctionalTest/testGetList.json index d5617c0..14174c0 100644 --- a/tests/PayPal/Test/Functional/resources/WebProfileFunctionalTest/testGetList.json +++ b/tests/PayPal/Test/Functional/resources/WebProfileFunctionalTest/testGetList.json @@ -5,7 +5,7 @@ "operationId": "web-profile.get-list", "user": { "scopes": [ - "https://api-s.paypal.com/v1/payments/.*" + "https://api.paypal.com/v1/payments/.*" ] }, "credentials": { diff --git a/tests/PayPal/Test/Functional/resources/WebProfileFunctionalTest/testPartialUpdate.json b/tests/PayPal/Test/Functional/resources/WebProfileFunctionalTest/testPartialUpdate.json index dee5630..5850c5e 100644 --- a/tests/PayPal/Test/Functional/resources/WebProfileFunctionalTest/testPartialUpdate.json +++ b/tests/PayPal/Test/Functional/resources/WebProfileFunctionalTest/testPartialUpdate.json @@ -5,7 +5,7 @@ "operationId": "web-profile.partial-update", "user": { "scopes": [ - "https://api-s.paypal.com/v1/payments/.*" + "https://api.paypal.com/v1/payments/.*" ] }, "credentials": { diff --git a/tests/PayPal/Test/Functional/resources/WebProfileFunctionalTest/testUpdate.json b/tests/PayPal/Test/Functional/resources/WebProfileFunctionalTest/testUpdate.json index 8076b25..022742d 100644 --- a/tests/PayPal/Test/Functional/resources/WebProfileFunctionalTest/testUpdate.json +++ b/tests/PayPal/Test/Functional/resources/WebProfileFunctionalTest/testUpdate.json @@ -5,7 +5,7 @@ "operationId": "web-profile.update", "user": { "scopes": [ - "https://api-s.paypal.com/v1/payments/.*" + "https://api.paypal.com/v1/payments/.*" ] }, "credentials": { diff --git a/tests/PayPal/Test/Functional/resources/WebhookFunctionalTest/testCreate.json b/tests/PayPal/Test/Functional/resources/WebhookFunctionalTest/testCreate.json index 2aff6c1..d03f819 100644 --- a/tests/PayPal/Test/Functional/resources/WebhookFunctionalTest/testCreate.json +++ b/tests/PayPal/Test/Functional/resources/WebhookFunctionalTest/testCreate.json @@ -55,17 +55,17 @@ ], "links":[ { - "href":"https://api-s.paypal.com/v1/notifications/webhooks/0EH40505U7160970P", + "href":"https://api.paypal.com/v1/notifications/webhooks/0EH40505U7160970P", "rel":"self", "method":"GET" }, { - "href":"https://api-s.paypal.com/v1/notifications/webhooks/0EH40505U7160970P", + "href":"https://api.paypal.com/v1/notifications/webhooks/0EH40505U7160970P", "rel":"update", "method":"PATCH" }, { - "href":"https://api-s.paypal.com/v1/notifications/webhooks/0EH40505U7160970P", + "href":"https://api.paypal.com/v1/notifications/webhooks/0EH40505U7160970P", "rel":"delete", "method":"DELETE" } diff --git a/tests/PayPal/Test/Functional/resources/WebhookFunctionalTest/testEventResend.json b/tests/PayPal/Test/Functional/resources/WebhookFunctionalTest/testEventResend.json index 63b501d..85f62d5 100644 --- a/tests/PayPal/Test/Functional/resources/WebhookFunctionalTest/testEventResend.json +++ b/tests/PayPal/Test/Functional/resources/WebhookFunctionalTest/testEventResend.json @@ -51,22 +51,22 @@ "valid_until":"2013-07-24T21:39:15Z", "links":[ { - "href":"https://api-s.paypal.com/v1/payments/authorization/2DC87612EK520411B", + "href":"https://api.paypal.com/v1/payments/authorization/2DC87612EK520411B", "rel":"self", "method":"GET" }, { - "href":"https://api-s.paypal.com/v1/payments/authorization/2DC87612EK520411B/capture", + "href":"https://api.paypal.com/v1/payments/authorization/2DC87612EK520411B/capture", "rel":"capture", "method":"POST" }, { - "href":"https://api-s.paypal.com/v1/payments/authorization/2DC87612EK520411B/void", + "href":"https://api.paypal.com/v1/payments/authorization/2DC87612EK520411B/void", "rel":"void", "method":"POST" }, { - "href":"https://api-s.paypal.com/v1/payments/payment/PAY-36246664YD343335CKHFA4AY", + "href":"https://api.paypal.com/v1/payments/payment/PAY-36246664YD343335CKHFA4AY", "rel":"parent_payment", "method":"GET" } @@ -74,12 +74,12 @@ }, "links":[ { - "href":"https://api-s.paypal.com/v1/notfications/webhooks-events/8PT597110X687430LKGECATA", + "href":"https://api.paypal.com/v1/notfications/webhooks-events/8PT597110X687430LKGECATA", "rel":"self", "method":"GET" }, { - "href":"https://api-s.paypal.com/v1/notfications/webhooks-events/8PT597110X687430LKGECATA/resend", + "href":"https://api.paypal.com/v1/notfications/webhooks-events/8PT597110X687430LKGECATA/resend", "rel":"resend", "method":"POST" } diff --git a/tests/PayPal/Test/Functional/resources/WebhookFunctionalTest/testEventSearch.json b/tests/PayPal/Test/Functional/resources/WebhookFunctionalTest/testEventSearch.json index 3dee8df..5d26256 100644 --- a/tests/PayPal/Test/Functional/resources/WebhookFunctionalTest/testEventSearch.json +++ b/tests/PayPal/Test/Functional/resources/WebhookFunctionalTest/testEventSearch.json @@ -53,22 +53,22 @@ "valid_until": "2013-07-24T21:39:15Z", "links": [ { - "href": "https://api-s.sandbox.paypal.com/v1/payments/authorization/2DC87612EK520411B", + "href": "https://api.sandbox.paypal.com/v1/payments/authorization/2DC87612EK520411B", "rel": "self", "method": "GET" }, { - "href": "https://api-s.sandbox.paypal.com/v1/payments/authorization/2DC87612EK520411B/capture", + "href": "https://api.sandbox.paypal.com/v1/payments/authorization/2DC87612EK520411B/capture", "rel": "capture", "method": "POST" }, { - "href": "https://api-s.sandbox.paypal.com/v1/payments/authorization/2DC87612EK520411B/void", + "href": "https://api.sandbox.paypal.com/v1/payments/authorization/2DC87612EK520411B/void", "rel": "void", "method": "POST" }, { - "href": "https://api-s.sandbox.paypal.com/v1/payments/payment/PAY-36246664YD343335CKHFA4AY", + "href": "https://api.sandbox.paypal.com/v1/payments/payment/PAY-36246664YD343335CKHFA4AY", "rel": "parent_payment", "method": "GET" } @@ -76,12 +76,12 @@ }, "links": [ { - "href": "https://api-s.sandbox.paypal.com/v1/notfications/webhooks-events/8PT597110X687430LKGECATA", + "href": "https://api.sandbox.paypal.com/v1/notfications/webhooks-events/8PT597110X687430LKGECATA", "rel": "self", "method": "GET" }, { - "href": "https://api-s.sandbox.paypal.com/v1/notfications/webhooks-events/8PT597110X687430LKGECATA/resend", + "href": "https://api.sandbox.paypal.com/v1/notfications/webhooks-events/8PT597110X687430LKGECATA/resend", "rel": "resend", "method": "POST" } @@ -109,22 +109,22 @@ "valid_until": "2013-07-24T21:39:15Z", "links": [ { - "href": "https://api-s.sandbox.paypal.com/v1/payments/authorization/HATH7S72EK520411B", + "href": "https://api.sandbox.paypal.com/v1/payments/authorization/HATH7S72EK520411B", "rel": "self", "method": "GET" }, { - "href": "https://api-s.sandbox.paypal.com/v1/payments/authorization/HATH7S72EK520411B/capture", + "href": "https://api.sandbox.paypal.com/v1/payments/authorization/HATH7S72EK520411B/capture", "rel": "capture", "method": "POST" }, { - "href": "https://api-s.sandbox.paypal.com/v1/payments/authorization/HATH7S72EK520411B/void", + "href": "https://api.sandbox.paypal.com/v1/payments/authorization/HATH7S72EK520411B/void", "rel": "void", "method": "POST" }, { - "href": "https://api-s.sandbox.paypal.com/v1/payments/payment/PAY-HATH7S72EK520411B", + "href": "https://api.sandbox.paypal.com/v1/payments/payment/PAY-HATH7S72EK520411B", "rel": "parent_payment", "method": "GET" } @@ -132,12 +132,12 @@ }, "links": [ { - "href": "https://api-s.sandbox.paypal.com/v1/notfications/webhooks-events/HTSPGS710X687430LKGECATA", + "href": "https://api.sandbox.paypal.com/v1/notfications/webhooks-events/HTSPGS710X687430LKGECATA", "rel": "self", "method": "GET" }, { - "href": "https://api-s.sandbox.paypal.com/v1/notfications/webhooks-events/HTSPGS710X687430LKGECATA/resend", + "href": "https://api.sandbox.paypal.com/v1/notfications/webhooks-events/HTSPGS710X687430LKGECATA/resend", "rel": "resend", "method": "POST" } @@ -147,12 +147,12 @@ "count": 2, "links": [ { - "href": "https://api-s.sandbox.paypal.com/v1/notifications/webhooks-events/?start_time=2014-08-04T12:46:47-07:00&end_time=2014-09-18T12:46:47-07:00&page_size=2&move_to=next&index_time=2014-09-17T23:07:35Z&index_id=3", + "href": "https://api.sandbox.paypal.com/v1/notifications/webhooks-events/?start_time=2014-08-04T12:46:47-07:00&end_time=2014-09-18T12:46:47-07:00&page_size=2&move_to=next&index_time=2014-09-17T23:07:35Z&index_id=3", "rel": "next", "method": "GET" }, { - "href": "https://api-s.sandbox.paypal.com/v1/notifications/webhooks-events/?start_time=2014-08-04T12:46:47-07:00&end_time=2014-09-18T12:46:47-07:00&page_size=2&move_to=previous&index_time=2014-09-17T23:07:35Z&index_id=0", + "href": "https://api.sandbox.paypal.com/v1/notifications/webhooks-events/?start_time=2014-08-04T12:46:47-07:00&end_time=2014-09-18T12:46:47-07:00&page_size=2&move_to=previous&index_time=2014-09-17T23:07:35Z&index_id=0", "rel": "previous", "method": "GET" } diff --git a/tests/PayPal/Test/Functional/resources/WebhookFunctionalTest/testGet.json b/tests/PayPal/Test/Functional/resources/WebhookFunctionalTest/testGet.json index c667e5d..d7e80f1 100644 --- a/tests/PayPal/Test/Functional/resources/WebhookFunctionalTest/testGet.json +++ b/tests/PayPal/Test/Functional/resources/WebhookFunctionalTest/testGet.json @@ -44,17 +44,17 @@ ], "links":[ { - "href":"https://api-s.paypal.com/v1/notifications/webhooks/0EH40505U7160970P", + "href":"https://api.paypal.com/v1/notifications/webhooks/0EH40505U7160970P", "rel":"self", "method":"GET" }, { - "href":"https://api-s.paypal.com/v1/notifications/webhooks/0EH40505U7160970P", + "href":"https://api.paypal.com/v1/notifications/webhooks/0EH40505U7160970P", "rel":"update", "method":"PATCH" }, { - "href":"https://api-s.paypal.com/v1/notifications/webhooks/0EH40505U7160970P", + "href":"https://api.paypal.com/v1/notifications/webhooks/0EH40505U7160970P", "rel":"delete", "method":"DELETE" } diff --git a/tests/PayPal/Test/Functional/resources/WebhookFunctionalTest/testGetAll.json b/tests/PayPal/Test/Functional/resources/WebhookFunctionalTest/testGetAll.json index 1482c7d..957735a 100644 --- a/tests/PayPal/Test/Functional/resources/WebhookFunctionalTest/testGetAll.json +++ b/tests/PayPal/Test/Functional/resources/WebhookFunctionalTest/testGetAll.json @@ -46,17 +46,17 @@ ], "links":[ { - "href":"https://api-s.paypal.com/v1/notifications/webhooks/40Y916089Y8324740", + "href":"https://api.paypal.com/v1/notifications/webhooks/40Y916089Y8324740", "rel":"self", "method":"GET" }, { - "href":"https://api-s.paypal.com/v1/notifications/webhooks/40Y916089Y8324740", + "href":"https://api.paypal.com/v1/notifications/webhooks/40Y916089Y8324740", "rel":"update", "method":"PATCH" }, { - "href":"https://api-s.paypal.com/v1/notifications/webhooks/40Y916089Y8324740", + "href":"https://api.paypal.com/v1/notifications/webhooks/40Y916089Y8324740", "rel":"delete", "method":"DELETE" } @@ -77,17 +77,17 @@ ], "links":[ { - "href":"https://api-s.paypal.com/v1/notifications/webhooks/0EH40505U7160970P", + "href":"https://api.paypal.com/v1/notifications/webhooks/0EH40505U7160970P", "rel":"self", "method":"GET" }, { - "href":"https://api-s.paypal.com/v1/notifications/webhooks/0EH40505U7160970P", + "href":"https://api.paypal.com/v1/notifications/webhooks/0EH40505U7160970P", "rel":"update", "method":"PATCH" }, { - "href":"https://api-s.paypal.com/v1/notifications/webhooks/0EH40505U7160970P", + "href":"https://api.paypal.com/v1/notifications/webhooks/0EH40505U7160970P", "rel":"delete", "method":"DELETE" } diff --git a/tests/PayPal/Test/Functional/resources/WebhookFunctionalTest/testGetEvent.json b/tests/PayPal/Test/Functional/resources/WebhookFunctionalTest/testGetEvent.json index a544e27..4bc244c 100644 --- a/tests/PayPal/Test/Functional/resources/WebhookFunctionalTest/testGetEvent.json +++ b/tests/PayPal/Test/Functional/resources/WebhookFunctionalTest/testGetEvent.json @@ -51,22 +51,22 @@ "valid_until":"2013-07-24T21:39:15Z", "links":[ { - "href":"https://api-s.paypal.com/v1/payments/authorization/2DC87612EK520411B", + "href":"https://api.paypal.com/v1/payments/authorization/2DC87612EK520411B", "rel":"self", "method":"GET" }, { - "href":"https://api-s.paypal.com/v1/payments/authorization/2DC87612EK520411B/capture", + "href":"https://api.paypal.com/v1/payments/authorization/2DC87612EK520411B/capture", "rel":"capture", "method":"POST" }, { - "href":"https://api-s.paypal.com/v1/payments/authorization/2DC87612EK520411B/void", + "href":"https://api.paypal.com/v1/payments/authorization/2DC87612EK520411B/void", "rel":"void", "method":"POST" }, { - "href":"https://api-s.paypal.com/v1/payments/payment/PAY-36246664YD343335CKHFA4AY", + "href":"https://api.paypal.com/v1/payments/payment/PAY-36246664YD343335CKHFA4AY", "rel":"parent_payment", "method":"GET" } @@ -74,12 +74,12 @@ }, "links":[ { - "href":"https://api-s.paypal.com/v1/notfications/webhooks-events/8PT597110X687430LKGECATA", + "href":"https://api.paypal.com/v1/notfications/webhooks-events/8PT597110X687430LKGECATA", "rel":"self", "method":"GET" }, { - "href":"https://api-s.paypal.com/v1/notfications/webhooks-events/8PT597110X687430LKGECATA/resend", + "href":"https://api.paypal.com/v1/notfications/webhooks-events/8PT597110X687430LKGECATA/resend", "rel":"resend", "method":"POST" } diff --git a/tests/PayPal/Test/Functional/resources/WebhookFunctionalTest/testUpdate.json b/tests/PayPal/Test/Functional/resources/WebhookFunctionalTest/testUpdate.json index 33f62f0..bc1a694 100644 --- a/tests/PayPal/Test/Functional/resources/WebhookFunctionalTest/testUpdate.json +++ b/tests/PayPal/Test/Functional/resources/WebhookFunctionalTest/testUpdate.json @@ -56,17 +56,17 @@ ], "links":[ { - "href":"https://api-s.paypal.com/v1/notifications/webhooks/0EH40505U7160970P", + "href":"https://api.paypal.com/v1/notifications/webhooks/0EH40505U7160970P", "rel":"self", "method":"GET" }, { - "href":"https://api-s.paypal.com/v1/notifications/webhooks/0EH40505U7160970P", + "href":"https://api.paypal.com/v1/notifications/webhooks/0EH40505U7160970P", "rel":"update", "method":"PATCH" }, { - "href":"https://api-s.paypal.com/v1/notifications/webhooks/0EH40505U7160970P", + "href":"https://api.paypal.com/v1/notifications/webhooks/0EH40505U7160970P", "rel":"delete", "method":"DELETE" } diff --git a/tests/sdk_config.ini b/tests/sdk_config.ini index a4c94d1..0957ccc 100644 --- a/tests/sdk_config.ini +++ b/tests/sdk_config.ini @@ -16,9 +16,9 @@ mode=sandbox ;Service Configuration [Service] -service.EndPoint="https://api-s.sandbox.paypal.com" +service.EndPoint="https://api.sandbox.paypal.com" ; Uncomment this line for integrating with the live endpoint -; service.EndPoint="https://api-s.paypal.com" +; service.EndPoint="https://api.paypal.com" ;Logging Information