diff --git a/lib/PayPal/Core/PayPalConstants.php b/lib/PayPal/Core/PayPalConstants.php index 3dab406..502e5c2 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.sandbox.paypal.com/"; + const REST_SANDBOX_ENDPOINT = "https://api-s.sandbox.paypal.com/"; const OPENID_REDIRECT_SANDBOX_URL = "https://www.sandbox.paypal.com/webapps/auth/protocol/openidconnect"; - const REST_LIVE_ENDPOINT = "https://api.paypal.com/"; + const REST_LIVE_ENDPOINT = "https://api-s.paypal.com/"; const OPENID_REDIRECT_LIVE_URL = "https://www.paypal.com/webapps/auth/protocol/openidconnect"; } diff --git a/tests/PayPal/Test/Functional/resources/BillingAgreementsFunctionalTest/testCreateCCAgreement.json b/tests/PayPal/Test/Functional/resources/BillingAgreementsFunctionalTest/testCreateCCAgreement.json index 4d93fc8..99a5259 100755 --- a/tests/PayPal/Test/Functional/resources/BillingAgreementsFunctionalTest/testCreateCCAgreement.json +++ b/tests/PayPal/Test/Functional/resources/BillingAgreementsFunctionalTest/testCreateCCAgreement.json @@ -40,7 +40,7 @@ { "credit_card": { "type": "visa", - "number": "4417119669820331", + "number": "4204466604263862", "expire_month": "12", "expire_year": "2017", "cvv2": "128" diff --git a/tests/PayPal/Test/Functional/resources/BillingAgreementsFunctionalTest/testGet.json b/tests/PayPal/Test/Functional/resources/BillingAgreementsFunctionalTest/testGet.json index 5189efd..25c3b56 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.sandbox.paypal.com/v1/payments/billing-agreements/I-XTN3V7NY6KG7/suspend", + "href": "https://api-s.sandbox.paypal.com/v1/payments/billing-agreements/I-XTN3V7NY6KG7/suspend", "rel": "suspend", "method": "POST" }, { - "href": "https://api.sandbox.paypal.com/v1/payments/billing-agreements/I-XTN3V7NY6KG7/re-activate", + "href": "https://api-s.sandbox.paypal.com/v1/payments/billing-agreements/I-XTN3V7NY6KG7/re-activate", "rel": "re_activate", "method": "POST" }, { - "href": "https://api.sandbox.paypal.com/v1/payments/billing-agreements/I-XTN3V7NY6KG7/cancel", + "href": "https://api-s.sandbox.paypal.com/v1/payments/billing-agreements/I-XTN3V7NY6KG7/cancel", "rel": "cancel", "method": "POST" }, { - "href": "https://api.sandbox.paypal.com/v1/payments/billing-agreements/I-XTN3V7NY6KG7/bill-balance", + "href": "https://api-s.sandbox.paypal.com/v1/payments/billing-agreements/I-XTN3V7NY6KG7/bill-balance", "rel": "self", "method": "POST" }, { - "href": "https://api.sandbox.paypal.com/v1/payments/billing-agreements/I-XTN3V7NY6KG7/set-balance", + "href": "https://api-s.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 d1f656a..923a17e 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.sandbox.paypal.com/v1/payments/billing-agreements/I-XTN3V7NY6KG7/suspend", + "href": "https://api-s.sandbox.paypal.com/v1/payments/billing-agreements/I-XTN3V7NY6KG7/suspend", "rel": "suspend", "method": "POST" }, { - "href": "https://api.sandbox.paypal.com/v1/payments/billing-agreements/I-XTN3V7NY6KG7/re-activate", + "href": "https://api-s.sandbox.paypal.com/v1/payments/billing-agreements/I-XTN3V7NY6KG7/re-activate", "rel": "re_activate", "method": "POST" }, { - "href": "https://api.sandbox.paypal.com/v1/payments/billing-agreements/I-XTN3V7NY6KG7/cancel", + "href": "https://api-s.sandbox.paypal.com/v1/payments/billing-agreements/I-XTN3V7NY6KG7/cancel", "rel": "cancel", "method": "POST" }, { - "href": "https://api.sandbox.paypal.com/v1/payments/billing-agreements/I-XTN3V7NY6KG7/bill-balance", + "href": "https://api-s.sandbox.paypal.com/v1/payments/billing-agreements/I-XTN3V7NY6KG7/bill-balance", "rel": "self", "method": "POST" }, { - "href": "https://api.sandbox.paypal.com/v1/payments/billing-agreements/I-XTN3V7NY6KG7/set-balance", + "href": "https://api-s.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 5da4558..7365aa2 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.sandbox.paypal.com/v1/payments/billing-agreements/I-XTN3V7NY6KG7/suspend", + "href": "https://api-s.sandbox.paypal.com/v1/payments/billing-agreements/I-XTN3V7NY6KG7/suspend", "rel": "suspend", "method": "POST" }, { - "href": "https://api.sandbox.paypal.com/v1/payments/billing-agreements/I-XTN3V7NY6KG7/re-activate", + "href": "https://api-s.sandbox.paypal.com/v1/payments/billing-agreements/I-XTN3V7NY6KG7/re-activate", "rel": "re_activate", "method": "POST" }, { - "href": "https://api.sandbox.paypal.com/v1/payments/billing-agreements/I-XTN3V7NY6KG7/cancel", + "href": "https://api-s.sandbox.paypal.com/v1/payments/billing-agreements/I-XTN3V7NY6KG7/cancel", "rel": "cancel", "method": "POST" }, { - "href": "https://api.sandbox.paypal.com/v1/payments/billing-agreements/I-XTN3V7NY6KG7/bill-balance", + "href": "https://api-s.sandbox.paypal.com/v1/payments/billing-agreements/I-XTN3V7NY6KG7/bill-balance", "rel": "self", "method": "POST" }, { - "href": "https://api.sandbox.paypal.com/v1/payments/billing-agreements/I-XTN3V7NY6KG7/set-balance", + "href": "https://api-s.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 36c641c..5a874a7 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.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\":[]}" + "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\":[]}" }, "body": { "subject": "Past due", @@ -32,4 +32,4 @@ "headers": {}, "status": "" } -} \ No newline at end of file +} diff --git a/tests/PayPal/Test/Functional/resources/InvoiceFunctionalTest/testCreate.json b/tests/PayPal/Test/Functional/resources/InvoiceFunctionalTest/testCreate.json index 4d19ff6..3685d6f 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.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\":[]}" + "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\":[]}" }, "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 a487397..c8e3800 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.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\":[]}" + "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\":[]}" }, "body": {} }, @@ -28,4 +28,4 @@ "headers": {}, "body": {} } -} \ No newline at end of file +} diff --git a/tests/PayPal/Test/Functional/resources/InvoiceFunctionalTest/testGet.json b/tests/PayPal/Test/Functional/resources/InvoiceFunctionalTest/testGet.json index 65d607d..bb8929e 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.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\":[]}" + "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\":[]}" }, "body": {} }, diff --git a/tests/PayPal/Test/Functional/resources/InvoiceFunctionalTest/testGetAll.json b/tests/PayPal/Test/Functional/resources/InvoiceFunctionalTest/testGetAll.json index a5f3c4d..eec826a 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.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\":[]}" + "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\":[]}" }, "body": {} }, diff --git a/tests/PayPal/Test/Functional/resources/InvoiceFunctionalTest/testQRCode.json b/tests/PayPal/Test/Functional/resources/InvoiceFunctionalTest/testQRCode.json index 01e3188..b675f82 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.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\":[]}" + "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\":[]}" }, "body": {} }, @@ -30,4 +30,4 @@ "image": "iVBORw0KGgoAA......XUDM" } } -} \ No newline at end of file +} diff --git a/tests/PayPal/Test/Functional/resources/InvoiceFunctionalTest/testRemind.json b/tests/PayPal/Test/Functional/resources/InvoiceFunctionalTest/testRemind.json index 6379558..5f44b10 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.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\":[]}" + "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\":[]}" }, "body": { "subject": "Past due", @@ -32,4 +32,4 @@ "headers": {}, "body": {} } -} \ No newline at end of file +} diff --git a/tests/PayPal/Test/Functional/resources/InvoiceFunctionalTest/testSearch.json b/tests/PayPal/Test/Functional/resources/InvoiceFunctionalTest/testSearch.json index a136578..d8fca73 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.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\":[]}" + "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\":[]}" }, "body": { "page": 0, diff --git a/tests/PayPal/Test/Functional/resources/InvoiceFunctionalTest/testSend.json b/tests/PayPal/Test/Functional/resources/InvoiceFunctionalTest/testSend.json index 41d37f3..c49d589 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.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\":[]}" + "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\":[]}" }, "body": {} }, @@ -28,4 +28,4 @@ "headers": {}, "body": {} } -} \ No newline at end of file +} diff --git a/tests/PayPal/Test/Functional/resources/InvoiceFunctionalTest/testUpdate.json b/tests/PayPal/Test/Functional/resources/InvoiceFunctionalTest/testUpdate.json index 1c45eb4..eda7805 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.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\":[]}" + "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\":[]}" }, "body": { "merchant_info": { diff --git a/tests/PayPal/Test/Functional/resources/PaymentsFunctionalTest/testCreate.json b/tests/PayPal/Test/Functional/resources/PaymentsFunctionalTest/testCreate.json index 0ba6c64..2d87df5 100644 --- a/tests/PayPal/Test/Functional/resources/PaymentsFunctionalTest/testCreate.json +++ b/tests/PayPal/Test/Functional/resources/PaymentsFunctionalTest/testCreate.json @@ -24,7 +24,7 @@ "funding_instruments": [ { "credit_card": { - "number": "4417119669820331", + "number": "4160285494148633", "type": "visa", "expire_month": 11, "expire_year": 2018, @@ -115,17 +115,17 @@ "parent_payment": "PAY-17S8410768582940NKEE66EQ", "links": [ { - "href": "https://api.paypal.com/v1/payments/sale/4RR959492F879224U", + "href": "https://api-s.paypal.com/v1/payments/sale/4RR959492F879224U", "rel": "self", "method": "GET" }, { - "href": "https://api.paypal.com/v1/payments/sale/4RR959492F879224U/refund", + "href": "https://api-s.paypal.com/v1/payments/sale/4RR959492F879224U/refund", "rel": "refund", "method": "POST" }, { - "href": "https://api.paypal.com/v1/payments/payment/PAY-17S8410768582940NKEE66EQ", + "href": "https://api-s.paypal.com/v1/payments/payment/PAY-17S8410768582940NKEE66EQ", "rel": "parent_payment", "method": "GET" } @@ -137,7 +137,7 @@ ], "links": [ { - "href": "https://api.paypal.com/v1/payments/payment/PAY-17S8410768582940NKEE66EQ", + "href": "https://api-s.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 06bb793..5513012 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.paypal.com/v1/payments/sale/4RR959492F879224U", + "href": "https: //api-s.paypal.com/v1/payments/sale/4RR959492F879224U", "rel": "self", "method": "GET" }, { - "href": "https: //api.paypal.com/v1/payments/sale/4RR959492F879224U/refund", + "href": "https: //api-s.paypal.com/v1/payments/sale/4RR959492F879224U/refund", "rel": "refund", "method": "POST" }, { - "href": "https: //api.paypal.com/v1/payments/payment/PAY-17S8410768582940NKEE66EQ", + "href": "https: //api-s.paypal.com/v1/payments/payment/PAY-17S8410768582940NKEE66EQ", "rel": "parent_payment", "method": "GET" } @@ -166,7 +166,7 @@ ], "links": [ { - "href": "https: //api.paypal.com/v1/payments/payment/PAY-17S8410768582940NKEE66EQ", + "href": "https: //api-s.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 2c43b87..4cd51eb 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.paypal.com/v1/payments/sale/1KE4800207592173L", + "href": "https://api-s.paypal.com/v1/payments/sale/1KE4800207592173L", "rel": "self", "method": "GET" }, { - "href": "https://api.paypal.com/v1/payments/sale/1KE4800207592173L/refund", + "href": "https://api-s.paypal.com/v1/payments/sale/1KE4800207592173L/refund", "rel": "refund", "method": "POST" }, { - "href": "https://api.paypal.com/v1/payments/payment/PAY-34629814WL663112AKEE3AWQ", + "href": "https://api-s.paypal.com/v1/payments/payment/PAY-34629814WL663112AKEE3AWQ", "rel": "parent_payment", "method": "GET" } @@ -87,7 +87,7 @@ ], "links": [ { - "href": "https://api.paypal.com/v1/payments/payment/PAY-34629814WL663112AKEE3AWQ", + "href": "https://api-s.paypal.com/v1/payments/payment/PAY-34629814WL663112AKEE3AWQ", "rel": "self", "method": "GET" } @@ -95,4 +95,4 @@ }, "status": "200 OK" } -} \ No newline at end of file +} diff --git a/tests/PayPal/Test/Functional/resources/PaymentsFunctionalTest/testGet.json b/tests/PayPal/Test/Functional/resources/PaymentsFunctionalTest/testGet.json index a3dea4c..4e7ee41 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.paypal.com/v1/payments/sale/4RR959492F879224U", + "href": "https://api-s.paypal.com/v1/payments/sale/4RR959492F879224U", "rel": "self", "method": "GET" }, { - "href": "https://api.paypal.com/v1/payments/sale/4RR959492F879224U/refund", + "href": "https://api-s.paypal.com/v1/payments/sale/4RR959492F879224U/refund", "rel": "refund", "method": "POST" }, { - "href": "https://api.paypal.com/v1/payments/payment/PAY-17S8410768582940NKEE66EQ", + "href": "https://api-s.paypal.com/v1/payments/payment/PAY-17S8410768582940NKEE66EQ", "rel": "parent_payment", "method": "GET" } @@ -98,7 +98,7 @@ ], "links": [ { - "href": "https://api.paypal.com/v1/payments/payment/PAY-17S8410768582940NKEE66EQ", + "href": "https://api-s.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 fde810c..5362af2 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.paypal.com/v1/payments/sale/36C38912MN9658832", + "href": "https://api-s.paypal.com/v1/payments/sale/36C38912MN9658832", "rel": "self", "method": "GET" }, { - "href": "https://api.paypal.com/v1/payments/sale/36C38912MN9658832/refund", + "href": "https://api-s.paypal.com/v1/payments/sale/36C38912MN9658832/refund", "rel": "refund", "method": "POST" }, @@ -77,7 +77,7 @@ "method": "GET" }, { - "href": "https://api.paypal.com/v1/payments/payment/PAY-5YK922393D847794YKER7MUI", + "href": "https://api-s.paypal.com/v1/payments/payment/PAY-5YK922393D847794YKER7MUI", "rel": "parent_payment", "method": "GET" } @@ -89,7 +89,7 @@ ], "links": [ { - "href": "https://api.paypal.com/v1/payments/payment/PAY-5YK922393D847794YKER7MUI", + "href": "https://api-s.paypal.com/v1/payments/payment/PAY-5YK922393D847794YKER7MUI", "rel": "self", "method": "GET" } @@ -97,4 +97,4 @@ }, "status": "200 OK" } -} \ No newline at end of file +} diff --git a/tests/PayPal/Test/Functional/resources/PaymentsFunctionalTest/testGetSale.json b/tests/PayPal/Test/Functional/resources/PaymentsFunctionalTest/testGetSale.json index ac843fc..9f535c2 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.sandbox.paypal.com/v1/payments/sale/5SA006225W236580K", + "href": "https://api-s.sandbox.paypal.com/v1/payments/sale/5SA006225W236580K", "rel": "self", "method": "GET" }, { - "href": "https://api.sandbox.paypal.com/v1/payments/sale/5SA006225W236580K/refund", + "href": "https://api-s.sandbox.paypal.com/v1/payments/sale/5SA006225W236580K/refund", "rel": "refund", "method": "POST" }, { - "href": "https://api.sandbox.paypal.com/v1/payments/payment/PAY-48W25034R6080713AKRH64KY", + "href": "https://api-s.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 bc49b9f..70de703 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.paypal.com/v1/payments/refund/4CF18861HF410323U", + "href": "https://api-s.paypal.com/v1/payments/refund/4CF18861HF410323U", "rel": "self", "method": "GET" }, { - "href": "https://api.paypal.com/v1/payments/payment/PAY-46E69296BH2194803KEE662Y", + "href": "https://api-s.paypal.com/v1/payments/payment/PAY-46E69296BH2194803KEE662Y", "rel": "parent_payment", "method": "GET" }, { - "href": "https://api.paypal.com/v1/payments/sale/2MU78835H4515710F", + "href": "https://api-s.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 a3850ae..d77e904 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.sandbox.paypal.com/v1/payments/payouts-item/1421342", + "href":"https://api-s.sandbox.paypal.com/v1/payments/payouts-item/1421342", "method":"GET" }, { "rel":"batch", - "href":"https://api.sandbox.paypal.com/v1/payments/payouts/20140724", + "href":"https://api-s.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 c2c5307..45a860c 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.sandbox.paypal.com/v1/payments/payouts-item/VHBFGN95AWV82", + "href": "https://api-s.sandbox.paypal.com/v1/payments/payouts-item/VHBFGN95AWV82", "rel": "item", "method": "GET" } @@ -96,7 +96,7 @@ ], "links": [ { - "href": "https://api.sandbox.paypal.com/v1/payments/payouts/CDZEC5MJ8R5HY", + "href": "https://api-s.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 19adc71..87ef4d0 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.sandbox.paypal.com/v1/payments/payouts-item/HUUQ5YASYLQFN", + "href": "https://api-s.sandbox.paypal.com/v1/payments/payouts-item/HUUQ5YASYLQFN", "rel": "self", "method": "GET" }, { - "href": "https://api.sandbox.paypal.com/v1/payments/payouts/LNLSEVGU4P85S", + "href": "https://api-s.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 53c8798..a36373a 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.paypal.com/v1/payments/.*" + "https://api-s.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 6f873e4..fd74b29 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.paypal.com/v1/payments/.*" + "https://api-s.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 d3bc266..4d645c1 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.paypal.com/v1/payments/.*" + "https://api-s.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 14174c0..d5617c0 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.paypal.com/v1/payments/.*" + "https://api-s.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 5850c5e..dee5630 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.paypal.com/v1/payments/.*" + "https://api-s.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 022742d..8076b25 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.paypal.com/v1/payments/.*" + "https://api-s.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 d03f819..2aff6c1 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.paypal.com/v1/notifications/webhooks/0EH40505U7160970P", + "href":"https://api-s.paypal.com/v1/notifications/webhooks/0EH40505U7160970P", "rel":"self", "method":"GET" }, { - "href":"https://api.paypal.com/v1/notifications/webhooks/0EH40505U7160970P", + "href":"https://api-s.paypal.com/v1/notifications/webhooks/0EH40505U7160970P", "rel":"update", "method":"PATCH" }, { - "href":"https://api.paypal.com/v1/notifications/webhooks/0EH40505U7160970P", + "href":"https://api-s.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 145e030..63b501d 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.paypal.com/v1/payments/authorization/2DC87612EK520411B", + "href":"https://api-s.paypal.com/v1/payments/authorization/2DC87612EK520411B", "rel":"self", "method":"GET" }, { - "href":"https://api.paypal.com/v1/payments/authorization/2DC87612EK520411B/capture", + "href":"https://api-s.paypal.com/v1/payments/authorization/2DC87612EK520411B/capture", "rel":"capture", "method":"POST" }, { - "href":"https://api.paypal.com/v1/payments/authorization/2DC87612EK520411B/void", + "href":"https://api-s.paypal.com/v1/payments/authorization/2DC87612EK520411B/void", "rel":"void", "method":"POST" }, { - "href":"https://api.paypal.com/v1/payments/payment/PAY-36246664YD343335CKHFA4AY", + "href":"https://api-s.paypal.com/v1/payments/payment/PAY-36246664YD343335CKHFA4AY", "rel":"parent_payment", "method":"GET" } @@ -74,16 +74,16 @@ }, "links":[ { - "href":"https://api.paypal.com/v1/notfications/webhooks-events/8PT597110X687430LKGECATA", + "href":"https://api-s.paypal.com/v1/notfications/webhooks-events/8PT597110X687430LKGECATA", "rel":"self", "method":"GET" }, { - "href":"https://api.paypal.com/v1/notfications/webhooks-events/8PT597110X687430LKGECATA/resend", + "href":"https://api-s.paypal.com/v1/notfications/webhooks-events/8PT597110X687430LKGECATA/resend", "rel":"resend", "method":"POST" } ] } } -} \ No newline at end of file +} diff --git a/tests/PayPal/Test/Functional/resources/WebhookFunctionalTest/testEventSearch.json b/tests/PayPal/Test/Functional/resources/WebhookFunctionalTest/testEventSearch.json index 5d26256..3dee8df 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.sandbox.paypal.com/v1/payments/authorization/2DC87612EK520411B", + "href": "https://api-s.sandbox.paypal.com/v1/payments/authorization/2DC87612EK520411B", "rel": "self", "method": "GET" }, { - "href": "https://api.sandbox.paypal.com/v1/payments/authorization/2DC87612EK520411B/capture", + "href": "https://api-s.sandbox.paypal.com/v1/payments/authorization/2DC87612EK520411B/capture", "rel": "capture", "method": "POST" }, { - "href": "https://api.sandbox.paypal.com/v1/payments/authorization/2DC87612EK520411B/void", + "href": "https://api-s.sandbox.paypal.com/v1/payments/authorization/2DC87612EK520411B/void", "rel": "void", "method": "POST" }, { - "href": "https://api.sandbox.paypal.com/v1/payments/payment/PAY-36246664YD343335CKHFA4AY", + "href": "https://api-s.sandbox.paypal.com/v1/payments/payment/PAY-36246664YD343335CKHFA4AY", "rel": "parent_payment", "method": "GET" } @@ -76,12 +76,12 @@ }, "links": [ { - "href": "https://api.sandbox.paypal.com/v1/notfications/webhooks-events/8PT597110X687430LKGECATA", + "href": "https://api-s.sandbox.paypal.com/v1/notfications/webhooks-events/8PT597110X687430LKGECATA", "rel": "self", "method": "GET" }, { - "href": "https://api.sandbox.paypal.com/v1/notfications/webhooks-events/8PT597110X687430LKGECATA/resend", + "href": "https://api-s.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.sandbox.paypal.com/v1/payments/authorization/HATH7S72EK520411B", + "href": "https://api-s.sandbox.paypal.com/v1/payments/authorization/HATH7S72EK520411B", "rel": "self", "method": "GET" }, { - "href": "https://api.sandbox.paypal.com/v1/payments/authorization/HATH7S72EK520411B/capture", + "href": "https://api-s.sandbox.paypal.com/v1/payments/authorization/HATH7S72EK520411B/capture", "rel": "capture", "method": "POST" }, { - "href": "https://api.sandbox.paypal.com/v1/payments/authorization/HATH7S72EK520411B/void", + "href": "https://api-s.sandbox.paypal.com/v1/payments/authorization/HATH7S72EK520411B/void", "rel": "void", "method": "POST" }, { - "href": "https://api.sandbox.paypal.com/v1/payments/payment/PAY-HATH7S72EK520411B", + "href": "https://api-s.sandbox.paypal.com/v1/payments/payment/PAY-HATH7S72EK520411B", "rel": "parent_payment", "method": "GET" } @@ -132,12 +132,12 @@ }, "links": [ { - "href": "https://api.sandbox.paypal.com/v1/notfications/webhooks-events/HTSPGS710X687430LKGECATA", + "href": "https://api-s.sandbox.paypal.com/v1/notfications/webhooks-events/HTSPGS710X687430LKGECATA", "rel": "self", "method": "GET" }, { - "href": "https://api.sandbox.paypal.com/v1/notfications/webhooks-events/HTSPGS710X687430LKGECATA/resend", + "href": "https://api-s.sandbox.paypal.com/v1/notfications/webhooks-events/HTSPGS710X687430LKGECATA/resend", "rel": "resend", "method": "POST" } @@ -147,12 +147,12 @@ "count": 2, "links": [ { - "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", + "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", "rel": "next", "method": "GET" }, { - "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", + "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", "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 d7e80f1..c667e5d 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.paypal.com/v1/notifications/webhooks/0EH40505U7160970P", + "href":"https://api-s.paypal.com/v1/notifications/webhooks/0EH40505U7160970P", "rel":"self", "method":"GET" }, { - "href":"https://api.paypal.com/v1/notifications/webhooks/0EH40505U7160970P", + "href":"https://api-s.paypal.com/v1/notifications/webhooks/0EH40505U7160970P", "rel":"update", "method":"PATCH" }, { - "href":"https://api.paypal.com/v1/notifications/webhooks/0EH40505U7160970P", + "href":"https://api-s.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 ce274ef..1482c7d 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.paypal.com/v1/notifications/webhooks/40Y916089Y8324740", + "href":"https://api-s.paypal.com/v1/notifications/webhooks/40Y916089Y8324740", "rel":"self", "method":"GET" }, { - "href":"https://api.paypal.com/v1/notifications/webhooks/40Y916089Y8324740", + "href":"https://api-s.paypal.com/v1/notifications/webhooks/40Y916089Y8324740", "rel":"update", "method":"PATCH" }, { - "href":"https://api.paypal.com/v1/notifications/webhooks/40Y916089Y8324740", + "href":"https://api-s.paypal.com/v1/notifications/webhooks/40Y916089Y8324740", "rel":"delete", "method":"DELETE" } @@ -77,17 +77,17 @@ ], "links":[ { - "href":"https://api.paypal.com/v1/notifications/webhooks/0EH40505U7160970P", + "href":"https://api-s.paypal.com/v1/notifications/webhooks/0EH40505U7160970P", "rel":"self", "method":"GET" }, { - "href":"https://api.paypal.com/v1/notifications/webhooks/0EH40505U7160970P", + "href":"https://api-s.paypal.com/v1/notifications/webhooks/0EH40505U7160970P", "rel":"update", "method":"PATCH" }, { - "href":"https://api.paypal.com/v1/notifications/webhooks/0EH40505U7160970P", + "href":"https://api-s.paypal.com/v1/notifications/webhooks/0EH40505U7160970P", "rel":"delete", "method":"DELETE" } @@ -96,4 +96,4 @@ ] } } -} \ No newline at end of file +} diff --git a/tests/PayPal/Test/Functional/resources/WebhookFunctionalTest/testGetEvent.json b/tests/PayPal/Test/Functional/resources/WebhookFunctionalTest/testGetEvent.json index 4bc244c..a544e27 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.paypal.com/v1/payments/authorization/2DC87612EK520411B", + "href":"https://api-s.paypal.com/v1/payments/authorization/2DC87612EK520411B", "rel":"self", "method":"GET" }, { - "href":"https://api.paypal.com/v1/payments/authorization/2DC87612EK520411B/capture", + "href":"https://api-s.paypal.com/v1/payments/authorization/2DC87612EK520411B/capture", "rel":"capture", "method":"POST" }, { - "href":"https://api.paypal.com/v1/payments/authorization/2DC87612EK520411B/void", + "href":"https://api-s.paypal.com/v1/payments/authorization/2DC87612EK520411B/void", "rel":"void", "method":"POST" }, { - "href":"https://api.paypal.com/v1/payments/payment/PAY-36246664YD343335CKHFA4AY", + "href":"https://api-s.paypal.com/v1/payments/payment/PAY-36246664YD343335CKHFA4AY", "rel":"parent_payment", "method":"GET" } @@ -74,12 +74,12 @@ }, "links":[ { - "href":"https://api.paypal.com/v1/notfications/webhooks-events/8PT597110X687430LKGECATA", + "href":"https://api-s.paypal.com/v1/notfications/webhooks-events/8PT597110X687430LKGECATA", "rel":"self", "method":"GET" }, { - "href":"https://api.paypal.com/v1/notfications/webhooks-events/8PT597110X687430LKGECATA/resend", + "href":"https://api-s.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 bc1a694..33f62f0 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.paypal.com/v1/notifications/webhooks/0EH40505U7160970P", + "href":"https://api-s.paypal.com/v1/notifications/webhooks/0EH40505U7160970P", "rel":"self", "method":"GET" }, { - "href":"https://api.paypal.com/v1/notifications/webhooks/0EH40505U7160970P", + "href":"https://api-s.paypal.com/v1/notifications/webhooks/0EH40505U7160970P", "rel":"update", "method":"PATCH" }, { - "href":"https://api.paypal.com/v1/notifications/webhooks/0EH40505U7160970P", + "href":"https://api-s.paypal.com/v1/notifications/webhooks/0EH40505U7160970P", "rel":"delete", "method":"DELETE" } diff --git a/tests/sdk_config.ini b/tests/sdk_config.ini index 0957ccc..a4c94d1 100644 --- a/tests/sdk_config.ini +++ b/tests/sdk_config.ini @@ -16,9 +16,9 @@ mode=sandbox ;Service Configuration [Service] -service.EndPoint="https://api.sandbox.paypal.com" +service.EndPoint="https://api-s.sandbox.paypal.com" ; Uncomment this line for integrating with the live endpoint -; service.EndPoint="https://api.paypal.com" +; service.EndPoint="https://api-s.paypal.com" ;Logging Information