From 119e9f04f19db1f09098bddc6d192afc51f112fa Mon Sep 17 00:00:00 2001 From: Chuck Scott Date: Mon, 4 Jun 2018 14:03:39 -0400 Subject: [PATCH] PayPal integration code moved to "Saved" directory, use approach in "READ_ME_FIRST" file instead. --- config/plugin.ini | 10 + lib/paymentProcessors/PayPal/READ_ME_FIRST | 293 ++++++++++++++++++ .../{ => Saved}/assets/x-click-but6.gif | Bin .../PayPal/{ => Saved}/paymentGateway.php | 87 +++--- .../rest-api-sdk-php/.coveralls.yml | 0 .../rest-api-sdk-php/.gitignore | 0 .../rest-api-sdk-php/.travis.yml | 0 .../rest-api-sdk-php/CHANGELOG.md | 0 .../rest-api-sdk-php/LICENSE.txt | 0 .../rest-api-sdk-php/README.md | 0 .../rest-api-sdk-php/build.xml | 0 .../rest-api-sdk-php/composer.json | 0 .../lib/PayPal/Api/Address.php | 0 .../lib/PayPal/Api/Amount.php | 0 .../lib/PayPal/Api/Authorization.php | 0 .../lib/PayPal/Api/Capture.php | 0 .../lib/PayPal/Api/CreditCard.php | 0 .../lib/PayPal/Api/CreditCardHistory.php | 0 .../lib/PayPal/Api/CreditCardToken.php | 0 .../lib/PayPal/Api/Details.php | 0 .../lib/PayPal/Api/FundingInstrument.php | 0 .../lib/PayPal/Api/HyperSchema.php | 0 .../rest-api-sdk-php/lib/PayPal/Api/Item.php | 0 .../lib/PayPal/Api/ItemList.php | 0 .../rest-api-sdk-php/lib/PayPal/Api/Links.php | 0 .../rest-api-sdk-php/lib/PayPal/Api/Payee.php | 0 .../rest-api-sdk-php/lib/PayPal/Api/Payer.php | 0 .../lib/PayPal/Api/PayerInfo.php | 0 .../lib/PayPal/Api/Payment.php | 0 .../lib/PayPal/Api/PaymentExecution.php | 0 .../lib/PayPal/Api/PaymentHistory.php | 0 .../lib/PayPal/Api/RedirectUrls.php | 0 .../lib/PayPal/Api/Refund.php | 0 .../lib/PayPal/Api/RelatedResources.php | 0 .../rest-api-sdk-php/lib/PayPal/Api/Sale.php | 0 .../lib/PayPal/Api/ShippingAddress.php | 0 .../lib/PayPal/Api/Transaction.php | 0 .../lib/PayPal/Api/Transactions.php | 0 .../lib/PayPal/Auth/OAuthTokenCredential.php | 0 .../lib/PayPal/Rest/ApiContext.php | 0 .../lib/PayPal/Rest/IResource.php | 0 .../lib/PayPal/Rest/RestHandler.php | 0 .../rest-api-sdk-php/phpunit.xml | 0 .../tests/PayPal/Test/Api/AddressTest.php | 0 .../tests/PayPal/Test/Api/AmountTest.php | 0 .../PayPal/Test/Api/AuthorizationTest.php | 0 .../tests/PayPal/Test/Api/CaptureTest.php | 0 .../PayPal/Test/Api/CreditCardHistoryTest.php | 0 .../tests/PayPal/Test/Api/CreditCardTest.php | 0 .../PayPal/Test/Api/CreditCardTokenTest.php | 0 .../tests/PayPal/Test/Api/DetailsTest.php | 0 .../PayPal/Test/Api/FundingInstrumentTest.php | 0 .../tests/PayPal/Test/Api/ItemListTest.php | 0 .../tests/PayPal/Test/Api/ItemTest.php | 0 .../tests/PayPal/Test/Api/LinksTest.php | 0 .../tests/PayPal/Test/Api/PayeeTest.php | 0 .../tests/PayPal/Test/Api/PayerInfoTest.php | 0 .../tests/PayPal/Test/Api/PayerTest.php | 0 .../PayPal/Test/Api/PaymentHistoryTest.php | 0 .../tests/PayPal/Test/Api/PaymentTest.php | 0 .../tests/PayPal/Test/Api/RefundTest.php | 0 .../PayPal/Test/Api/RelatedResourcesTest.php | 0 .../tests/PayPal/Test/Api/SaleTest.php | 0 .../PayPal/Test/Api/ShippingAddressTest.php | 0 .../tests/PayPal/Test/Api/TransactionTest.php | 0 .../Test/Auth/OAuthTokenCredentialTest.php | 0 .../tests/PayPal/Test/Common/ArrayClass.php | 0 .../PayPal/Test/Common/ArrayUtilTest.php | 0 .../tests/PayPal/Test/Common/ChildClass.php | 0 .../tests/PayPal/Test/Common/ModelTest.php | 0 .../tests/PayPal/Test/Common/NestedClass.php | 0 .../tests/PayPal/Test/Common/SimpleClass.php | 0 .../PayPal/Test/Common/UserAgentTest.php | 0 .../tests/PayPal/Test/Constants.php | 0 .../tests/PayPal/Test/Rest/CallTest.php | 0 .../rest-api-sdk-php/tests/bootstrap.php | 0 .../rest-api-sdk-php/tests/sdk_config.ini | 0 .../sdk-core-php/.gitignore | 0 .../sdk-core-php/CHANGELOG.md | 0 .../sdk-core-php/LICENSE.txt | 0 .../sdk-core-php/README.md | 0 .../sdk-core-php/build.xml | 0 .../sdk-core-php/composer.json | 0 .../lib/PayPal/Auth/IPPCredential.php | 0 .../Auth/IPPThirdPartyAuthorization.php | 0 .../lib/PayPal/Auth/Oauth/AuthSignature.php | 0 .../PayPal/Auth/Oauth/MockOAuthDataStore.php | 0 .../lib/PayPal/Auth/Oauth/OAuthConsumer.php | 0 .../lib/PayPal/Auth/Oauth/OAuthDataStore.php | 0 .../lib/PayPal/Auth/Oauth/OAuthRequest.php | 0 .../lib/PayPal/Auth/Oauth/OAuthServer.php | 0 .../Auth/Oauth/OAuthSignatureMethod.php | 0 .../Oauth/OAuthSignatureMethodHmacSha1.php | 0 .../Oauth/OAuthSignatureMethodPLAINTEXT.php | 0 .../Oauth/OAuthSignatureMethodRsaSha1.php | 0 .../lib/PayPal/Auth/Oauth/OAuthToken.php | 0 .../lib/PayPal/Auth/Oauth/OAuthUtil.php | 0 .../PayPal/Auth/Openid/PPOpenIdAddress.php | 0 .../lib/PayPal/Auth/Openid/PPOpenIdError.php | 0 .../PayPal/Auth/Openid/PPOpenIdSession.php | 0 .../PayPal/Auth/Openid/PPOpenIdTokeninfo.php | 0 .../PayPal/Auth/Openid/PPOpenIdUserinfo.php | 0 .../PayPal/Auth/PPCertificateCredential.php | 0 .../lib/PayPal/Auth/PPSignatureCredential.php | 0 .../PayPal/Auth/PPSubjectAuthorization.php | 0 .../lib/PayPal/Auth/PPTokenAuthorization.php | 0 .../lib/PayPal/Common/PPApiContext.php | 0 .../lib/PayPal/Common/PPArrayUtil.php | 0 .../lib/PayPal/Common/PPModel.php | 0 .../lib/PayPal/Common/PPReflectionUtil.php | 0 .../lib/PayPal/Common/PPUserAgent.php | 0 .../lib/PayPal/Core/PPAPIService.php | 0 .../lib/PayPal/Core/PPBaseService.php | 0 .../lib/PayPal/Core/PPConfigManager.php | 0 .../lib/PayPal/Core/PPConnectionManager.php | 0 .../lib/PayPal/Core/PPConstants.php | 0 .../lib/PayPal/Core/PPCredentialManager.php | 0 .../lib/PayPal/Core/PPHttpConfig.php | 0 .../lib/PayPal/Core/PPHttpConnection.php | 0 .../lib/PayPal/Core/PPLoggingManager.php | 0 .../lib/PayPal/Core/PPMessage.php | 0 .../lib/PayPal/Core/PPRequest.php | 0 .../sdk-core-php/lib/PayPal/Core/PPUtils.php | 0 .../lib/PayPal/Core/PPXmlMessage.php | 0 .../sdk-core-php/lib/PayPal/Core/cacert.pem | 0 .../lib/PayPal/Exception/OAuthException.php | 0 .../Exception/PPConfigurationException.php | 0 .../Exception/PPConnectionException.php | 0 .../PPInvalidCredentialException.php | 0 .../PPMissingCredentialException.php | 0 .../Exception/PPTransformerException.php | 0 .../lib/PayPal/Formatter/FormatterFactory.php | 0 .../lib/PayPal/Formatter/IPPFormatter.php | 0 .../lib/PayPal/Formatter/PPNVPFormatter.php | 0 .../lib/PayPal/Formatter/PPSOAPFormatter.php | 0 .../lib/PayPal/Handler/IPPHandler.php | 0 .../Handler/PPAuthenticationHandler.php | 0 .../Handler/PPCertificateAuthHandler.php | 0 .../Handler/PPGenericServiceHandler.php | 0 .../Handler/PPMerchantServiceHandler.php | 0 .../lib/PayPal/Handler/PPOpenIdHandler.php | 0 .../Handler/PPPlatformServiceHandler.php | 0 .../PayPal/Handler/PPSignatureAuthHandler.php | 0 .../lib/PayPal/IPN/PPIPNMessage.php | 0 .../lib/PayPal/Transport/PPRestCall.php | 0 .../tests/Openid/PPOpenIdAddressTest.php | 0 .../tests/Openid/PPOpenIdSessionTest.php | 0 .../tests/Openid/PPOpenIdTokeninfoTest.php | 0 .../tests/Openid/PPOpenIdUserinfoTest.php | 0 .../sdk-core-php/tests/PPAPIServiceTest.php | 0 .../sdk-core-php/tests/PPBaseServiceTest.php | 0 .../sdk-core-php/tests/PPBootStrap.php | 0 .../tests/PPCertificateCredentialTest.php | 0 .../tests/PPConfigManagerTest.php | 0 .../tests/PPConfigurationExceptionTest.php | 0 .../tests/PPConnectionExceptionTest.php | 0 .../tests/PPConnectionManagerTest.php | 0 .../tests/PPCredentialManagerTest.php | 0 .../sdk-core-php/tests/PPIPNMessageTest.php | 0 .../PPInvalidCredentialExceptionTest.php | 0 .../tests/PPLoggingManagerTest.php | 0 .../sdk-core-php/tests/PPMessageTest.php | 0 .../PPMissingCredentialExceptionTest.php | 0 .../tests/PPSignatureCredentialTest.php | 0 .../sdk-core-php/tests/PPUtilsTest.php | 0 .../sdk-core-php/tests/sdk_config.ini | 0 lib/paymentProcessors/PayPal/Saved/test.php | 131 ++++++++ lib/paymentProcessors/PayPal/test.php | 111 ------- .../paymentProcessorsTest.php | 4 +- 169 files changed, 476 insertions(+), 160 deletions(-) create mode 100644 lib/paymentProcessors/PayPal/READ_ME_FIRST rename lib/paymentProcessors/PayPal/{ => Saved}/assets/x-click-but6.gif (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paymentGateway.php (89%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/.coveralls.yml (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/.gitignore (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/.travis.yml (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/CHANGELOG.md (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/LICENSE.txt (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/README.md (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/build.xml (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/composer.json (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/Address.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/Amount.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/Authorization.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/Capture.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/CreditCard.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/CreditCardHistory.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/CreditCardToken.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/Details.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/FundingInstrument.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/HyperSchema.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/Item.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/ItemList.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/Links.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/Payee.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/Payer.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/PayerInfo.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/Payment.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/PaymentExecution.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/PaymentHistory.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/RedirectUrls.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/Refund.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/RelatedResources.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/Sale.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/ShippingAddress.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/Transaction.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/Transactions.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Auth/OAuthTokenCredential.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Rest/ApiContext.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Rest/IResource.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Rest/RestHandler.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/phpunit.xml (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/AddressTest.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/AmountTest.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/AuthorizationTest.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/CaptureTest.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/CreditCardHistoryTest.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/CreditCardTest.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/CreditCardTokenTest.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/DetailsTest.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/FundingInstrumentTest.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/ItemListTest.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/ItemTest.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/LinksTest.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/PayeeTest.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/PayerInfoTest.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/PayerTest.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/PaymentHistoryTest.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/PaymentTest.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/RefundTest.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/RelatedResourcesTest.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/SaleTest.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/ShippingAddressTest.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/TransactionTest.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Auth/OAuthTokenCredentialTest.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Common/ArrayClass.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Common/ArrayUtilTest.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Common/ChildClass.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Common/ModelTest.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Common/NestedClass.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Common/SimpleClass.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Common/UserAgentTest.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Constants.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Rest/CallTest.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/bootstrap.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/sdk_config.ini (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/sdk-core-php/.gitignore (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/sdk-core-php/CHANGELOG.md (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/sdk-core-php/LICENSE.txt (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/sdk-core-php/README.md (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/sdk-core-php/build.xml (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/sdk-core-php/composer.json (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/IPPCredential.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/IPPThirdPartyAuthorization.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/Oauth/AuthSignature.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/Oauth/MockOAuthDataStore.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/Oauth/OAuthConsumer.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/Oauth/OAuthDataStore.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/Oauth/OAuthRequest.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/Oauth/OAuthServer.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/Oauth/OAuthSignatureMethod.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/Oauth/OAuthSignatureMethodHmacSha1.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/Oauth/OAuthSignatureMethodPLAINTEXT.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/Oauth/OAuthSignatureMethodRsaSha1.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/Oauth/OAuthToken.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/Oauth/OAuthUtil.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/Openid/PPOpenIdAddress.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/Openid/PPOpenIdError.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/Openid/PPOpenIdSession.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/Openid/PPOpenIdTokeninfo.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/Openid/PPOpenIdUserinfo.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/PPCertificateCredential.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/PPSignatureCredential.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/PPSubjectAuthorization.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/PPTokenAuthorization.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Common/PPApiContext.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Common/PPArrayUtil.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Common/PPModel.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Common/PPReflectionUtil.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Common/PPUserAgent.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Core/PPAPIService.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Core/PPBaseService.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Core/PPConfigManager.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Core/PPConnectionManager.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Core/PPConstants.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Core/PPCredentialManager.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Core/PPHttpConfig.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Core/PPHttpConnection.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Core/PPLoggingManager.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Core/PPMessage.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Core/PPRequest.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Core/PPUtils.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Core/PPXmlMessage.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Core/cacert.pem (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Exception/OAuthException.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Exception/PPConfigurationException.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Exception/PPConnectionException.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Exception/PPInvalidCredentialException.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Exception/PPMissingCredentialException.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Exception/PPTransformerException.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Formatter/FormatterFactory.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Formatter/IPPFormatter.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Formatter/PPNVPFormatter.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Formatter/PPSOAPFormatter.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Handler/IPPHandler.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Handler/PPAuthenticationHandler.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Handler/PPCertificateAuthHandler.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Handler/PPGenericServiceHandler.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Handler/PPMerchantServiceHandler.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Handler/PPOpenIdHandler.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Handler/PPPlatformServiceHandler.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Handler/PPSignatureAuthHandler.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/IPN/PPIPNMessage.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Transport/PPRestCall.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/Openid/PPOpenIdAddressTest.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/Openid/PPOpenIdSessionTest.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/Openid/PPOpenIdTokeninfoTest.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/Openid/PPOpenIdUserinfoTest.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/PPAPIServiceTest.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/PPBaseServiceTest.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/PPBootStrap.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/PPCertificateCredentialTest.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/PPConfigManagerTest.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/PPConfigurationExceptionTest.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/PPConnectionExceptionTest.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/PPConnectionManagerTest.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/PPCredentialManagerTest.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/PPIPNMessageTest.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/PPInvalidCredentialExceptionTest.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/PPLoggingManagerTest.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/PPMessageTest.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/PPMissingCredentialExceptionTest.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/PPSignatureCredentialTest.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/PPUtilsTest.php (100%) rename lib/paymentProcessors/PayPal/{ => Saved}/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/sdk_config.ini (100%) create mode 100755 lib/paymentProcessors/PayPal/Saved/test.php delete mode 100755 lib/paymentProcessors/PayPal/test.php diff --git a/config/plugin.ini b/config/plugin.ini index 98ff8050..2b8b1ddf 100644 --- a/config/plugin.ini +++ b/config/plugin.ini @@ -194,6 +194,16 @@ credit_card_verify[2] = '^3[47].{13}$' credit_card_verify[3] = '^6011.{12}$' credit_card_verify[4] = '^30[0-5].{11}$|^3[68].{12}$' +; +; PayPal Test Codes +; +paypal_test_mode[0] = 'Live Production' +paypal_test_mode[3] = 'PayPal Sandbox Test' + +paypal_test_mode_numb['Production'] = 0 +paypal_test_mode_numb['Sandbox'] = 3 + + ; Days of the week - numbers are an exponent of 2 that represent the bit position day[0] = 'Sunday' day[1] = 'Monday' diff --git a/lib/paymentProcessors/PayPal/READ_ME_FIRST b/lib/paymentProcessors/PayPal/READ_ME_FIRST new file mode 100644 index 00000000..fd32b0a1 --- /dev/null +++ b/lib/paymentProcessors/PayPal/READ_ME_FIRST @@ -0,0 +1,293 @@ +PayPal Payment Processing +------------------------- + +****************************************** NOTE ******************************************* + + Code in the "Saved" directory should not be used without complete review. + +The integration approach below uses the PayPal "Client-side REST Integration" that does not +require this code. It may not be as flexible but seems to do the job quite well. + +******************************************************************************************* + + +Client-side REST Integration Overview +------------------------------------- + +The approach used in the example below is... + + * If PayPal is selected for Payment, change the checkout button to "Pay with PayPal". + * When the "Pay with PayPal" checkout button is clicked, the browser does it's normal checks for required fields and blocks submission if needed. + * If submission proceeds, display a modal dialog box with an offical "Pay with PayPal" button generated by the loaded PayPal script. + * If the user cancels or there is a PayPal payment error, the checkout process is aborted. + * When there's a successful PayPal Payment + - The PayPal dialog box is closed + - Confirmation Information returned from PayPal is inserted into hidden input fields + - An actual form submit is forced. + * The checkout processing code reads the PayPal confirmation information from the hidden fields and completes checkout. + +The idea here is to only show the actual PayPal payment button after all required fields are completed, then when a successful PayPal payment is made +to immediately submit the page. This limits the chance that a payment may be submitted without completing checkout. If the subsequent checkout code +is unable to complete the checkout, it can flag that the payment has already been made and handle that accordingly when redisplaying the checkout page. + +Also note that if an "invoice_number" is supplied in the PayPal "transactions" data, PayPal will only accept payment once for each invoice number. + + +Integration Specifics +--------------------- + +* If no sandbox merchant account or payment account, create those now. + + https://developer.paypal.com/webapps/developer/ + +* Setup storage and management of "Client ID" and "Secret" for both Sandbox and Production accounts and selection of environment (Sandbox or Production) + +* Add PayPal as a payment option to your Add-On + +* Checkout Page View File + + * Make PayPal Cliend ID and Secret for both Sandbox and Production and environment selection available to view. + + * Add loading of the required PayPal script and dialog box to the checkout page view like the code below. Note the additional code to display user messages. + + +
+
+
+
+
+ NOTE: Your {$terms.reg_term_registration_plur} are not complete until you accept the PayPal payment and see the checkout summary page! +
+
+
+
+ + * Add normal and PayPal checkout buttons to page like the code below. Note that the PayPal button is hidden and normal button is not (use appropriate class for this). + If only using PayPal then only include that button not hidden. + + + + + * Add jQuery code to manage selection of payment methods (if using more than one payment method). The code below manages which checkout button should be displayed. + The "Show the selected pay method inputs..." section is to show or hide additional fields for a payment method (i.e. Credit Card input fields). + + // When payment method selection changes + $('.payMethodSelector').on('change', function() { + + // Get the value from the selected Payment Method + payMethodNumb = $(this).val(); + payMethodSelection(payMethodNumb); + + }); + function payMethodSelection(payMethodNumb) { + + // Hide all pay method inputs and dissable them all + $('.payMethodSelection').addClass('glm-hidden'); + $('.payMethodInput').attr('disabled', true); + + // Show the selected pay method inputs and enable just those + $('.payMethod_' + payMethodNumb).removeClass('glm-hidden'); + $('.payMethodInput_' + payMethodNumb).removeAttr('disabled'); + + // Set which button is displayed + if (payMethodNumb == {$payMethodsNumb.PayPal}) { + $('#regSubmitButton').addClass('glm-hidden'); + $('#payPalPayButton').removeClass('glm-hidden'); + } else { + $('#regSubmitButton').removeClass('glm-hidden'); + $('#payPalPayButton').addClass('glm-hidden'); + } + + } + + * Add jQuery code to instatiate a dialog box for the actual "Pay with PayPal" button. + + $( document ).ready(function() { + + // Dialog box to show a PayPal payment button + $( "#payPalPaymentDialog" ).dialog({ + autoOpen: false, + width: 600, + modal: true, + 'buttons': { + 'I don\'t wish to pay with PayPal': function(event) { + $(this).dialog("close"); + } + } + }); + + } + + * Add code to control page submission. The "payPalSubmitOK" variable is used to determine if this is an original submission request or completion of a succesful PayPal Payment. + If the "payPalPayButton" checkout button is checked to see if it's hidden to determine if PayPal is being used. Note that the ".css()" code was required to clean up display + of the official "Pay with PayPal" button inside the dialog box. Without that there was a problem with width of the button container. + + // Dissable checkout button when first clicked to prevent multiple attempts + var payPalSubmitOK = false; + $("#checkoutForm").submit(function(e){ + + // Check if this is a PayPal payment request + if (!$('#payPalPayButton').attr('disabled')) { + + // Check if this is a re-submit by our PayPal payment code below + if (payPalSubmitOK) { + return true; + } + + // Display our PayPal payment dialog box and fix some CSS + $( "#payPalPaymentDialog" ).dialog("open"); + $( "#payPalPaymentDialog" ).css({ + "width": "100%" + }); + + // Display the Pay by PayPal button in our dialog box + displayPayPalButton(); + + // Don't actually do a submit yet + return false; + } + + // If something else is preventing submission, stop here. Helpful when using custom fields. + if (e.isDefaultPrevented()) { + return false; + } + + // Dissable the checkout button and replace button text + $('#regSubmitButton').attr('disabled', true); + $('#regSubmitButton').val('Processing ... please Wait!'); + + }); + + * Add jQuery code to display and activate the PayPal button and handle submission, cancelation, or errors. The "payPalButtonGenerated" variable is used to detect + if the button has already been displayed to avoid multiple buttons. Update parameters for Payer Info, Transaction data including items list, and fields added + to the submission as needed. Note that when "onAuthorize" is triggered that data from PayPal is passed using added hidden fields. + + // When the checkout button is clicked and a PayPal payment is requested, this code is called to create a PayPal button inside of the dialog box + var payPalButtonGenerated = false; + function displayPayPalButton() { + + if (payPalButtonGenerated) { + return; + } + payPalButtonGenerated = true; + + + // PayPal button actions + paypal.Button.render({ + + // Set your environment + + {if $payPalMode} + env: 'sandbox', + {else} + env: 'production', + {/if} + + // Specify the style of the button + style: { + label: 'pay', + size: 'large', // small | medium | large | responsive + shape: 'rect', // pill | rect + color: 'blue' // gold | blue | silver | black + }, + + // Create a PayPal app: https://developer.paypal.com/developer/applications/create + client: { + sandbox: '{$payPalClientId}', + production: '{$payPalClientId}' + }, + + // Wait for the PayPal button to be clicked + payment: function(data, actions) { + return actions.payment.create({ + invoice_number: '{$cartId}', + payment: { + payer: { + payer_info: { + first_name: '{$cart.request.bill_fname}', + last_name: '{$cart.request.bill_lname}', + email: '{$cart.request.bill_email}' + } + }, + transactions: [ + { + description: '{$settings.reg_org_name} {$reg.term.registration_plur_cap}', + invoice_number: '{$cartId}', + amount: { + total: '{$cart.grandTotal}', + currency: 'USD' + }, + item_list: { + items: [ + {foreach $cart.chargeItems as $item} + { + name: '{$item.name}', + quantity: {$item.quantity}, + price: {$item.price}, + currency: 'USD' + }, + {/foreach} + ] + } + } + ] + } + }); + }, + + onCancel: function(data, actions) { + $('#payPalPaymentWarningMessage').html('---Some message to display in the dialog box if the user cancels---'); + }, + + onError: function(err) { + $('#payPalPaymentWarningMessage').html('---Some message to display in the dialog box if there is a PayPal error.---'); + }, + + // Wait for the payment to be authorized by the customer + onAuthorize: function(data, actions) { + return actions.payment.execute().then(function(data) { + + var sale = data.transactions[0].related_resources[0].sale; + + // Notify submit code above that it's OK to checkout + payPalSubmitOK = true; + + $( "#payPalPaymentDialog" ).dialog("close"); + + // Add PayPal payment details to form + $("#checkoutForm").append( + '' + +'' + +'' + ); + // Now try to submit the form again + $("#checkoutForm").submit(); + }); + } + + }, '#paypal-button-container'); + + } + + * Add code to the checkout processing model to determine if there was a PayPal submission and to store that information as desired + + + // Check for valid PayPal payment + $payPalPaymentID = filter_input(INPUT_POST, 'payPalPaymentID', FILTER_SANITIZE_STRING); + $payPalPaymentTime = filter_input(INPUT_POST, 'payPalPaymentTime', FILTER_SANITIZE_STRING); + $payPalPaymentState = filter_input(INPUT_POST, 'payPalPaymentState', FILTER_SANITIZE_STRING); + + // If we don't have a valid payment, add to messages array + if (!$payPalPaymentID || !$payPalPaymentTime || !$payPalPaymentState || $payPalPaymentState != "completed") { + $messages[] = 'Sorry, we were unable to determine the status of your PayPal payment. Please check your PayPal account to see if the amount has been paid and if so, call us for assitance.'; + } else { + + // We have a valid payment so set some status flag saying so + $cartStatus = $this->config['submission_status_numb']['COMPLETE']; + + // Store PayPal confirmation information in the CreditCard related fields. + (***Place code to store PayPal confirmation data here***) + + } + + \ No newline at end of file diff --git a/lib/paymentProcessors/PayPal/assets/x-click-but6.gif b/lib/paymentProcessors/PayPal/Saved/assets/x-click-but6.gif similarity index 100% rename from lib/paymentProcessors/PayPal/assets/x-click-but6.gif rename to lib/paymentProcessors/PayPal/Saved/assets/x-click-but6.gif diff --git a/lib/paymentProcessors/PayPal/paymentGateway.php b/lib/paymentProcessors/PayPal/Saved/paymentGateway.php similarity index 89% rename from lib/paymentProcessors/PayPal/paymentGateway.php rename to lib/paymentProcessors/PayPal/Saved/paymentGateway.php index 73a04ad2..8ae55c57 100755 --- a/lib/paymentProcessors/PayPal/paymentGateway.php +++ b/lib/paymentProcessors/PayPal/Saved/paymentGateway.php @@ -104,6 +104,13 @@ class PaymentGateway * @access public */ public $apiURLs = false; + /** + * Response Object + * + * @var $response + * @access public + */ + public $response = false; /** * Constructor @@ -359,46 +366,24 @@ class PaymentGateway ) ); - // Add item list - if (isset($payment['items']) && count($payment['items']) > 0) { - - foreach ($payment['items'] as $item) { - - $item['name'] = trim($item['name']); - $item['currency'] = 'USD'; - $item['price'] = number_format($item['price'], 2, '.', ''); - - // Check required items - if ( - ($item['quantity']-0) <= 0 || - $item['name'] == '' || - ($item['price']-0) <= 0 - ) { - - if (defined('PAYPAL_DEBUG') && PAYPAL_DEBUG) { - echo "

ERROR: payment item incomplete

".print_r($item,1)."
"; - } - - // Can't proceed, bad data supplied - May need to warn someone of this problem here - $this->trans = false; - $this->status = false; - return; - - } - - // Add this item to the list - $requestArray['transactions'][0]['item_list']['items'][] = $item; + // If there's no item list supplied + if (!isset($payment['items']) || count($payment['items']) <= 0) { + $this->trans = false; + $this->status = false; + $this->error = "PayPal integration requires an item list but none was provided along with the payment information to the processPayment() method."; + return; + } - } + foreach ($payment['items'] as $item) { - // If not, then we can't proceed - While not required by PayPal, we are requiring it - } else { + $item['name'] = trim($item['name']); + $item['currency'] = 'USD'; + $item['price'] = number_format($item['price'], 2, '.', ''); - echo "ERROR: PayPal integration requires an item list but none was provided along with " - ."the payment information to the processPayment() method."; - exit; + // Add this item to the list + $requestArray['transactions'][0]['item_list']['items'][] = $item; - } + } // Convert request to a JSON $request = json_encode($requestArray, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES); @@ -418,10 +403,18 @@ class PaymentGateway if (!$response) { $this->trans = false; $this->status = false; + $this->error = "Empty response from PayPal!"; return; } - // Store URLs in a way they can be easily accessed + // Check for error response from PayPal + if (!isset($response->state)) { + $this->status = false; + $this->trans = $response; + return; + } + + // Get URLs to use when communicating with PayPal $response->urls = new stdClass(); foreach ($response->links as $link) { $response->urls->{$link->rel} = $link; @@ -431,8 +424,7 @@ class PaymentGateway $this->trans = $response; $this->status = true; - - return $this->status; + return; } @@ -470,10 +462,10 @@ class PaymentGateway ); // Build payment request - $charge = number_format($payment['charge'], 2, '.', ''); $request = '{"payer_id" : "'.$payerID.'" }'; - if (defined('PAYPAL_DEBUG') && PAYPAL_DEBUG) { + if (defined('PAYPAL_DEBUG') && PAYPAL_DEBUG) {// Execute the PayPal payment + $r = $PayPal->executePayment($_SESSION['payerID']); echo 'executePayment()

' .'Headers:
' .'

'.print_r($headers,1)."
" @@ -497,6 +489,7 @@ class PaymentGateway // Check if payment not approved if ($response->state != 'approved') { $this->status = false; + $this->trans = $response; return false; } @@ -505,11 +498,11 @@ class PaymentGateway 'statusText' => 'Approved', 'authCode' => '', 'description' => 'PayPal approval: ' - .$this->response->payer->payer_info->first_name.' ' - .$this->response->payer->payer_info->last_name.' ' - .$this->response->update_time, - 'payerName' => $this->response->payer->payer_info->first_name.' ' - .$this->response->payer->payer_info->last_name.' ' + .$response->payer->payer_info->first_name.' ' + .$response->payer->payer_info->last_name.' ', +// .$response->update_time, + 'payerName' => $response->payer->payer_info->first_name.' ' + .$response->payer->payer_info->last_name.' ' ); @@ -543,7 +536,7 @@ class PaymentGateway // Set curl options curl_setopt($this->curl, CURLOPT_URL, $url); - curl_setopt($this->curl, CURLOPT_SSLVERSION,4); + curl_setopt($this->curl, CURLOPT_SSLVERSION,6); curl_setopt($this->curl, CURLOPT_SSL_VERIFYPEER, FALSE); curl_setopt($this->curl, CURLOPT_SSL_VERIFYHOST, 2); curl_setopt($this->curl, CURLOPT_HEADER, false); diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/.coveralls.yml b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/.coveralls.yml similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/.coveralls.yml rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/.coveralls.yml diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/.gitignore b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/.gitignore similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/.gitignore rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/.gitignore diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/.travis.yml b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/.travis.yml similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/.travis.yml rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/.travis.yml diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/CHANGELOG.md b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/CHANGELOG.md similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/CHANGELOG.md rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/CHANGELOG.md diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/LICENSE.txt b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/LICENSE.txt similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/LICENSE.txt rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/LICENSE.txt diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/README.md b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/README.md similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/README.md rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/README.md diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/build.xml b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/build.xml similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/build.xml rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/build.xml diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/composer.json b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/composer.json similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/composer.json rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/composer.json diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/Address.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/Address.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/Address.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/Address.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/Amount.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/Amount.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/Amount.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/Amount.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/Authorization.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/Authorization.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/Authorization.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/Authorization.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/Capture.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/Capture.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/Capture.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/Capture.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/CreditCard.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/CreditCard.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/CreditCard.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/CreditCard.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/CreditCardHistory.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/CreditCardHistory.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/CreditCardHistory.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/CreditCardHistory.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/CreditCardToken.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/CreditCardToken.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/CreditCardToken.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/CreditCardToken.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/Details.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/Details.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/Details.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/Details.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/FundingInstrument.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/FundingInstrument.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/FundingInstrument.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/FundingInstrument.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/HyperSchema.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/HyperSchema.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/HyperSchema.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/HyperSchema.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/Item.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/Item.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/Item.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/Item.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/ItemList.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/ItemList.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/ItemList.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/ItemList.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/Links.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/Links.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/Links.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/Links.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/Payee.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/Payee.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/Payee.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/Payee.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/Payer.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/Payer.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/Payer.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/Payer.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/PayerInfo.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/PayerInfo.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/PayerInfo.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/PayerInfo.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/Payment.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/Payment.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/Payment.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/Payment.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/PaymentExecution.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/PaymentExecution.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/PaymentExecution.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/PaymentExecution.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/PaymentHistory.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/PaymentHistory.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/PaymentHistory.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/PaymentHistory.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/RedirectUrls.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/RedirectUrls.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/RedirectUrls.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/RedirectUrls.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/Refund.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/Refund.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/Refund.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/Refund.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/RelatedResources.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/RelatedResources.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/RelatedResources.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/RelatedResources.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/Sale.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/Sale.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/Sale.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/Sale.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/ShippingAddress.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/ShippingAddress.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/ShippingAddress.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/ShippingAddress.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/Transaction.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/Transaction.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/Transaction.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/Transaction.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/Transactions.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/Transactions.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/Transactions.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Api/Transactions.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Auth/OAuthTokenCredential.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Auth/OAuthTokenCredential.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Auth/OAuthTokenCredential.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Auth/OAuthTokenCredential.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Rest/ApiContext.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Rest/ApiContext.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Rest/ApiContext.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Rest/ApiContext.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Rest/IResource.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Rest/IResource.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Rest/IResource.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Rest/IResource.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Rest/RestHandler.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Rest/RestHandler.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Rest/RestHandler.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/lib/PayPal/Rest/RestHandler.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/phpunit.xml b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/phpunit.xml similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/phpunit.xml rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/phpunit.xml diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/AddressTest.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/AddressTest.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/AddressTest.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/AddressTest.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/AmountTest.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/AmountTest.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/AmountTest.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/AmountTest.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/AuthorizationTest.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/AuthorizationTest.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/AuthorizationTest.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/AuthorizationTest.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/CaptureTest.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/CaptureTest.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/CaptureTest.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/CaptureTest.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/CreditCardHistoryTest.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/CreditCardHistoryTest.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/CreditCardHistoryTest.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/CreditCardHistoryTest.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/CreditCardTest.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/CreditCardTest.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/CreditCardTest.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/CreditCardTest.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/CreditCardTokenTest.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/CreditCardTokenTest.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/CreditCardTokenTest.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/CreditCardTokenTest.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/DetailsTest.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/DetailsTest.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/DetailsTest.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/DetailsTest.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/FundingInstrumentTest.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/FundingInstrumentTest.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/FundingInstrumentTest.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/FundingInstrumentTest.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/ItemListTest.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/ItemListTest.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/ItemListTest.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/ItemListTest.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/ItemTest.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/ItemTest.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/ItemTest.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/ItemTest.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/LinksTest.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/LinksTest.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/LinksTest.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/LinksTest.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/PayeeTest.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/PayeeTest.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/PayeeTest.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/PayeeTest.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/PayerInfoTest.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/PayerInfoTest.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/PayerInfoTest.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/PayerInfoTest.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/PayerTest.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/PayerTest.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/PayerTest.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/PayerTest.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/PaymentHistoryTest.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/PaymentHistoryTest.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/PaymentHistoryTest.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/PaymentHistoryTest.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/PaymentTest.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/PaymentTest.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/PaymentTest.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/PaymentTest.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/RefundTest.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/RefundTest.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/RefundTest.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/RefundTest.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/RelatedResourcesTest.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/RelatedResourcesTest.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/RelatedResourcesTest.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/RelatedResourcesTest.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/SaleTest.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/SaleTest.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/SaleTest.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/SaleTest.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/ShippingAddressTest.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/ShippingAddressTest.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/ShippingAddressTest.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/ShippingAddressTest.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/TransactionTest.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/TransactionTest.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/TransactionTest.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Api/TransactionTest.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Auth/OAuthTokenCredentialTest.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Auth/OAuthTokenCredentialTest.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Auth/OAuthTokenCredentialTest.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Auth/OAuthTokenCredentialTest.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Common/ArrayClass.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Common/ArrayClass.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Common/ArrayClass.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Common/ArrayClass.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Common/ArrayUtilTest.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Common/ArrayUtilTest.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Common/ArrayUtilTest.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Common/ArrayUtilTest.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Common/ChildClass.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Common/ChildClass.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Common/ChildClass.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Common/ChildClass.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Common/ModelTest.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Common/ModelTest.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Common/ModelTest.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Common/ModelTest.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Common/NestedClass.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Common/NestedClass.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Common/NestedClass.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Common/NestedClass.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Common/SimpleClass.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Common/SimpleClass.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Common/SimpleClass.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Common/SimpleClass.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Common/UserAgentTest.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Common/UserAgentTest.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Common/UserAgentTest.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Common/UserAgentTest.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Constants.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Constants.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Constants.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Constants.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Rest/CallTest.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Rest/CallTest.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Rest/CallTest.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/PayPal/Test/Rest/CallTest.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/bootstrap.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/bootstrap.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/bootstrap.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/bootstrap.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/sdk_config.ini b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/sdk_config.ini similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/sdk_config.ini rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/rest-api-sdk-php/tests/sdk_config.ini diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/.gitignore b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/.gitignore similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/.gitignore rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/.gitignore diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/CHANGELOG.md b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/CHANGELOG.md similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/CHANGELOG.md rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/CHANGELOG.md diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/LICENSE.txt b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/LICENSE.txt similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/LICENSE.txt rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/LICENSE.txt diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/README.md b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/README.md similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/README.md rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/README.md diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/build.xml b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/build.xml similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/build.xml rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/build.xml diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/composer.json b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/composer.json similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/composer.json rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/composer.json diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/IPPCredential.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/IPPCredential.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/IPPCredential.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/IPPCredential.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/IPPThirdPartyAuthorization.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/IPPThirdPartyAuthorization.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/IPPThirdPartyAuthorization.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/IPPThirdPartyAuthorization.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/Oauth/AuthSignature.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/Oauth/AuthSignature.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/Oauth/AuthSignature.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/Oauth/AuthSignature.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/Oauth/MockOAuthDataStore.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/Oauth/MockOAuthDataStore.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/Oauth/MockOAuthDataStore.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/Oauth/MockOAuthDataStore.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/Oauth/OAuthConsumer.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/Oauth/OAuthConsumer.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/Oauth/OAuthConsumer.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/Oauth/OAuthConsumer.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/Oauth/OAuthDataStore.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/Oauth/OAuthDataStore.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/Oauth/OAuthDataStore.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/Oauth/OAuthDataStore.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/Oauth/OAuthRequest.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/Oauth/OAuthRequest.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/Oauth/OAuthRequest.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/Oauth/OAuthRequest.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/Oauth/OAuthServer.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/Oauth/OAuthServer.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/Oauth/OAuthServer.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/Oauth/OAuthServer.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/Oauth/OAuthSignatureMethod.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/Oauth/OAuthSignatureMethod.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/Oauth/OAuthSignatureMethod.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/Oauth/OAuthSignatureMethod.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/Oauth/OAuthSignatureMethodHmacSha1.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/Oauth/OAuthSignatureMethodHmacSha1.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/Oauth/OAuthSignatureMethodHmacSha1.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/Oauth/OAuthSignatureMethodHmacSha1.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/Oauth/OAuthSignatureMethodPLAINTEXT.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/Oauth/OAuthSignatureMethodPLAINTEXT.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/Oauth/OAuthSignatureMethodPLAINTEXT.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/Oauth/OAuthSignatureMethodPLAINTEXT.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/Oauth/OAuthSignatureMethodRsaSha1.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/Oauth/OAuthSignatureMethodRsaSha1.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/Oauth/OAuthSignatureMethodRsaSha1.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/Oauth/OAuthSignatureMethodRsaSha1.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/Oauth/OAuthToken.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/Oauth/OAuthToken.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/Oauth/OAuthToken.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/Oauth/OAuthToken.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/Oauth/OAuthUtil.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/Oauth/OAuthUtil.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/Oauth/OAuthUtil.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/Oauth/OAuthUtil.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/Openid/PPOpenIdAddress.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/Openid/PPOpenIdAddress.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/Openid/PPOpenIdAddress.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/Openid/PPOpenIdAddress.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/Openid/PPOpenIdError.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/Openid/PPOpenIdError.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/Openid/PPOpenIdError.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/Openid/PPOpenIdError.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/Openid/PPOpenIdSession.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/Openid/PPOpenIdSession.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/Openid/PPOpenIdSession.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/Openid/PPOpenIdSession.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/Openid/PPOpenIdTokeninfo.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/Openid/PPOpenIdTokeninfo.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/Openid/PPOpenIdTokeninfo.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/Openid/PPOpenIdTokeninfo.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/Openid/PPOpenIdUserinfo.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/Openid/PPOpenIdUserinfo.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/Openid/PPOpenIdUserinfo.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/Openid/PPOpenIdUserinfo.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/PPCertificateCredential.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/PPCertificateCredential.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/PPCertificateCredential.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/PPCertificateCredential.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/PPSignatureCredential.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/PPSignatureCredential.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/PPSignatureCredential.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/PPSignatureCredential.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/PPSubjectAuthorization.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/PPSubjectAuthorization.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/PPSubjectAuthorization.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/PPSubjectAuthorization.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/PPTokenAuthorization.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/PPTokenAuthorization.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/PPTokenAuthorization.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Auth/PPTokenAuthorization.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Common/PPApiContext.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Common/PPApiContext.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Common/PPApiContext.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Common/PPApiContext.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Common/PPArrayUtil.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Common/PPArrayUtil.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Common/PPArrayUtil.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Common/PPArrayUtil.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Common/PPModel.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Common/PPModel.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Common/PPModel.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Common/PPModel.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Common/PPReflectionUtil.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Common/PPReflectionUtil.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Common/PPReflectionUtil.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Common/PPReflectionUtil.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Common/PPUserAgent.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Common/PPUserAgent.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Common/PPUserAgent.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Common/PPUserAgent.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Core/PPAPIService.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Core/PPAPIService.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Core/PPAPIService.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Core/PPAPIService.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Core/PPBaseService.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Core/PPBaseService.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Core/PPBaseService.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Core/PPBaseService.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Core/PPConfigManager.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Core/PPConfigManager.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Core/PPConfigManager.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Core/PPConfigManager.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Core/PPConnectionManager.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Core/PPConnectionManager.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Core/PPConnectionManager.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Core/PPConnectionManager.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Core/PPConstants.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Core/PPConstants.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Core/PPConstants.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Core/PPConstants.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Core/PPCredentialManager.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Core/PPCredentialManager.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Core/PPCredentialManager.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Core/PPCredentialManager.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Core/PPHttpConfig.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Core/PPHttpConfig.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Core/PPHttpConfig.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Core/PPHttpConfig.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Core/PPHttpConnection.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Core/PPHttpConnection.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Core/PPHttpConnection.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Core/PPHttpConnection.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Core/PPLoggingManager.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Core/PPLoggingManager.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Core/PPLoggingManager.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Core/PPLoggingManager.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Core/PPMessage.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Core/PPMessage.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Core/PPMessage.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Core/PPMessage.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Core/PPRequest.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Core/PPRequest.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Core/PPRequest.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Core/PPRequest.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Core/PPUtils.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Core/PPUtils.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Core/PPUtils.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Core/PPUtils.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Core/PPXmlMessage.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Core/PPXmlMessage.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Core/PPXmlMessage.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Core/PPXmlMessage.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Core/cacert.pem b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Core/cacert.pem similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Core/cacert.pem rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Core/cacert.pem diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Exception/OAuthException.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Exception/OAuthException.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Exception/OAuthException.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Exception/OAuthException.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Exception/PPConfigurationException.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Exception/PPConfigurationException.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Exception/PPConfigurationException.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Exception/PPConfigurationException.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Exception/PPConnectionException.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Exception/PPConnectionException.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Exception/PPConnectionException.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Exception/PPConnectionException.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Exception/PPInvalidCredentialException.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Exception/PPInvalidCredentialException.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Exception/PPInvalidCredentialException.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Exception/PPInvalidCredentialException.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Exception/PPMissingCredentialException.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Exception/PPMissingCredentialException.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Exception/PPMissingCredentialException.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Exception/PPMissingCredentialException.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Exception/PPTransformerException.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Exception/PPTransformerException.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Exception/PPTransformerException.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Exception/PPTransformerException.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Formatter/FormatterFactory.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Formatter/FormatterFactory.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Formatter/FormatterFactory.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Formatter/FormatterFactory.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Formatter/IPPFormatter.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Formatter/IPPFormatter.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Formatter/IPPFormatter.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Formatter/IPPFormatter.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Formatter/PPNVPFormatter.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Formatter/PPNVPFormatter.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Formatter/PPNVPFormatter.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Formatter/PPNVPFormatter.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Formatter/PPSOAPFormatter.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Formatter/PPSOAPFormatter.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Formatter/PPSOAPFormatter.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Formatter/PPSOAPFormatter.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Handler/IPPHandler.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Handler/IPPHandler.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Handler/IPPHandler.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Handler/IPPHandler.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Handler/PPAuthenticationHandler.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Handler/PPAuthenticationHandler.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Handler/PPAuthenticationHandler.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Handler/PPAuthenticationHandler.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Handler/PPCertificateAuthHandler.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Handler/PPCertificateAuthHandler.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Handler/PPCertificateAuthHandler.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Handler/PPCertificateAuthHandler.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Handler/PPGenericServiceHandler.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Handler/PPGenericServiceHandler.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Handler/PPGenericServiceHandler.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Handler/PPGenericServiceHandler.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Handler/PPMerchantServiceHandler.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Handler/PPMerchantServiceHandler.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Handler/PPMerchantServiceHandler.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Handler/PPMerchantServiceHandler.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Handler/PPOpenIdHandler.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Handler/PPOpenIdHandler.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Handler/PPOpenIdHandler.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Handler/PPOpenIdHandler.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Handler/PPPlatformServiceHandler.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Handler/PPPlatformServiceHandler.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Handler/PPPlatformServiceHandler.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Handler/PPPlatformServiceHandler.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Handler/PPSignatureAuthHandler.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Handler/PPSignatureAuthHandler.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Handler/PPSignatureAuthHandler.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Handler/PPSignatureAuthHandler.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/IPN/PPIPNMessage.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/IPN/PPIPNMessage.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/IPN/PPIPNMessage.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/IPN/PPIPNMessage.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Transport/PPRestCall.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Transport/PPRestCall.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Transport/PPRestCall.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/lib/PayPal/Transport/PPRestCall.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/Openid/PPOpenIdAddressTest.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/Openid/PPOpenIdAddressTest.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/Openid/PPOpenIdAddressTest.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/Openid/PPOpenIdAddressTest.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/Openid/PPOpenIdSessionTest.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/Openid/PPOpenIdSessionTest.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/Openid/PPOpenIdSessionTest.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/Openid/PPOpenIdSessionTest.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/Openid/PPOpenIdTokeninfoTest.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/Openid/PPOpenIdTokeninfoTest.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/Openid/PPOpenIdTokeninfoTest.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/Openid/PPOpenIdTokeninfoTest.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/Openid/PPOpenIdUserinfoTest.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/Openid/PPOpenIdUserinfoTest.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/Openid/PPOpenIdUserinfoTest.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/Openid/PPOpenIdUserinfoTest.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/PPAPIServiceTest.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/PPAPIServiceTest.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/PPAPIServiceTest.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/PPAPIServiceTest.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/PPBaseServiceTest.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/PPBaseServiceTest.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/PPBaseServiceTest.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/PPBaseServiceTest.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/PPBootStrap.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/PPBootStrap.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/PPBootStrap.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/PPBootStrap.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/PPCertificateCredentialTest.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/PPCertificateCredentialTest.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/PPCertificateCredentialTest.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/PPCertificateCredentialTest.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/PPConfigManagerTest.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/PPConfigManagerTest.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/PPConfigManagerTest.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/PPConfigManagerTest.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/PPConfigurationExceptionTest.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/PPConfigurationExceptionTest.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/PPConfigurationExceptionTest.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/PPConfigurationExceptionTest.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/PPConnectionExceptionTest.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/PPConnectionExceptionTest.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/PPConnectionExceptionTest.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/PPConnectionExceptionTest.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/PPConnectionManagerTest.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/PPConnectionManagerTest.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/PPConnectionManagerTest.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/PPConnectionManagerTest.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/PPCredentialManagerTest.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/PPCredentialManagerTest.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/PPCredentialManagerTest.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/PPCredentialManagerTest.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/PPIPNMessageTest.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/PPIPNMessageTest.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/PPIPNMessageTest.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/PPIPNMessageTest.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/PPInvalidCredentialExceptionTest.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/PPInvalidCredentialExceptionTest.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/PPInvalidCredentialExceptionTest.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/PPInvalidCredentialExceptionTest.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/PPLoggingManagerTest.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/PPLoggingManagerTest.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/PPLoggingManagerTest.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/PPLoggingManagerTest.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/PPMessageTest.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/PPMessageTest.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/PPMessageTest.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/PPMessageTest.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/PPMissingCredentialExceptionTest.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/PPMissingCredentialExceptionTest.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/PPMissingCredentialExceptionTest.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/PPMissingCredentialExceptionTest.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/PPSignatureCredentialTest.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/PPSignatureCredentialTest.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/PPSignatureCredentialTest.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/PPSignatureCredentialTest.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/PPUtilsTest.php b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/PPUtilsTest.php similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/PPUtilsTest.php rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/PPUtilsTest.php diff --git a/lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/sdk_config.ini b/lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/sdk_config.ini similarity index 100% rename from lib/paymentProcessors/PayPal/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/sdk_config.ini rename to lib/paymentProcessors/PayPal/Saved/paypal-API-Not_sure_if_will_use/sdk-core-php/tests/sdk_config.ini diff --git a/lib/paymentProcessors/PayPal/Saved/test.php b/lib/paymentProcessors/PayPal/Saved/test.php new file mode 100755 index 00000000..7a2aae34 --- /dev/null +++ b/lib/paymentProcessors/PayPal/Saved/test.php @@ -0,0 +1,131 @@ + 'AY2IlhCAFCgTaYSgrGfBQ0h5WKKgpLwU-jd2QkKsEbDpGEWtCDZKtp2VLhu1', + 'secret' => 'EOWLsBDrkvdOKUlfhAKJ47aXHBr5xzw-2o7JdLCcLVciGqNGXlhMayP1WKhe', + 'returnURL' => $thisScript.'?PayPalAction=Approved', + 'cancelURL' => $thisScript.'?PayPalAction=Canceled', + 'test' => 3 +); +$payment = array( + 'name' => 'Gaslight Media 6', + 'charge' => 33.60, + 'invoice' => '123abc6', + 'description' => 'Some Purchase', + 'items' => array( + array( + 'quantity' => '1', + 'name' => 'Items Purchased', + 'price' => 33.60, + 'sku' => '123456' + ) /* , + array( + 'quantity' => '2', + 'name' => 'TuTu Tango', + 'price' => 11.2, + 'sku' => '123ABC2' + ) +*/ + ) +); +$contact = array(); + +// Display return to start link +echo '

Start Over

'; + +// Load the PayPal class file +require_once dirname(__FILE__).'/paymentGateway.php'; + +// Start session +session_start(); + +// Set default action and try to get any requested action +$request = false; +if (isset($_REQUEST) && isset($_REQUEST) && isset($_REQUEST['PayPalAction']) && trim($_REQUEST['PayPalAction']) != '') { + $request = $_REQUEST['PayPalAction']; +} + +// Check for certain actions related to sending user to PayPal site for approval +switch ($request) { + + case 'GetApproval': + + // Use browser redirect 302 to send user to PayPal. + // This is proper way to do so according to the API documentation. + $trans = $_SESSION['trans']; + header('Location: '.$trans->urls->approval_url->href); + exit; + + break; + + case 'Approved': + + echo "Return link followed.

"; + + // Save Payer ID + $_SESSION['payerID'] = $_REQUEST['PayerID']; // NEED TO FILTER THIS FOR PRODUCTION + + // Create PayPal object with existing access object from the session + $PayPal = new PaymentGateway($account, $_SESSION['access'], $_SESSION['trans']); + + // Execute the PayPal payment + $r = $PayPal->executePayment($_SESSION['payerID']); + + echo "

Payment Executed Successfully

".print_r($r,1)."
"; + + exit; + + break; + + case 'Canceled': + + echo "Payment Cancelled

"; + exit; + break; + + default: + + // Create the PayPal object (note no previous access object) + $PayPal = new PaymentGateway($account, false, false); + + // Was there an error? + if (!$PayPal->status) { + echo "Received an error: ".$PayPal->error; + exit; + } + + // Store access information + $_SESSION['access'] = $PayPal->access; + + // Try to enter Payment + $PayPal->processPayment($payment, $contact); + + // Was there an error? + if (!$PayPal->status) { + echo "Received an error: ".$PayPal->error."

"; + + exit; + } + + // Store Transaction data to session + $_SESSION['trans'] = $PayPal->trans; + + // Show user link to PayPal for them to approve payment + // Note that uses a target to create a new window/tab + echo 'Proceed to PayPal'; + + exit; + break; +} + + + +?> \ No newline at end of file diff --git a/lib/paymentProcessors/PayPal/test.php b/lib/paymentProcessors/PayPal/test.php deleted file mode 100755 index dc78ca57..00000000 --- a/lib/paymentProcessors/PayPal/test.php +++ /dev/null @@ -1,111 +0,0 @@ - 'AY2IlhCAFCgTaYSgrGfBQ0h5WKKgpLwU-jd2QkKsEbDpGEWtCDZKtp2VLhu1', - 'secret' => 'EOWLsBDrkvdOKUlfhAKJ47aXHBr5xzw-2o7JdLCcLVciGqNGXlhMayP1WKhe', - 'returnURL' => $thisScript.'?PayPalAction=Approved', - 'cancelURL' => $thisScript.'?PayPalAction=Canceled', - 'test' => 3 -); -$payment = array( - 'name' => 'Gaslight Media', - 'charge' => 22.4, - 'invoice' => '123abc', - 'description' => 'Event Tickets Purchase', - 'items' => array( - array( - 'quantity' => '2', - 'name' => 'Fancy Dancy Dance', - 'price' => 5.6, - 'sku' => '123ABC1' - ), - array( - 'quantity' => '1', - 'name' => 'TuTu Tango', - 'price' => 11.2, - 'sku' => '123ABC2' - ) - ) -); -$contact = array(); - -// Load the PayPal class file -require_once dirname(__FILE__).'/PayPal.php'; - -// Start session -session_start(); - - -// Check for certain actions related to sending user to PayPal site for approval -switch ($_REQUEST['PayPalAction']) { - - case 'GetApproval': - - // Use browser redirect 302 to send user to PayPal. - // This is proper way to do so according to the API documentation. - $trans = $_SESSION['trans']; - header('Location: '.$trans->urls->approval_url->href); - exit; - - break; - - case 'Approved': - - echo "Return link followed.

"; - - // Save Payer ID - $_SESSION['payerID'] = $_REQUEST['PayerID']; // NEED TO FILTER THIS FOR PRODUCTION - - // Create PayPal object with existing access object from the session - $PayPal = new PaymentGateway($account, $_SESSION['access'], $_SESSION['trans']); - - // Execute the PayPal payment - $r = $PayPal->executePayment($_SESSION['payerID']); - - echo "Payment Executed Successfully

"; - - exit; - - break; - - case 'Canceled': - - echo "Payment Cancelled

"; - exit; - - break; -} - -// Create the PayPal object (note no previous access object) -$PayPal = new PaymentGateway($account, false, false); - -// Was there an error? -if (!$PayPal->status) { - echo "Received an error: ".$PayPal->error; - exit; -} - -// Store access information -$_SESSION['access'] = $PayPal->access; - -// Try to enter Payment -$PayPal->processPayment($payment, $contact); - -// Was there an error? -if (!$PayPal->status) { - echo "Received an error: ".$PayPal->error; - exit; -} - -// Store Transaction data to session -$_SESSION['trans'] = $PayPal->trans; - -// Show user link to PayPal for them to approve payment -// Note that uses a target to create a new window/tab -echo 'Proceed to PayPal'; - -?> \ No newline at end of file diff --git a/lib/paymentProcessors/paymentProcessorsTest.php b/lib/paymentProcessors/paymentProcessorsTest.php index d6849a8d..9c50d9d6 100644 --- a/lib/paymentProcessors/paymentProcessorsTest.php +++ b/lib/paymentProcessors/paymentProcessorsTest.php @@ -12,7 +12,7 @@ * TestGood * TestByCardNumber */ -$paymentProcessor = "Authorize.Net"; // Required +$paymentProcessor = "Authorize.net"; // Required /** * Test settings @@ -22,7 +22,7 @@ $paymentProcessor = "Authorize.Net"; // Required * 2 = Always decline * 3 = On-line Transaction Test (SANDBOX) */ -$testMode = 3; // Required +$testMode = 6; // Required /** * Transaction Options -- 2.17.1