├── README.md
├── User_guide_paypal_payment_integration_codeigniter.pdf
└── application
├── config
└── paypal.php
├── controllers
└── Payment.php
├── libraries
└── Paypal.php
├── third_party
└── PayPal-PHP-SDK
│ ├── autoload.php
│ ├── composer
│ ├── ClassLoader.php
│ ├── LICENSE
│ ├── autoload_classmap.php
│ ├── autoload_namespaces.php
│ ├── autoload_psr4.php
│ ├── autoload_real.php
│ ├── autoload_static.php
│ └── installed.json
│ ├── paypal
│ └── rest-api-sdk-php
│ │ ├── .gitattributes
│ │ ├── .github
│ │ └── ISSUE_TEMPLATE.md
│ │ ├── .gitignore
│ │ ├── CHANGELOG.md
│ │ ├── LICENSE
│ │ ├── README.md
│ │ ├── composer.json
│ │ ├── lib
│ │ └── PayPal
│ │ │ ├── Api
│ │ │ ├── Address.php
│ │ │ ├── Agreement.php
│ │ │ ├── AgreementDetails.php
│ │ │ ├── AgreementStateDescriptor.php
│ │ │ ├── AgreementTransaction.php
│ │ │ ├── AgreementTransactions.php
│ │ │ ├── AlternatePayment.php
│ │ │ ├── Amount.php
│ │ │ ├── Authorization.php
│ │ │ ├── BankAccount.php
│ │ │ ├── BankAccountsList.php
│ │ │ ├── BankToken.php
│ │ │ ├── BaseAddress.php
│ │ │ ├── Billing.php
│ │ │ ├── BillingAgreementToken.php
│ │ │ ├── BillingInfo.php
│ │ │ ├── CancelNotification.php
│ │ │ ├── Capture.php
│ │ │ ├── CarrierAccount.php
│ │ │ ├── CarrierAccountToken.php
│ │ │ ├── CartBase.php
│ │ │ ├── ChargeModel.php
│ │ │ ├── Cost.php
│ │ │ ├── CountryCode.php
│ │ │ ├── CreateProfileResponse.php
│ │ │ ├── Credit.php
│ │ │ ├── CreditCard.php
│ │ │ ├── CreditCardHistory.php
│ │ │ ├── CreditCardList.php
│ │ │ ├── CreditCardToken.php
│ │ │ ├── CreditFinancingOffered.php
│ │ │ ├── Currency.php
│ │ │ ├── CurrencyConversion.php
│ │ │ ├── CustomAmount.php
│ │ │ ├── DetailedRefund.php
│ │ │ ├── Details.php
│ │ │ ├── Error.php
│ │ │ ├── ErrorDetails.php
│ │ │ ├── ExtendedBankAccount.php
│ │ │ ├── ExternalFunding.php
│ │ │ ├── FileAttachment.php
│ │ │ ├── FlowConfig.php
│ │ │ ├── FmfDetails.php
│ │ │ ├── FundingDetail.php
│ │ │ ├── FundingInstrument.php
│ │ │ ├── FundingOption.php
│ │ │ ├── FundingSource.php
│ │ │ ├── FuturePayment.php
│ │ │ ├── HyperSchema.php
│ │ │ ├── Image.php
│ │ │ ├── Incentive.php
│ │ │ ├── InputFields.php
│ │ │ ├── InstallmentInfo.php
│ │ │ ├── InstallmentOption.php
│ │ │ ├── Invoice.php
│ │ │ ├── InvoiceAddress.php
│ │ │ ├── InvoiceItem.php
│ │ │ ├── InvoiceNumber.php
│ │ │ ├── InvoiceSearchResponse.php
│ │ │ ├── Item.php
│ │ │ ├── ItemList.php
│ │ │ ├── Links.php
│ │ │ ├── Measurement.php
│ │ │ ├── MerchantInfo.php
│ │ │ ├── MerchantPreferences.php
│ │ │ ├── Metadata.php
│ │ │ ├── NameValuePair.php
│ │ │ ├── Notification.php
│ │ │ ├── OpenIdAddress.php
│ │ │ ├── OpenIdError.php
│ │ │ ├── OpenIdSession.php
│ │ │ ├── OpenIdTokeninfo.php
│ │ │ ├── OpenIdUserinfo.php
│ │ │ ├── Order.php
│ │ │ ├── OverrideChargeModel.php
│ │ │ ├── Participant.php
│ │ │ ├── Patch.php
│ │ │ ├── PatchRequest.php
│ │ │ ├── Payee.php
│ │ │ ├── Payer.php
│ │ │ ├── PayerInfo.php
│ │ │ ├── Payment.php
│ │ │ ├── PaymentCard.php
│ │ │ ├── PaymentCardToken.php
│ │ │ ├── PaymentDefinition.php
│ │ │ ├── PaymentDetail.php
│ │ │ ├── PaymentExecution.php
│ │ │ ├── PaymentHistory.php
│ │ │ ├── PaymentInstruction.php
│ │ │ ├── PaymentOptions.php
│ │ │ ├── PaymentSummary.php
│ │ │ ├── PaymentTerm.php
│ │ │ ├── Payout.php
│ │ │ ├── PayoutBatch.php
│ │ │ ├── PayoutBatchHeader.php
│ │ │ ├── PayoutItem.php
│ │ │ ├── PayoutItemDetails.php
│ │ │ ├── PayoutSenderBatchHeader.php
│ │ │ ├── Phone.php
│ │ │ ├── Plan.php
│ │ │ ├── PlanList.php
│ │ │ ├── PotentialPayerInfo.php
│ │ │ ├── Presentation.php
│ │ │ ├── PrivateLabelCard.php
│ │ │ ├── ProcessorResponse.php
│ │ │ ├── RecipientBankingInstruction.php
│ │ │ ├── RedirectUrls.php
│ │ │ ├── Refund.php
│ │ │ ├── RefundDetail.php
│ │ │ ├── RefundRequest.php
│ │ │ ├── RelatedResources.php
│ │ │ ├── Sale.php
│ │ │ ├── Search.php
│ │ │ ├── ShippingAddress.php
│ │ │ ├── ShippingCost.php
│ │ │ ├── ShippingInfo.php
│ │ │ ├── Tax.php
│ │ │ ├── Template.php
│ │ │ ├── TemplateData.php
│ │ │ ├── TemplateSettings.php
│ │ │ ├── TemplateSettingsMetadata.php
│ │ │ ├── Templates.php
│ │ │ ├── Terms.php
│ │ │ ├── Transaction.php
│ │ │ ├── TransactionBase.php
│ │ │ ├── Transactions.php
│ │ │ ├── VerifyWebhookSignature.php
│ │ │ ├── VerifyWebhookSignatureResponse.php
│ │ │ ├── WebProfile.php
│ │ │ ├── Webhook.php
│ │ │ ├── WebhookEvent.php
│ │ │ ├── WebhookEventList.php
│ │ │ ├── WebhookEventType.php
│ │ │ ├── WebhookEventTypeList.php
│ │ │ └── WebhookList.php
│ │ │ ├── Auth
│ │ │ └── OAuthTokenCredential.php
│ │ │ ├── Cache
│ │ │ └── AuthorizationCache.php
│ │ │ ├── Common
│ │ │ ├── ArrayUtil.php
│ │ │ ├── PayPalModel.php
│ │ │ ├── PayPalResourceModel.php
│ │ │ ├── PayPalUserAgent.php
│ │ │ └── ReflectionUtil.php
│ │ │ ├── Converter
│ │ │ └── FormatConverter.php
│ │ │ ├── Core
│ │ │ ├── PayPalConfigManager.php
│ │ │ ├── PayPalConstants.php
│ │ │ ├── PayPalCredentialManager.php
│ │ │ ├── PayPalHttpConfig.php
│ │ │ ├── PayPalHttpConnection.php
│ │ │ ├── PayPalLoggingManager.php
│ │ │ └── cacert.pem
│ │ │ ├── Exception
│ │ │ ├── PayPalConfigurationException.php
│ │ │ ├── PayPalConnectionException.php
│ │ │ ├── PayPalInvalidCredentialException.php
│ │ │ └── PayPalMissingCredentialException.php
│ │ │ ├── Handler
│ │ │ ├── IPayPalHandler.php
│ │ │ ├── OauthHandler.php
│ │ │ └── RestHandler.php
│ │ │ ├── Log
│ │ │ ├── PayPalDefaultLogFactory.php
│ │ │ ├── PayPalLogFactory.php
│ │ │ └── PayPalLogger.php
│ │ │ ├── Rest
│ │ │ ├── ApiContext.php
│ │ │ └── IResource.php
│ │ │ ├── Security
│ │ │ └── Cipher.php
│ │ │ ├── Transport
│ │ │ └── PayPalRestCall.php
│ │ │ └── Validation
│ │ │ ├── ArgumentValidator.php
│ │ │ ├── JsonValidator.php
│ │ │ ├── NumericValidator.php
│ │ │ └── UrlValidator.php
│ │ ├── phpunit.integration.xml
│ │ └── phpunit.xml
│ └── psr
│ └── log
│ ├── .gitignore
│ ├── LICENSE
│ ├── Psr
│ └── Log
│ │ ├── AbstractLogger.php
│ │ ├── InvalidArgumentException.php
│ │ ├── LogLevel.php
│ │ ├── LoggerAwareInterface.php
│ │ ├── LoggerAwareTrait.php
│ │ ├── LoggerInterface.php
│ │ ├── LoggerTrait.php
│ │ ├── NullLogger.php
│ │ └── Test
│ │ ├── LoggerInterfaceTest.php
│ │ └── TestLogger.php
│ ├── README.md
│ └── composer.json
└── views
└── index.php
/README.md:
--------------------------------------------------------------------------------
1 | # CodeIgniter PayPal Payment Integration
2 |
3 | - PayPal PHP SDK has beed used
4 | - Support from PHP 5.3
5 | - Support upto Codeigniter 3
6 | - You can config it for both sandbox and live using the configuration file
7 |
8 | # Installation
9 | - Copy the application folder to your codeigniter application directory
10 | - Please read the provided PDF document for details.
11 |
--------------------------------------------------------------------------------
/User_guide_paypal_payment_integration_codeigniter.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nrshoukhin/codeigniter-paypal-library/e6aaeb8338e27270f6042d95abf93203710f2667/User_guide_paypal_payment_integration_codeigniter.pdf
--------------------------------------------------------------------------------
/application/config/paypal.php:
--------------------------------------------------------------------------------
1 | load->library("paypal");
7 | $this->load->helper("url");
8 | }
9 |
10 |
11 | public function index(){
12 |
13 | $this->load->view("index");
14 | return;
15 |
16 | }
17 |
18 |
19 | public function subscribe(){
20 |
21 | if ( !empty($_POST["plan_name"]) && !empty($_POST["plan_description"]) ) {
22 |
23 | $this->paypal->set_api_context();
24 |
25 | $this->paypal->set_plan( $_POST["plan_name"], $_POST["plan_description"], "INFINITE" );
26 |
27 | $definition = "Regular Payments";
28 | $type = "REGULAR";
29 | $frequency = "MONTH";
30 | $frequncy_interval = '1';
31 | $cycles = 0;
32 | $price = "49";
33 |
34 | $this->paypal->set_billing_plan_definition( $definition, $type, $frequency, $frequncy_interval, $cycles, $price );
35 |
36 | $returnurl = base_url()."index.php/payment/success";
37 | $cancelurl = base_url()."index.php/payment/cancel";
38 |
39 | $this->paypal->set_merchant_preferences( $returnurl, $cancelurl );
40 |
41 | $line1 = "Street - 1, Sector - 1";
42 | $city = "Dhaka";
43 | $state = "Dhaka";
44 | $postalcode = "12345";
45 | $country = "AU";
46 |
47 | $this->paypal->set_shipping_address( $line1, $city, $state, $postalcode, $country );
48 |
49 | $agreement_name = "Payment Agreement Name";
50 | $agreement_description = "Payment Agreement Description";
51 |
52 | $this->paypal->create_and_activate_billing_plan( $agreement_name, $agreement_description );
53 |
54 | }
55 |
56 | }
57 |
58 | public function cancel(){
59 | $this->index();
60 | return;
61 | }
62 |
63 | //After successfully create an agreement we will be redirected to this function
64 | public function success(){
65 |
66 | if ( !empty( $_GET['token'] ) ) {
67 |
68 | $token = $_GET['token'];
69 | $this->paypal->execute_agreement( $token );
70 | $this->index();
71 |
72 | }
73 |
74 | return;
75 |
76 | }
77 |
78 | public function create_payment(){
79 |
80 | $this->paypal->set_api_context();
81 |
82 | $payment_method = "paypal";
83 | $return_url = base_url()."index.php/payment/success_payment";
84 | $cancel_url = base_url()."index.php/payment/cancel";
85 | $total = 10;
86 | $description = "Paypal product payment";
87 | $intent = "sale";
88 |
89 | $this->paypal->create_payment( $payment_method, $return_url, $cancel_url,
90 | $total, $description, $intent );
91 |
92 | return;
93 |
94 | }
95 |
96 | //After creating a payment successfully we will be redirected here
97 | public function success_payment(){
98 |
99 | if ( !empty( $_GET['paymentId'] ) && !empty( $_GET['PayerID'] ) ) {
100 |
101 | $this->paypal->execute_payment( $_GET['paymentId'], $_GET['PayerID'] );
102 | $this->index();
103 |
104 | }
105 |
106 | return;
107 |
108 | }
109 |
110 | }
--------------------------------------------------------------------------------
/application/third_party/PayPal-PHP-SDK/autoload.php:
--------------------------------------------------------------------------------
1 | array($vendorDir . '/paypal/rest-api-sdk-php/lib'),
10 | );
11 |
--------------------------------------------------------------------------------
/application/third_party/PayPal-PHP-SDK/composer/autoload_psr4.php:
--------------------------------------------------------------------------------
1 | array($vendorDir . '/psr/log/Psr/Log'),
10 | );
11 |
--------------------------------------------------------------------------------
/application/third_party/PayPal-PHP-SDK/composer/autoload_real.php:
--------------------------------------------------------------------------------
1 | = 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
27 | if ($useStaticLoader) {
28 | require_once __DIR__ . '/autoload_static.php';
29 |
30 | call_user_func(\Composer\Autoload\ComposerStaticInit728f96e67824ff0c88d9b31fcd5c7681::getInitializer($loader));
31 | } else {
32 | $map = require __DIR__ . '/autoload_namespaces.php';
33 | foreach ($map as $namespace => $path) {
34 | $loader->set($namespace, $path);
35 | }
36 |
37 | $map = require __DIR__ . '/autoload_psr4.php';
38 | foreach ($map as $namespace => $path) {
39 | $loader->setPsr4($namespace, $path);
40 | }
41 |
42 | $classMap = require __DIR__ . '/autoload_classmap.php';
43 | if ($classMap) {
44 | $loader->addClassMap($classMap);
45 | }
46 | }
47 |
48 | $loader->register(true);
49 |
50 | return $loader;
51 | }
52 | }
53 |
--------------------------------------------------------------------------------
/application/third_party/PayPal-PHP-SDK/composer/autoload_static.php:
--------------------------------------------------------------------------------
1 |
11 | array (
12 | 'Psr\\Log\\' => 8,
13 | ),
14 | );
15 |
16 | public static $prefixDirsPsr4 = array (
17 | 'Psr\\Log\\' =>
18 | array (
19 | 0 => __DIR__ . '/..' . '/psr/log/Psr/Log',
20 | ),
21 | );
22 |
23 | public static $prefixesPsr0 = array (
24 | 'P' =>
25 | array (
26 | 'PayPal' =>
27 | array (
28 | 0 => __DIR__ . '/..' . '/paypal/rest-api-sdk-php/lib',
29 | ),
30 | ),
31 | );
32 |
33 | public static function getInitializer(ClassLoader $loader)
34 | {
35 | return \Closure::bind(function () use ($loader) {
36 | $loader->prefixLengthsPsr4 = ComposerStaticInit728f96e67824ff0c88d9b31fcd5c7681::$prefixLengthsPsr4;
37 | $loader->prefixDirsPsr4 = ComposerStaticInit728f96e67824ff0c88d9b31fcd5c7681::$prefixDirsPsr4;
38 | $loader->prefixesPsr0 = ComposerStaticInit728f96e67824ff0c88d9b31fcd5c7681::$prefixesPsr0;
39 |
40 | }, null, ClassLoader::class);
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/application/third_party/PayPal-PHP-SDK/composer/installed.json:
--------------------------------------------------------------------------------
1 | [
2 | {
3 | "name": "psr/log",
4 | "version": "1.1.0",
5 | "version_normalized": "1.1.0.0",
6 | "source": {
7 | "type": "git",
8 | "url": "https://github.com/php-fig/log.git",
9 | "reference": "6c001f1daafa3a3ac1d8ff69ee4db8e799a654dd"
10 | },
11 | "dist": {
12 | "type": "zip",
13 | "url": "https://api.github.com/repos/php-fig/log/zipball/6c001f1daafa3a3ac1d8ff69ee4db8e799a654dd",
14 | "reference": "6c001f1daafa3a3ac1d8ff69ee4db8e799a654dd",
15 | "shasum": ""
16 | },
17 | "require": {
18 | "php": ">=5.3.0"
19 | },
20 | "time": "2018-11-20T15:27:04+00:00",
21 | "type": "library",
22 | "extra": {
23 | "branch-alias": {
24 | "dev-master": "1.0.x-dev"
25 | }
26 | },
27 | "installation-source": "dist",
28 | "autoload": {
29 | "psr-4": {
30 | "Psr\\Log\\": "Psr/Log/"
31 | }
32 | },
33 | "notification-url": "https://packagist.org/downloads/",
34 | "license": [
35 | "MIT"
36 | ],
37 | "authors": [
38 | {
39 | "name": "PHP-FIG",
40 | "homepage": "http://www.php-fig.org/"
41 | }
42 | ],
43 | "description": "Common interface for logging libraries",
44 | "homepage": "https://github.com/php-fig/log",
45 | "keywords": [
46 | "log",
47 | "psr",
48 | "psr-3"
49 | ]
50 | },
51 | {
52 | "name": "paypal/rest-api-sdk-php",
53 | "version": "1.14.0",
54 | "version_normalized": "1.14.0.0",
55 | "source": {
56 | "type": "git",
57 | "url": "https://github.com/paypal/PayPal-PHP-SDK.git",
58 | "reference": "72e2f2466975bf128a31e02b15110180f059fc04"
59 | },
60 | "dist": {
61 | "type": "zip",
62 | "url": "https://api.github.com/repos/paypal/PayPal-PHP-SDK/zipball/72e2f2466975bf128a31e02b15110180f059fc04",
63 | "reference": "72e2f2466975bf128a31e02b15110180f059fc04",
64 | "shasum": ""
65 | },
66 | "require": {
67 | "ext-curl": "*",
68 | "ext-json": "*",
69 | "php": ">=5.3.0",
70 | "psr/log": "^1.0.0"
71 | },
72 | "require-dev": {
73 | "phpunit/phpunit": "^4.8.35"
74 | },
75 | "time": "2019-01-04T20:04:25+00:00",
76 | "type": "library",
77 | "installation-source": "dist",
78 | "autoload": {
79 | "psr-0": {
80 | "PayPal": "lib/"
81 | }
82 | },
83 | "notification-url": "https://packagist.org/downloads/",
84 | "license": [
85 | "Apache-2.0"
86 | ],
87 | "authors": [
88 | {
89 | "name": "PayPal",
90 | "homepage": "https://github.com/paypal/rest-api-sdk-php/contributors"
91 | }
92 | ],
93 | "description": "PayPal's PHP SDK for REST APIs",
94 | "homepage": "http://paypal.github.io/PayPal-PHP-SDK/",
95 | "keywords": [
96 | "payments",
97 | "paypal",
98 | "rest",
99 | "sdk"
100 | ]
101 | }
102 | ]
103 |
--------------------------------------------------------------------------------
/application/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/.gitattributes:
--------------------------------------------------------------------------------
1 | tests/ export-ignore
2 | sample/ export-ignore
3 | docs/ export-ignore
4 | .coveralls.yml export-ignore
5 | .editorconfig export-ignore
6 | .releasinator.rb export-ignore
7 | .travis.yml export-ignore
8 | CONTRIBUTING.md export-ignore
9 | Gemfile export-ignore
10 | Gemfile.lock export-ignore
11 | Rakefile export-ignore
12 | generate-api.sh export-ignore
13 |
14 |
--------------------------------------------------------------------------------
/application/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/.github/ISSUE_TEMPLATE.md:
--------------------------------------------------------------------------------
1 |
2 | ### General information
3 |
4 | * SDK/Library version:
5 | * Environment:
6 | * `PayPal-Debug-ID` values:
7 | * Language, language version, and OS:
8 |
9 | ### Issue description
10 |
11 |
12 |
--------------------------------------------------------------------------------
/application/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/.gitignore:
--------------------------------------------------------------------------------
1 |
2 | build
3 | .DS_Store
4 | phpunit.local.xml
5 | *.log
6 |
7 | # IDE
8 | .idea
9 | .project
10 | .settings
11 | .buildpath
12 | atlassian-ide-plugin.xml
13 | *.bak
14 |
15 | # Composer
16 | vendor
17 | composer.lock
18 | composer.phar
19 |
20 | # Project
21 | var
22 | tools
23 |
24 | # Groc
25 | node_modules
26 |
--------------------------------------------------------------------------------
/application/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/composer.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "paypal/rest-api-sdk-php",
3 | "description": "PayPal's PHP SDK for REST APIs",
4 | "keywords": ["paypal", "payments", "rest", "sdk"],
5 | "type": "library",
6 | "license": "Apache-2.0",
7 | "homepage": "http://paypal.github.io/PayPal-PHP-SDK/",
8 | "authors": [
9 | {
10 | "name": "PayPal",
11 | "homepage": "https://github.com/paypal/rest-api-sdk-php/contributors"
12 | }
13 | ],
14 | "require": {
15 | "php": ">=5.3.0",
16 | "ext-curl": "*",
17 | "ext-json": "*",
18 | "psr/log": "^1.0.0"
19 | },
20 | "require-dev": {
21 | "phpunit/phpunit": "^4.8.35"
22 | },
23 | "autoload": {
24 | "psr-0": {
25 | "PayPal": "lib/"
26 | }
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/application/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Api/Address.php:
--------------------------------------------------------------------------------
1 | phone = $phone;
27 | return $this;
28 | }
29 |
30 | /**
31 | * Phone number in E.123 format. 50 characters max.
32 | *
33 | * @return string
34 | */
35 | public function getPhone()
36 | {
37 | return $this->phone;
38 | }
39 |
40 | /**
41 | * Type of address (e.g., HOME_OR_WORK, GIFT etc).
42 | *
43 | * @param string $type
44 | *
45 | * @return $this
46 | */
47 | public function setType($type)
48 | {
49 | $this->type = $type;
50 | return $this;
51 | }
52 |
53 | /**
54 | * Type of address (e.g., HOME_OR_WORK, GIFT etc).
55 | *
56 | * @return string
57 | */
58 | public function getType()
59 | {
60 | return $this->type;
61 | }
62 | }
63 |
--------------------------------------------------------------------------------
/application/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Api/AgreementStateDescriptor.php:
--------------------------------------------------------------------------------
1 | note = $note;
29 | return $this;
30 | }
31 |
32 | /**
33 | * Reason for changing the state of the agreement.
34 | *
35 | * @return string
36 | */
37 | public function getNote()
38 | {
39 | return $this->note;
40 | }
41 |
42 | /**
43 | * The amount and currency of the agreement.
44 | *
45 | * @param \PayPal\Api\Currency $amount
46 | *
47 | * @return $this
48 | */
49 | public function setAmount($amount)
50 | {
51 | $this->amount = $amount;
52 | return $this;
53 | }
54 |
55 | /**
56 | * The amount and currency of the agreement.
57 | *
58 | * @return \PayPal\Api\Currency
59 | */
60 | public function getAmount()
61 | {
62 | return $this->amount;
63 | }
64 |
65 | }
66 |
--------------------------------------------------------------------------------
/application/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Api/AgreementTransactions.php:
--------------------------------------------------------------------------------
1 | agreement_transaction_list = $agreement_transaction_list;
28 | return $this;
29 | }
30 |
31 | /**
32 | * Array of agreement_transaction object.
33 | *
34 | * @return \PayPal\Api\AgreementTransaction[]
35 | */
36 | public function getAgreementTransactionList()
37 | {
38 | return $this->agreement_transaction_list;
39 | }
40 |
41 | /**
42 | * Append AgreementTransactionList to the list.
43 | *
44 | * @param \PayPal\Api\AgreementTransaction $agreementTransaction
45 | * @return $this
46 | */
47 | public function addAgreementTransactionList($agreementTransaction)
48 | {
49 | if (!$this->getAgreementTransactionList()) {
50 | return $this->setAgreementTransactionList(array($agreementTransaction));
51 | } else {
52 | return $this->setAgreementTransactionList(
53 | array_merge($this->getAgreementTransactionList(), array($agreementTransaction))
54 | );
55 | }
56 | }
57 |
58 | /**
59 | * Remove AgreementTransactionList from the list.
60 | *
61 | * @param \PayPal\Api\AgreementTransaction $agreementTransaction
62 | * @return $this
63 | */
64 | public function removeAgreementTransactionList($agreementTransaction)
65 | {
66 | return $this->setAgreementTransactionList(
67 | array_diff($this->getAgreementTransactionList(), array($agreementTransaction))
68 | );
69 | }
70 |
71 | }
72 |
--------------------------------------------------------------------------------
/application/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Api/AlternatePayment.php:
--------------------------------------------------------------------------------
1 | alternate_payment_account_id = $alternate_payment_account_id;
32 | return $this;
33 | }
34 |
35 | /**
36 | * The unique identifier of the alternate payment account.
37 | *
38 | * @return string
39 | */
40 | public function getAlternatePaymentAccountId()
41 | {
42 | return $this->alternate_payment_account_id;
43 | }
44 |
45 | /**
46 | * The unique identifier of the payer
47 | *
48 | * @param string $external_customer_id
49 | *
50 | * @return $this
51 | */
52 | public function setExternalCustomerId($external_customer_id)
53 | {
54 | $this->external_customer_id = $external_customer_id;
55 | return $this;
56 | }
57 |
58 | /**
59 | * The unique identifier of the payer
60 | *
61 | * @return string
62 | */
63 | public function getExternalCustomerId()
64 | {
65 | return $this->external_customer_id;
66 | }
67 |
68 | /**
69 | * Alternate Payment provider id. This is an optional attribute needed only for certain alternate providers e.g Ideal
70 | *
71 | * @param string $alternate_payment_provider_id
72 | *
73 | * @return $this
74 | */
75 | public function setAlternatePaymentProviderId($alternate_payment_provider_id)
76 | {
77 | $this->alternate_payment_provider_id = $alternate_payment_provider_id;
78 | return $this;
79 | }
80 |
81 | /**
82 | * Alternate Payment provider id. This is an optional attribute needed only for certain alternate providers e.g Ideal
83 | *
84 | * @return string
85 | */
86 | public function getAlternatePaymentProviderId()
87 | {
88 | return $this->alternate_payment_provider_id;
89 | }
90 |
91 | }
92 |
--------------------------------------------------------------------------------
/application/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Api/Amount.php:
--------------------------------------------------------------------------------
1 | currency = $currency;
32 | return $this;
33 | }
34 |
35 | /**
36 | * 3-letter [currency code](https://developer.paypal.com/docs/integration/direct/rest_api_payment_country_currency_support/). PayPal does not support all currencies.
37 | *
38 | * @return string
39 | */
40 | public function getCurrency()
41 | {
42 | return $this->currency;
43 | }
44 |
45 | /**
46 | * Total amount charged from the payer to the payee. In case of a refund, this is the refunded amount to the original payer from the payee. 10 characters max with support for 2 decimal places.
47 | *
48 | * @param string|double $total
49 | *
50 | * @return $this
51 | */
52 | public function setTotal($total)
53 | {
54 | NumericValidator::validate($total, "Total");
55 | $total = FormatConverter::formatToPrice($total, $this->getCurrency());
56 | $this->total = $total;
57 | return $this;
58 | }
59 |
60 | /**
61 | * Total amount charged from the payer to the payee. In case of a refund, this is the refunded amount to the original payer from the payee. 10 characters max with support for 2 decimal places.
62 | *
63 | * @return string
64 | */
65 | public function getTotal()
66 | {
67 | return $this->total;
68 | }
69 |
70 | /**
71 | * Additional details of the payment amount.
72 | *
73 | * @param \PayPal\Api\Details $details
74 | *
75 | * @return $this
76 | */
77 | public function setDetails($details)
78 | {
79 | $this->details = $details;
80 | return $this;
81 | }
82 |
83 | /**
84 | * Additional details of the payment amount.
85 | *
86 | * @return \PayPal\Api\Details
87 | */
88 | public function getDetails()
89 | {
90 | return $this->details;
91 | }
92 |
93 | }
94 |
--------------------------------------------------------------------------------
/application/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Api/BankAccountsList.php:
--------------------------------------------------------------------------------
1 | {"bank-accounts"} = $bank_accounts;
30 | return $this;
31 | }
32 |
33 | /**
34 | * A list of bank account resources
35 | *
36 | * @return \PayPal\Api\BankAccount[]
37 | */
38 | public function getBankAccounts()
39 | {
40 | return $this->{"bank-accounts"};
41 | }
42 |
43 | /**
44 | * Append BankAccounts to the list.
45 | *
46 | * @param \PayPal\Api\BankAccount $bankAccount
47 | * @return $this
48 | */
49 | public function addBankAccount($bankAccount)
50 | {
51 | if (!$this->getBankAccounts()) {
52 | return $this->setBankAccounts(array($bankAccount));
53 | } else {
54 | return $this->setBankAccounts(
55 | array_merge($this->getBankAccounts(), array($bankAccount))
56 | );
57 | }
58 | }
59 |
60 | /**
61 | * Remove BankAccounts from the list.
62 | *
63 | * @param \PayPal\Api\BankAccount $bankAccount
64 | * @return $this
65 | */
66 | public function removeBankAccount($bankAccount)
67 | {
68 | return $this->setBankAccounts(
69 | array_diff($this->getBankAccounts(), array($bankAccount))
70 | );
71 | }
72 |
73 | /**
74 | * Number of items returned in each range of results. Note that the last results range could have fewer items than the requested number of items.
75 | *
76 | * @param int $count
77 | *
78 | * @return $this
79 | */
80 | public function setCount($count)
81 | {
82 | $this->count = $count;
83 | return $this;
84 | }
85 |
86 | /**
87 | * Number of items returned in each range of results. Note that the last results range could have fewer items than the requested number of items.
88 | *
89 | * @return int
90 | */
91 | public function getCount()
92 | {
93 | return $this->count;
94 | }
95 |
96 | /**
97 | * Identifier of the next element to get the next range of results.
98 | *
99 | * @param string $next_id
100 | *
101 | * @return $this
102 | */
103 | public function setNextId($next_id)
104 | {
105 | $this->next_id = $next_id;
106 | return $this;
107 | }
108 |
109 | /**
110 | * Identifier of the next element to get the next range of results.
111 | *
112 | * @return string
113 | */
114 | public function getNextId()
115 | {
116 | return $this->next_id;
117 | }
118 |
119 | }
120 |
--------------------------------------------------------------------------------
/application/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Api/BankToken.php:
--------------------------------------------------------------------------------
1 | bank_id = $bank_id;
30 | return $this;
31 | }
32 |
33 | /**
34 | * ID of a previously saved Bank resource using /vault/bank API.
35 | *
36 | * @return string
37 | */
38 | public function getBankId()
39 | {
40 | return $this->bank_id;
41 | }
42 |
43 | /**
44 | * The unique identifier of the payer used when saving this bank using /vault/bank API.
45 | *
46 | * @param string $external_customer_id
47 | *
48 | * @return $this
49 | */
50 | public function setExternalCustomerId($external_customer_id)
51 | {
52 | $this->external_customer_id = $external_customer_id;
53 | return $this;
54 | }
55 |
56 | /**
57 | * The unique identifier of the payer used when saving this bank using /vault/bank API.
58 | *
59 | * @return string
60 | */
61 | public function getExternalCustomerId()
62 | {
63 | return $this->external_customer_id;
64 | }
65 |
66 | /**
67 | * Identifier of the direct debit mandate to validate. Currently supported only for EU bank accounts(SEPA).
68 | *
69 | * @param string $mandate_reference_number
70 | *
71 | * @return $this
72 | */
73 | public function setMandateReferenceNumber($mandate_reference_number)
74 | {
75 | $this->mandate_reference_number = $mandate_reference_number;
76 | return $this;
77 | }
78 |
79 | /**
80 | * Identifier of the direct debit mandate to validate. Currently supported only for EU bank accounts(SEPA).
81 | *
82 | * @return string
83 | */
84 | public function getMandateReferenceNumber()
85 | {
86 | return $this->mandate_reference_number;
87 | }
88 |
89 | }
90 |
--------------------------------------------------------------------------------
/application/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Api/Billing.php:
--------------------------------------------------------------------------------
1 | billing_agreement_id = $billing_agreement_id;
30 | return $this;
31 | }
32 |
33 | /**
34 | * Identifier of the instrument in PayPal Wallet
35 | *
36 | * @return string
37 | */
38 | public function getBillingAgreementId()
39 | {
40 | return $this->billing_agreement_id;
41 | }
42 |
43 | }
44 |
--------------------------------------------------------------------------------
/application/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Api/BillingAgreementToken.php:
--------------------------------------------------------------------------------
1 | id = $id;
32 | return $this;
33 | }
34 |
35 | /**
36 | * The ID of the carrier account of the payer. Use in subsequent REST API calls. For example, to make payments.
37 | *
38 | * @return string
39 | */
40 | public function getId()
41 | {
42 | return $this->id;
43 | }
44 |
45 | /**
46 | * The phone number of the payer, in E.164 format.
47 | *
48 | * @param string $phone_number
49 | *
50 | * @return $this
51 | */
52 | public function setPhoneNumber($phone_number)
53 | {
54 | $this->phone_number = $phone_number;
55 | return $this;
56 | }
57 |
58 | /**
59 | * The phone number of the payer, in E.164 format.
60 | *
61 | * @return string
62 | */
63 | public function getPhoneNumber()
64 | {
65 | return $this->phone_number;
66 | }
67 |
68 | /**
69 | * The ID of the customer, as created by the merchant.
70 | *
71 | * @param string $external_customer_id
72 | *
73 | * @return $this
74 | */
75 | public function setExternalCustomerId($external_customer_id)
76 | {
77 | $this->external_customer_id = $external_customer_id;
78 | return $this;
79 | }
80 |
81 | /**
82 | * The ID of the customer, as created by the merchant.
83 | *
84 | * @return string
85 | */
86 | public function getExternalCustomerId()
87 | {
88 | return $this->external_customer_id;
89 | }
90 |
91 | /**
92 | * The method used to obtain the phone number. Value is `READ_FROM_DEVICE` or `USER_PROVIDED`.
93 | * Valid Values: ["READ_FROM_DEVICE", "USER_PROVIDED"]
94 | *
95 | * @param string $phone_source
96 | *
97 | * @return $this
98 | */
99 | public function setPhoneSource($phone_source)
100 | {
101 | $this->phone_source = $phone_source;
102 | return $this;
103 | }
104 |
105 | /**
106 | * The method used to obtain the phone number. Value is `READ_FROM_DEVICE` or `USER_PROVIDED`.
107 | *
108 | * @return string
109 | */
110 | public function getPhoneSource()
111 | {
112 | return $this->phone_source;
113 | }
114 |
115 | /**
116 | * The ISO 3166-1 alpha-2 country code where the phone number is registered.
117 | *
118 | * @param \PayPal\Api\CountryCode $country_code
119 | *
120 | * @return $this
121 | */
122 | public function setCountryCode($country_code)
123 | {
124 | $this->country_code = $country_code;
125 | return $this;
126 | }
127 |
128 | /**
129 | * The ISO 3166-1 alpha-2 country code where the phone number is registered.
130 | *
131 | * @return \PayPal\Api\CountryCode
132 | */
133 | public function getCountryCode()
134 | {
135 | return $this->country_code;
136 | }
137 |
138 | }
139 |
--------------------------------------------------------------------------------
/application/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Api/CarrierAccountToken.php:
--------------------------------------------------------------------------------
1 | carrier_account_id = $carrier_account_id;
29 | return $this;
30 | }
31 |
32 | /**
33 | * ID of a previously saved carrier account resource.
34 | *
35 | * @return string
36 | */
37 | public function getCarrierAccountId()
38 | {
39 | return $this->carrier_account_id;
40 | }
41 |
42 | /**
43 | * The unique identifier of the payer used when saving this carrier account instrument.
44 | *
45 | * @param string $external_customer_id
46 | *
47 | * @return $this
48 | */
49 | public function setExternalCustomerId($external_customer_id)
50 | {
51 | $this->external_customer_id = $external_customer_id;
52 | return $this;
53 | }
54 |
55 | /**
56 | * The unique identifier of the payer used when saving this carrier account instrument.
57 | *
58 | * @return string
59 | */
60 | public function getExternalCustomerId()
61 | {
62 | return $this->external_customer_id;
63 | }
64 |
65 | }
66 |
--------------------------------------------------------------------------------
/application/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Api/ChargeModel.php:
--------------------------------------------------------------------------------
1 | id = $id;
30 | return $this;
31 | }
32 |
33 | /**
34 | * Identifier of the charge model. 128 characters max.
35 | *
36 | * @return string
37 | */
38 | public function getId()
39 | {
40 | return $this->id;
41 | }
42 |
43 | /**
44 | * Type of charge model. Allowed values: `SHIPPING`, `TAX`.
45 | *
46 | * @param string $type
47 | *
48 | * @return $this
49 | */
50 | public function setType($type)
51 | {
52 | $this->type = $type;
53 | return $this;
54 | }
55 |
56 | /**
57 | * Type of charge model. Allowed values: `SHIPPING`, `TAX`.
58 | *
59 | * @return string
60 | */
61 | public function getType()
62 | {
63 | return $this->type;
64 | }
65 |
66 | /**
67 | * Specific amount for this charge model.
68 | *
69 | * @param \PayPal\Api\Currency $amount
70 | *
71 | * @return $this
72 | */
73 | public function setAmount($amount)
74 | {
75 | $this->amount = $amount;
76 | return $this;
77 | }
78 |
79 | /**
80 | * Specific amount for this charge model.
81 | *
82 | * @return \PayPal\Api\Currency
83 | */
84 | public function getAmount()
85 | {
86 | return $this->amount;
87 | }
88 |
89 | }
90 |
--------------------------------------------------------------------------------
/application/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Api/Cost.php:
--------------------------------------------------------------------------------
1 | percent = $percent;
33 | return $this;
34 | }
35 |
36 | /**
37 | * Cost in percent. Range of 0 to 100.
38 | *
39 | * @return string
40 | */
41 | public function getPercent()
42 | {
43 | return $this->percent;
44 | }
45 |
46 | /**
47 | * The cost, as an amount. Valid range is from 0 to 1,000,000.
48 | *
49 | * @param \PayPal\Api\Currency $amount
50 | *
51 | * @return $this
52 | */
53 | public function setAmount($amount)
54 | {
55 | $this->amount = $amount;
56 | return $this;
57 | }
58 |
59 | /**
60 | * The cost, as an amount. Valid range is from 0 to 1,000,000.
61 | *
62 | * @return \PayPal\Api\Currency
63 | */
64 | public function getAmount()
65 | {
66 | return $this->amount;
67 | }
68 |
69 | }
70 |
--------------------------------------------------------------------------------
/application/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Api/CountryCode.php:
--------------------------------------------------------------------------------
1 | country_code = $country_code;
28 | return $this;
29 | }
30 |
31 | /**
32 | * ISO country code based on 2-character IS0-3166-1 codes.
33 | *
34 | * @return string
35 | */
36 | public function getCountryCode()
37 | {
38 | return $this->country_code;
39 | }
40 |
41 | }
42 |
--------------------------------------------------------------------------------
/application/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Api/CreateProfileResponse.php:
--------------------------------------------------------------------------------
1 | id = $id;
27 | return $this;
28 | }
29 |
30 | /**
31 | * ID of the payment web experience profile.
32 | *
33 | * @return string
34 | */
35 | public function getId()
36 | {
37 | return $this->id;
38 | }
39 |
40 | }
41 |
--------------------------------------------------------------------------------
/application/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Api/Credit.php:
--------------------------------------------------------------------------------
1 | id = $id;
29 | return $this;
30 | }
31 |
32 | /**
33 | * Unique identifier of credit resource.
34 | *
35 | * @return string
36 | */
37 | public function getId()
38 | {
39 | return $this->id;
40 | }
41 |
42 | /**
43 | * specifies type of credit
44 | * Valid Values: ["BILL_ME_LATER", "PAYPAL_EXTRAS_MASTERCARD", "EBAY_MASTERCARD", "PAYPAL_SMART_CONNECT"]
45 | *
46 | * @param string $type
47 | *
48 | * @return $this
49 | */
50 | public function setType($type)
51 | {
52 | $this->type = $type;
53 | return $this;
54 | }
55 |
56 | /**
57 | * specifies type of credit
58 | *
59 | * @return string
60 | */
61 | public function getType()
62 | {
63 | return $this->type;
64 | }
65 |
66 | }
67 |
--------------------------------------------------------------------------------
/application/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Api/CreditCardHistory.php:
--------------------------------------------------------------------------------
1 | {"credit-cards"} = $credit_cards;
30 | return $this;
31 | }
32 |
33 | /**
34 | * A list of credit card resources
35 | *
36 | * @return \PayPal\Api\CreditCard
37 | */
38 | public function getCreditCards()
39 | {
40 | return $this->{"credit-cards"};
41 | }
42 |
43 | /**
44 | * Number of items returned in each range of results. Note that the last results range could have fewer items than the requested number of items.
45 | *
46 | *
47 | * @param int $count
48 | *
49 | * @return $this
50 | */
51 | public function setCount($count)
52 | {
53 | $this->count = $count;
54 | return $this;
55 | }
56 |
57 | /**
58 | * Number of items returned in each range of results. Note that the last results range could have fewer items than the requested number of items.
59 | *
60 | * @return int
61 | */
62 | public function getCount()
63 | {
64 | return $this->count;
65 | }
66 |
67 | /**
68 | * Identifier of the next element to get the next range of results.
69 | *
70 | *
71 | * @param string $next_id
72 | *
73 | * @return $this
74 | */
75 | public function setNextId($next_id)
76 | {
77 | $this->next_id = $next_id;
78 | return $this;
79 | }
80 |
81 | /**
82 | * Identifier of the next element to get the next range of results.
83 | *
84 | * @return string
85 | */
86 | public function getNextId()
87 | {
88 | return $this->next_id;
89 | }
90 |
91 | }
92 |
--------------------------------------------------------------------------------
/application/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Api/CreditCardList.php:
--------------------------------------------------------------------------------
1 | items = $items;
31 | return $this;
32 | }
33 |
34 | /**
35 | * A list of credit card resources
36 | *
37 | * @return \PayPal\Api\CreditCard[]
38 | */
39 | public function getItems()
40 | {
41 | return $this->items;
42 | }
43 |
44 | /**
45 | * Append Items to the list.
46 | *
47 | * @param \PayPal\Api\CreditCard $creditCard
48 | * @return $this
49 | */
50 | public function addItem($creditCard)
51 | {
52 | if (!$this->getItems()) {
53 | return $this->setItems(array($creditCard));
54 | } else {
55 | return $this->setItems(
56 | array_merge($this->getItems(), array($creditCard))
57 | );
58 | }
59 | }
60 |
61 | /**
62 | * Remove Items from the list.
63 | *
64 | * @param \PayPal\Api\CreditCard $creditCard
65 | * @return $this
66 | */
67 | public function removeItem($creditCard)
68 | {
69 | return $this->setItems(
70 | array_diff($this->getItems(), array($creditCard))
71 | );
72 | }
73 |
74 | /**
75 | * Total number of items present in the given list. Note that the number of items might be larger than the records in the current page.
76 | *
77 | * @param int $total_items
78 | *
79 | * @return $this
80 | */
81 | public function setTotalItems($total_items)
82 | {
83 | $this->total_items = $total_items;
84 | return $this;
85 | }
86 |
87 | /**
88 | * Total number of items present in the given list. Note that the number of items might be larger than the records in the current page.
89 | *
90 | * @return int
91 | */
92 | public function getTotalItems()
93 | {
94 | return $this->total_items;
95 | }
96 |
97 | /**
98 | * Total number of pages that exist, for the total number of items, with the given page size.
99 | *
100 | * @param int $total_pages
101 | *
102 | * @return $this
103 | */
104 | public function setTotalPages($total_pages)
105 | {
106 | $this->total_pages = $total_pages;
107 | return $this;
108 | }
109 |
110 | /**
111 | * Total number of pages that exist, for the total number of items, with the given page size.
112 | *
113 | * @return int
114 | */
115 | public function getTotalPages()
116 | {
117 | return $this->total_pages;
118 | }
119 |
120 | }
121 |
--------------------------------------------------------------------------------
/application/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Api/Currency.php:
--------------------------------------------------------------------------------
1 | currency = $currency;
31 | return $this;
32 | }
33 |
34 | /**
35 | * 3 letter currency code as defined by ISO 4217.
36 | *
37 | * @return string
38 | */
39 | public function getCurrency()
40 | {
41 | return $this->currency;
42 | }
43 |
44 | /**
45 | * amount up to N digit after the decimals separator as defined in ISO 4217 for the appropriate currency code.
46 | *
47 | * @param string|double $value
48 | *
49 | * @return $this
50 | */
51 | public function setValue($value)
52 | {
53 | NumericValidator::validate($value, "Value");
54 | $value = FormatConverter::formatToPrice($value, $this->getCurrency());
55 | $this->value = $value;
56 | return $this;
57 | }
58 |
59 | /**
60 | * amount up to N digit after the decimals separator as defined in ISO 4217 for the appropriate currency code.
61 | *
62 | * @return string
63 | */
64 | public function getValue()
65 | {
66 | return $this->value;
67 | }
68 |
69 | }
70 |
--------------------------------------------------------------------------------
/application/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Api/CustomAmount.php:
--------------------------------------------------------------------------------
1 | label = $label;
29 | return $this;
30 | }
31 |
32 | /**
33 | * The custom amount label. Maximum length is 25 characters.
34 | *
35 | * @return string
36 | */
37 | public function getLabel()
38 | {
39 | return $this->label;
40 | }
41 |
42 | /**
43 | * The custom amount value. Valid range is from -999999.99 to 999999.99.
44 | *
45 | * @param \PayPal\Api\Currency $amount
46 | *
47 | * @return $this
48 | */
49 | public function setAmount($amount)
50 | {
51 | $this->amount = $amount;
52 | return $this;
53 | }
54 |
55 | /**
56 | * The custom amount value. Valid range is from -999999.99 to 999999.99.
57 | *
58 | * @return \PayPal\Api\Currency
59 | */
60 | public function getAmount()
61 | {
62 | return $this->amount;
63 | }
64 |
65 | }
66 |
--------------------------------------------------------------------------------
/application/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Api/ErrorDetails.php:
--------------------------------------------------------------------------------
1 | field = $field;
29 | return $this;
30 | }
31 |
32 | /**
33 | * Name of the field that caused the error.
34 | *
35 | * @return string
36 | */
37 | public function getField()
38 | {
39 | return $this->field;
40 | }
41 |
42 | /**
43 | * Reason for the error.
44 | *
45 | * @param string $issue
46 | *
47 | * @return $this
48 | */
49 | public function setIssue($issue)
50 | {
51 | $this->issue = $issue;
52 | return $this;
53 | }
54 |
55 | /**
56 | * Reason for the error.
57 | *
58 | * @return string
59 | */
60 | public function getIssue()
61 | {
62 | return $this->issue;
63 | }
64 |
65 | /**
66 | * Reference ID of the purchase_unit associated with this error
67 | * @deprecated Not publicly available
68 | * @param string $purchase_unit_reference_id
69 | *
70 | * @return $this
71 | */
72 | public function setPurchaseUnitReferenceId($purchase_unit_reference_id)
73 | {
74 | $this->purchase_unit_reference_id = $purchase_unit_reference_id;
75 | return $this;
76 | }
77 |
78 | /**
79 | * Reference ID of the purchase_unit associated with this error
80 | * @deprecated Not publicly available
81 | * @return string
82 | */
83 | public function getPurchaseUnitReferenceId()
84 | {
85 | return $this->purchase_unit_reference_id;
86 | }
87 |
88 | /**
89 | * PayPal internal error code.
90 | * @deprecated Not publicly available
91 | * @param string $code
92 | *
93 | * @return $this
94 | */
95 | public function setCode($code)
96 | {
97 | $this->code = $code;
98 | return $this;
99 | }
100 |
101 | /**
102 | * PayPal internal error code.
103 | * @deprecated Not publicly available
104 | * @return string
105 | */
106 | public function getCode()
107 | {
108 | return $this->code;
109 | }
110 |
111 | }
112 |
--------------------------------------------------------------------------------
/application/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Api/ExtendedBankAccount.php:
--------------------------------------------------------------------------------
1 | mandate_reference_number = $mandate_reference_number;
25 | return $this;
26 | }
27 |
28 | /**
29 | * Identifier of the direct debit mandate to validate. Currently supported only for EU bank accounts(SEPA).
30 | * @deprecated Not publicly available
31 | * @return string
32 | */
33 | public function getMandateReferenceNumber()
34 | {
35 | return $this->mandate_reference_number;
36 | }
37 |
38 | }
39 |
--------------------------------------------------------------------------------
/application/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Api/FileAttachment.php:
--------------------------------------------------------------------------------
1 | name = $name;
30 | return $this;
31 | }
32 |
33 | /**
34 | * Name of the file attached.
35 | *
36 | * @return string
37 | */
38 | public function getName()
39 | {
40 | return $this->name;
41 | }
42 |
43 | /**
44 | * URL of the attached file that can be downloaded.
45 | *
46 | * @param string $url
47 | * @throws \InvalidArgumentException
48 | * @return $this
49 | */
50 | public function setUrl($url)
51 | {
52 | UrlValidator::validate($url, "Url");
53 | $this->url = $url;
54 | return $this;
55 | }
56 |
57 | /**
58 | * URL of the attached file that can be downloaded.
59 | *
60 | * @return string
61 | */
62 | public function getUrl()
63 | {
64 | return $this->url;
65 | }
66 |
67 | }
68 |
--------------------------------------------------------------------------------
/application/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Api/FlowConfig.php:
--------------------------------------------------------------------------------
1 | landing_page_type = $landing_page_type;
32 | return $this;
33 | }
34 |
35 | /**
36 | * The type of landing page to display on the PayPal site for user checkout. Set to `Billing` to use the non-PayPal account landing page. Set to `Login` to use the PayPal account login landing page.
37 | *
38 | * @return string
39 | */
40 | public function getLandingPageType()
41 | {
42 | return $this->landing_page_type;
43 | }
44 |
45 | /**
46 | * The merchant site URL to display after a bank transfer payment. Valid for only the Giropay or bank transfer payment method in Germany.
47 | *
48 | * @param string $bank_txn_pending_url
49 | * @throws \InvalidArgumentException
50 | * @return $this
51 | */
52 | public function setBankTxnPendingUrl($bank_txn_pending_url)
53 | {
54 | UrlValidator::validate($bank_txn_pending_url, "BankTxnPendingUrl");
55 | $this->bank_txn_pending_url = $bank_txn_pending_url;
56 | return $this;
57 | }
58 |
59 | /**
60 | * The merchant site URL to display after a bank transfer payment. Valid for only the Giropay or bank transfer payment method in Germany.
61 | *
62 | * @return string
63 | */
64 | public function getBankTxnPendingUrl()
65 | {
66 | return $this->bank_txn_pending_url;
67 | }
68 |
69 | /**
70 | * Defines whether buyers can complete purchases on the PayPal or merchant website.
71 | *
72 | * @param string $user_action
73 | *
74 | * @return $this
75 | */
76 | public function setUserAction($user_action)
77 | {
78 | $this->user_action = $user_action;
79 | return $this;
80 | }
81 |
82 | /**
83 | * Defines whether buyers can complete purchases on the PayPal or merchant website.
84 | *
85 | * @return string
86 | */
87 | public function getUserAction()
88 | {
89 | return $this->user_action;
90 | }
91 |
92 | /**
93 | * Defines the HTTP method to use to redirect the user to a return URL. A valid value is `GET` or `POST`.
94 | *
95 | * @param string $return_uri_http_method
96 | *
97 | * @return $this
98 | */
99 | public function setReturnUriHttpMethod($return_uri_http_method)
100 | {
101 | $this->return_uri_http_method = $return_uri_http_method;
102 | return $this;
103 | }
104 |
105 | /**
106 | * Defines the HTTP method to use to redirect the user to a return URL. A valid value is `GET` or `POST`.
107 | *
108 | * @return string
109 | */
110 | public function getReturnUriHttpMethod()
111 | {
112 | return $this->return_uri_http_method;
113 | }
114 |
115 | }
116 |
--------------------------------------------------------------------------------
/application/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Api/FmfDetails.php:
--------------------------------------------------------------------------------
1 | filter_type = $filter_type;
32 | return $this;
33 | }
34 |
35 | /**
36 | * Type of filter.
37 | *
38 | * @return string
39 | */
40 | public function getFilterType()
41 | {
42 | return $this->filter_type;
43 | }
44 |
45 | /**
46 | * Filter Identifier.
47 | * Valid Values: ["AVS_NO_MATCH", "AVS_PARTIAL_MATCH", "AVS_UNAVAILABLE_OR_UNSUPPORTED", "CARD_SECURITY_CODE_MISMATCH", "MAXIMUM_TRANSACTION_AMOUNT", "UNCONFIRMED_ADDRESS", "COUNTRY_MONITOR", "LARGE_ORDER_NUMBER", "BILLING_OR_SHIPPING_ADDRESS_MISMATCH", "RISKY_ZIP_CODE", "SUSPECTED_FREIGHT_FORWARDER_CHECK", "TOTAL_PURCHASE_PRICE_MINIMUM", "IP_ADDRESS_VELOCITY", "RISKY_EMAIL_ADDRESS_DOMAIN_CHECK", "RISKY_BANK_IDENTIFICATION_NUMBER_CHECK", "RISKY_IP_ADDRESS_RANGE", "PAYPAL_FRAUD_MODEL"]
48 | *
49 | * @param string $filter_id
50 | *
51 | * @return $this
52 | */
53 | public function setFilterId($filter_id)
54 | {
55 | $this->filter_id = $filter_id;
56 | return $this;
57 | }
58 |
59 | /**
60 | * Filter Identifier.
61 | *
62 | * @return string
63 | */
64 | public function getFilterId()
65 | {
66 | return $this->filter_id;
67 | }
68 |
69 | /**
70 | * Name of the filter
71 | *
72 | * @param string $name
73 | *
74 | * @return $this
75 | */
76 | public function setName($name)
77 | {
78 | $this->name = $name;
79 | return $this;
80 | }
81 |
82 | /**
83 | * Name of the filter
84 | *
85 | * @return string
86 | */
87 | public function getName()
88 | {
89 | return $this->name;
90 | }
91 |
92 | /**
93 | * Description of the filter.
94 | *
95 | * @param string $description
96 | *
97 | * @return $this
98 | */
99 | public function setDescription($description)
100 | {
101 | $this->description = $description;
102 | return $this;
103 | }
104 |
105 | /**
106 | * Description of the filter.
107 | *
108 | * @return string
109 | */
110 | public function getDescription()
111 | {
112 | return $this->description;
113 | }
114 |
115 | }
116 |
--------------------------------------------------------------------------------
/application/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Api/FundingDetail.php:
--------------------------------------------------------------------------------
1 | clearing_time = $clearing_time;
31 | return $this;
32 | }
33 |
34 | /**
35 | * Expected clearing time
36 | *
37 | * @return string
38 | */
39 | public function getClearingTime()
40 | {
41 | return $this->clearing_time;
42 | }
43 |
44 | /**
45 | * [DEPRECATED] Hold-off duration of the payment. payment_debit_date should be used instead.
46 | *
47 | * @param string $payment_hold_date
48 | *
49 | * @return $this
50 | */
51 | public function setPaymentHoldDate($payment_hold_date)
52 | {
53 | $this->payment_hold_date = $payment_hold_date;
54 | return $this;
55 | }
56 |
57 | /**
58 | * @deprecated [DEPRECATED] Hold-off duration of the payment. payment_debit_date should be used instead.
59 | *
60 | * @return string
61 | */
62 | public function getPaymentHoldDate()
63 | {
64 | return $this->payment_hold_date;
65 | }
66 |
67 | /**
68 | * Date when funds will be debited from the payer's account
69 | *
70 | * @param string $payment_debit_date
71 | *
72 | * @return $this
73 | */
74 | public function setPaymentDebitDate($payment_debit_date)
75 | {
76 | $this->payment_debit_date = $payment_debit_date;
77 | return $this;
78 | }
79 |
80 | /**
81 | * Date when funds will be debited from the payer's account
82 | *
83 | * @return string
84 | */
85 | public function getPaymentDebitDate()
86 | {
87 | return $this->payment_debit_date;
88 | }
89 |
90 | /**
91 | * Processing type of the payment card
92 | * Valid Values: ["CUP_SECURE", "PINLESS_DEBIT"]
93 | *
94 | * @param string $processing_type
95 | *
96 | * @return $this
97 | */
98 | public function setProcessingType($processing_type)
99 | {
100 | $this->processing_type = $processing_type;
101 | return $this;
102 | }
103 |
104 | /**
105 | * Processing type of the payment card
106 | *
107 | * @return string
108 | */
109 | public function getProcessingType()
110 | {
111 | return $this->processing_type;
112 | }
113 |
114 | }
115 |
--------------------------------------------------------------------------------
/application/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Api/FuturePayment.php:
--------------------------------------------------------------------------------
1 | $clientMetadataId
30 | );
31 | }
32 | $payLoad = $this->toJSON();
33 | $json = self::executeCall(
34 | "/v1/payments/payment",
35 | "POST",
36 | $payLoad,
37 | $headers,
38 | $apiContext,
39 | $restCall
40 | );
41 | $this->fromJson($json);
42 | return $this;
43 | }
44 |
45 | /**
46 | * Get a Refresh Token from Authorization Code
47 | *
48 | * @param $authorizationCode
49 | * @param ApiContext $apiContext
50 | * @return string|null refresh token
51 | */
52 | public static function getRefreshToken($authorizationCode, $apiContext = null)
53 | {
54 | $apiContext = $apiContext ? $apiContext : new ApiContext(self::$credential);
55 | $credential = $apiContext->getCredential();
56 | return $credential->getRefreshToken($apiContext->getConfig(), $authorizationCode);
57 | }
58 |
59 | }
60 |
--------------------------------------------------------------------------------
/application/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Api/Image.php:
--------------------------------------------------------------------------------
1 | image = $imageBase64String;
26 | return $this;
27 | }
28 |
29 | /**
30 | * Get Image as Base-64 encoded String
31 | *
32 | * @return string
33 | */
34 | public function getImage()
35 | {
36 | return $this->image;
37 | }
38 |
39 | /**
40 | * Stores the Image to file
41 | *
42 | * @param string $name File Name
43 | * @return string File name
44 | */
45 | public function saveToFile($name = null)
46 | {
47 | // Self Generate File Location
48 | if (!$name) {
49 | $name = uniqid() . '.png';
50 | }
51 | // Save to File
52 | file_put_contents($name, base64_decode($this->getImage()));
53 | return $name;
54 | }
55 |
56 | }
57 |
--------------------------------------------------------------------------------
/application/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Api/InputFields.php:
--------------------------------------------------------------------------------
1 | allow_note = $allow_note;
30 | return $this;
31 | }
32 |
33 | /**
34 | * Indicates whether the buyer can enter a note to the merchant on the PayPal page during checkout.
35 | *
36 | * @return bool
37 | */
38 | public function getAllowNote()
39 | {
40 | return $this->allow_note;
41 | }
42 |
43 | /**
44 | * Indicates whether PayPal displays shipping address fields on the experience pages. Valid value is `0`, `1`, or `2`. Set to `0` to display the shipping address on the PayPal pages. Set to `1` to redact shipping address fields from the PayPal pages. Set to `2` to not pass the shipping address but instead get it from the buyer's account profile. For digital goods, this field is required and value must be `1`.
45 | *
46 | * @param int $no_shipping
47 | *
48 | * @return $this
49 | */
50 | public function setNoShipping($no_shipping)
51 | {
52 | $this->no_shipping = $no_shipping;
53 | return $this;
54 | }
55 |
56 | /**
57 | * Indicates whether PayPal displays shipping address fields on the experience pages. Valid value is `0`, `1`, or `2`. Set to `0` to display the shipping address on the PayPal pages. Set to `1` to redact shipping address fields from the PayPal pages. Set to `2` to not pass the shipping address but instead get it from the buyer's account profile. For digital goods, this field is required and value must be `1`.
58 | *
59 | * @return int
60 | */
61 | public function getNoShipping()
62 | {
63 | return $this->no_shipping;
64 | }
65 |
66 | /**
67 | * Indicates whether to display the shipping address that is passed to this call rather than the one on file with PayPal for this buyer on the PayPal experience pages. Valid value is `0` or `1`. Set to `0` to display the shipping address on file. Set to `1` to display the shipping address supplied to this call; the buyer cannot edit this shipping address.
68 | *
69 | * @param int $address_override
70 | *
71 | * @return $this
72 | */
73 | public function setAddressOverride($address_override)
74 | {
75 | $this->address_override = $address_override;
76 | return $this;
77 | }
78 |
79 | /**
80 | * Indicates whether to display the shipping address that is passed to this call rather than the one on file with PayPal for this buyer on the PayPal experience pages. Valid value is `0` or `1`. Set to `0` to display the shipping address on file. Set to `1` to display the shipping address supplied to this call; the buyer cannot edit this shipping address.
81 | *
82 | * @return int
83 | */
84 | public function getAddressOverride()
85 | {
86 | return $this->address_override;
87 | }
88 |
89 | }
90 |
--------------------------------------------------------------------------------
/application/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Api/InstallmentInfo.php:
--------------------------------------------------------------------------------
1 | installment_id = $installment_id;
31 | return $this;
32 | }
33 |
34 | /**
35 | * Installment id.
36 | *
37 | * @return string
38 | */
39 | public function getInstallmentId()
40 | {
41 | return $this->installment_id;
42 | }
43 |
44 | /**
45 | * Credit card network.
46 | * Valid Values: ["VISA", "MASTERCARD"]
47 | *
48 | * @param string $network
49 | *
50 | * @return $this
51 | */
52 | public function setNetwork($network)
53 | {
54 | $this->network = $network;
55 | return $this;
56 | }
57 |
58 | /**
59 | * Credit card network.
60 | *
61 | * @return string
62 | */
63 | public function getNetwork()
64 | {
65 | return $this->network;
66 | }
67 |
68 | /**
69 | * Credit card issuer.
70 | *
71 | * @param string $issuer
72 | *
73 | * @return $this
74 | */
75 | public function setIssuer($issuer)
76 | {
77 | $this->issuer = $issuer;
78 | return $this;
79 | }
80 |
81 | /**
82 | * Credit card issuer.
83 | *
84 | * @return string
85 | */
86 | public function getIssuer()
87 | {
88 | return $this->issuer;
89 | }
90 |
91 | /**
92 | * List of available installment options and the cost associated with each one.
93 | *
94 | * @param \PayPal\Api\InstallmentOption[] $installment_options
95 | *
96 | * @return $this
97 | */
98 | public function setInstallmentOptions($installment_options)
99 | {
100 | $this->installment_options = $installment_options;
101 | return $this;
102 | }
103 |
104 | /**
105 | * List of available installment options and the cost associated with each one.
106 | *
107 | * @return \PayPal\Api\InstallmentOption[]
108 | */
109 | public function getInstallmentOptions()
110 | {
111 | return $this->installment_options;
112 | }
113 |
114 | /**
115 | * Append InstallmentOptions to the list.
116 | *
117 | * @param \PayPal\Api\InstallmentOption $installmentOption
118 | * @return $this
119 | */
120 | public function addInstallmentOption($installmentOption)
121 | {
122 | if (!$this->getInstallmentOptions()) {
123 | return $this->setInstallmentOptions(array($installmentOption));
124 | } else {
125 | return $this->setInstallmentOptions(
126 | array_merge($this->getInstallmentOptions(), array($installmentOption))
127 | );
128 | }
129 | }
130 |
131 | /**
132 | * Remove InstallmentOptions from the list.
133 | *
134 | * @param \PayPal\Api\InstallmentOption $installmentOption
135 | * @return $this
136 | */
137 | public function removeInstallmentOption($installmentOption)
138 | {
139 | return $this->setInstallmentOptions(
140 | array_diff($this->getInstallmentOptions(), array($installmentOption))
141 | );
142 | }
143 |
144 | }
145 |
--------------------------------------------------------------------------------
/application/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Api/InstallmentOption.php:
--------------------------------------------------------------------------------
1 | term = $term;
31 | return $this;
32 | }
33 |
34 | /**
35 | * Number of installments
36 | *
37 | * @return int
38 | */
39 | public function getTerm()
40 | {
41 | return $this->term;
42 | }
43 |
44 | /**
45 | * Monthly payment
46 | *
47 | * @param \PayPal\Api\Currency $monthly_payment
48 | *
49 | * @return $this
50 | */
51 | public function setMonthlyPayment($monthly_payment)
52 | {
53 | $this->monthly_payment = $monthly_payment;
54 | return $this;
55 | }
56 |
57 | /**
58 | * Monthly payment
59 | *
60 | * @return \PayPal\Api\Currency
61 | */
62 | public function getMonthlyPayment()
63 | {
64 | return $this->monthly_payment;
65 | }
66 |
67 | /**
68 | * Discount amount applied to the payment, if any
69 | *
70 | * @param \PayPal\Api\Currency $discount_amount
71 | *
72 | * @return $this
73 | */
74 | public function setDiscountAmount($discount_amount)
75 | {
76 | $this->discount_amount = $discount_amount;
77 | return $this;
78 | }
79 |
80 | /**
81 | * Discount amount applied to the payment, if any
82 | *
83 | * @return \PayPal\Api\Currency
84 | */
85 | public function getDiscountAmount()
86 | {
87 | return $this->discount_amount;
88 | }
89 |
90 | /**
91 | * Discount percentage applied to the payment, if any
92 | *
93 | * @param string $discount_percentage
94 | *
95 | * @return $this
96 | */
97 | public function setDiscountPercentage($discount_percentage)
98 | {
99 | $this->discount_percentage = $discount_percentage;
100 | return $this;
101 | }
102 |
103 | /**
104 | * Discount percentage applied to the payment, if any
105 | *
106 | * @return string
107 | */
108 | public function getDiscountPercentage()
109 | {
110 | return $this->discount_percentage;
111 | }
112 |
113 | }
114 |
--------------------------------------------------------------------------------
/application/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Api/InvoiceAddress.php:
--------------------------------------------------------------------------------
1 | phone = $phone;
26 | return $this;
27 | }
28 |
29 | /**
30 | * Phone number in E.123 format.
31 | *
32 | * @return \PayPal\Api\Phone
33 | */
34 | public function getPhone()
35 | {
36 | return $this->phone;
37 | }
38 |
39 | }
40 |
--------------------------------------------------------------------------------
/application/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Api/InvoiceNumber.php:
--------------------------------------------------------------------------------
1 | number = $number;
27 | return $this;
28 | }
29 |
30 | /**
31 | * The next invoice number.
32 | *
33 | * @return string
34 | */
35 | public function getNumber() {
36 | return $this->number;
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/application/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Api/InvoiceSearchResponse.php:
--------------------------------------------------------------------------------
1 | total_count = $total_count;
29 | return $this;
30 | }
31 |
32 | /**
33 | * Total number of invoices.
34 | *
35 | * @return int
36 | */
37 | public function getTotalCount()
38 | {
39 | return $this->total_count;
40 | }
41 |
42 | /**
43 | * List of invoices belonging to a merchant.
44 | *
45 | * @param \PayPal\Api\Invoice[] $invoices
46 | *
47 | * @return $this
48 | */
49 | public function setInvoices($invoices)
50 | {
51 | $this->invoices = $invoices;
52 | return $this;
53 | }
54 |
55 | /**
56 | * List of invoices belonging to a merchant.
57 | *
58 | * @return \PayPal\Api\Invoice[]
59 | */
60 | public function getInvoices()
61 | {
62 | return $this->invoices;
63 | }
64 |
65 | /**
66 | * Append Invoices to the list.
67 | *
68 | * @param \PayPal\Api\Invoice $invoice
69 | * @return $this
70 | */
71 | public function addInvoice($invoice)
72 | {
73 | if (!$this->getInvoices()) {
74 | return $this->setInvoices(array($invoice));
75 | } else {
76 | return $this->setInvoices(
77 | array_merge($this->getInvoices(), array($invoice))
78 | );
79 | }
80 | }
81 |
82 | /**
83 | * Remove Invoices from the list.
84 | *
85 | * @param \PayPal\Api\Invoice $invoice
86 | * @return $this
87 | */
88 | public function removeInvoice($invoice)
89 | {
90 | return $this->setInvoices(
91 | array_diff($this->getInvoices(), array($invoice))
92 | );
93 | }
94 |
95 | }
96 |
--------------------------------------------------------------------------------
/application/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Api/Links.php:
--------------------------------------------------------------------------------
1 | href = $href;
33 | return $this;
34 | }
35 |
36 | /**
37 | * Gets Href
38 | *
39 | * @return string
40 | */
41 | public function getHref()
42 | {
43 | return $this->href;
44 | }
45 |
46 | /**
47 | * Sets Rel
48 | *
49 | * @param string $rel
50 | *
51 | * @return $this
52 | */
53 | public function setRel($rel)
54 | {
55 | $this->rel = $rel;
56 | return $this;
57 | }
58 |
59 | /**
60 | * Gets Rel
61 | *
62 | * @return string
63 | */
64 | public function getRel()
65 | {
66 | return $this->rel;
67 | }
68 |
69 | /**
70 | * Sets TargetSchema
71 | *
72 | * @param \PayPal\Api\HyperSchema $targetSchema
73 | *
74 | * @return $this
75 | */
76 | public function setTargetSchema($targetSchema)
77 | {
78 | $this->targetSchema = $targetSchema;
79 | return $this;
80 | }
81 |
82 | /**
83 | * Gets TargetSchema
84 | *
85 | * @return \PayPal\Api\HyperSchema
86 | */
87 | public function getTargetSchema()
88 | {
89 | return $this->targetSchema;
90 | }
91 |
92 | /**
93 | * Sets Method
94 | *
95 | * @param string $method
96 | *
97 | * @return $this
98 | */
99 | public function setMethod($method)
100 | {
101 | $this->method = $method;
102 | return $this;
103 | }
104 |
105 | /**
106 | * Gets Method
107 | *
108 | * @return string
109 | */
110 | public function getMethod()
111 | {
112 | return $this->method;
113 | }
114 |
115 | /**
116 | * Sets Enctype
117 | *
118 | * @param string $enctype
119 | *
120 | * @return $this
121 | */
122 | public function setEnctype($enctype)
123 | {
124 | $this->enctype = $enctype;
125 | return $this;
126 | }
127 |
128 | /**
129 | * Gets Enctype
130 | *
131 | * @return string
132 | */
133 | public function getEnctype()
134 | {
135 | return $this->enctype;
136 | }
137 |
138 | /**
139 | * Sets Schema
140 | *
141 | * @param \PayPal\Api\HyperSchema $schema
142 | *
143 | * @return $this
144 | */
145 | public function setSchema($schema)
146 | {
147 | $this->schema = $schema;
148 | return $this;
149 | }
150 |
151 | /**
152 | * Gets Schema
153 | *
154 | * @return \PayPal\Api\HyperSchema
155 | */
156 | public function getSchema()
157 | {
158 | return $this->schema;
159 | }
160 |
161 | }
162 |
--------------------------------------------------------------------------------
/application/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Api/Measurement.php:
--------------------------------------------------------------------------------
1 | value = $value;
29 | return $this;
30 | }
31 |
32 | /**
33 | * Value this measurement represents.
34 | *
35 | * @return string
36 | */
37 | public function getValue()
38 | {
39 | return $this->value;
40 | }
41 |
42 | /**
43 | * Unit in which the value is represented.
44 | *
45 | * @param string $unit
46 | *
47 | * @return $this
48 | */
49 | public function setUnit($unit)
50 | {
51 | $this->unit = $unit;
52 | return $this;
53 | }
54 |
55 | /**
56 | * Unit in which the value is represented.
57 | *
58 | * @return string
59 | */
60 | public function getUnit()
61 | {
62 | return $this->unit;
63 | }
64 |
65 | }
66 |
--------------------------------------------------------------------------------
/application/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Api/NameValuePair.php:
--------------------------------------------------------------------------------
1 | name = $name;
29 | return $this;
30 | }
31 |
32 | /**
33 | * Key for the name value pair. The value name types should be correlated
34 | *
35 | * @return string
36 | */
37 | public function getName()
38 | {
39 | return $this->name;
40 | }
41 |
42 | /**
43 | * Value for the name value pair.
44 | *
45 | * @param string $value
46 | *
47 | * @return $this
48 | */
49 | public function setValue($value)
50 | {
51 | $this->value = $value;
52 | return $this;
53 | }
54 |
55 | /**
56 | * Value for the name value pair.
57 | *
58 | * @return string
59 | */
60 | public function getValue()
61 | {
62 | return $this->value;
63 | }
64 |
65 | }
66 |
--------------------------------------------------------------------------------
/application/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Api/Notification.php:
--------------------------------------------------------------------------------
1 | subject = $subject;
31 | return $this;
32 | }
33 |
34 | /**
35 | * Subject of the notification.
36 | *
37 | * @return string
38 | */
39 | public function getSubject()
40 | {
41 | return $this->subject;
42 | }
43 |
44 | /**
45 | * Note to the payer.
46 | *
47 | * @param string $note
48 | *
49 | * @return $this
50 | */
51 | public function setNote($note)
52 | {
53 | $this->note = $note;
54 | return $this;
55 | }
56 |
57 | /**
58 | * Note to the payer.
59 | *
60 | * @return string
61 | */
62 | public function getNote()
63 | {
64 | return $this->note;
65 | }
66 |
67 | /**
68 | * Indicates whether to send a copy of the email to the merchant.
69 | *
70 | * @param bool $send_to_merchant
71 | *
72 | * @return $this
73 | */
74 | public function setSendToMerchant($send_to_merchant)
75 | {
76 | $this->send_to_merchant = $send_to_merchant;
77 | return $this;
78 | }
79 |
80 | /**
81 | * Indicates whether to send a copy of the email to the merchant.
82 | *
83 | * @return bool
84 | */
85 | public function getSendToMerchant()
86 | {
87 | return $this->send_to_merchant;
88 | }
89 |
90 | /**
91 | * Applicable for invoices created with Cc emails. If this field is not in the body, all the cc email addresses added as part of the invoice shall be notified else this field can be used to limit the list of email addresses. Note: additional email addresses are not supported.
92 | *
93 | * @param string[] $cc_emails
94 | *
95 | * @return $this
96 | */
97 | public function setCcEmails($cc_emails)
98 | {
99 | $this->cc_emails = $cc_emails;
100 | return $this;
101 | }
102 |
103 | /**
104 | * Applicable for invoices created with Cc emails. If this field is not in the body, all the cc email addresses added as part of the invoice shall be notified else this field can be used to limit the list of email addresses. Note: additional email addresses are not supported.
105 | *
106 | * @return string[]
107 | */
108 | public function getCcEmails()
109 | {
110 | return $this->cc_emails;
111 | }
112 |
113 | /**
114 | * Append CcEmails to the list.
115 | *
116 | * @param string $string
117 | * @return $this
118 | */
119 | public function addCcEmail($string)
120 | {
121 | if (!$this->getCcEmails()) {
122 | return $this->setCcEmails(array($string));
123 | } else {
124 | return $this->setCcEmails(
125 | array_merge($this->getCcEmails(), array($string))
126 | );
127 | }
128 | }
129 |
130 | /**
131 | * Remove CcEmails from the list.
132 | *
133 | * @param string $string
134 | * @return $this
135 | */
136 | public function removeCcEmail($string)
137 | {
138 | return $this->setCcEmails(
139 | array_diff($this->getCcEmails(), array($string))
140 | );
141 | }
142 |
143 | }
144 |
--------------------------------------------------------------------------------
/application/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Api/OpenIdAddress.php:
--------------------------------------------------------------------------------
1 | street_address = $street_address;
31 | return $this;
32 | }
33 |
34 | /**
35 | * Full street address component, which may include house number, street name.
36 | *
37 | * @return string
38 | */
39 | public function getStreetAddress()
40 | {
41 | return $this->street_address;
42 | }
43 |
44 | /**
45 | * City or locality component.
46 | *
47 | * @param string $locality
48 | * @return self
49 | */
50 | public function setLocality($locality)
51 | {
52 | $this->locality = $locality;
53 | return $this;
54 | }
55 |
56 | /**
57 | * City or locality component.
58 | *
59 | * @return string
60 | */
61 | public function getLocality()
62 | {
63 | return $this->locality;
64 | }
65 |
66 | /**
67 | * State, province, prefecture or region component.
68 | *
69 | * @param string $region
70 | * @return self
71 | */
72 | public function setRegion($region)
73 | {
74 | $this->region = $region;
75 | return $this;
76 | }
77 |
78 | /**
79 | * State, province, prefecture or region component.
80 | *
81 | * @return string
82 | */
83 | public function getRegion()
84 | {
85 | return $this->region;
86 | }
87 |
88 | /**
89 | * Zip code or postal code component.
90 | *
91 | * @param string $postal_code
92 | * @return self
93 | */
94 | public function setPostalCode($postal_code)
95 | {
96 | $this->postal_code = $postal_code;
97 | return $this;
98 | }
99 |
100 | /**
101 | * Zip code or postal code component.
102 | *
103 | * @return string
104 | */
105 | public function getPostalCode()
106 | {
107 | return $this->postal_code;
108 | }
109 |
110 | /**
111 | * Country name component.
112 | *
113 | * @param string $country
114 | * @return self
115 | */
116 | public function setCountry($country)
117 | {
118 | $this->country = $country;
119 | return $this;
120 | }
121 |
122 | /**
123 | * Country name component.
124 | *
125 | * @return string
126 | */
127 | public function getCountry()
128 | {
129 | return $this->country;
130 | }
131 |
132 |
133 | }
134 |
--------------------------------------------------------------------------------
/application/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Api/OpenIdError.php:
--------------------------------------------------------------------------------
1 | error = $error;
27 | return $this;
28 | }
29 |
30 | /**
31 | * A single ASCII error code from the following enum.
32 | *
33 | * @return string
34 | */
35 | public function getError()
36 | {
37 | return $this->error;
38 | }
39 |
40 | /**
41 | * A resource ID that indicates the starting resource in the returned results.
42 | *
43 | * @param string $error_description
44 | * @return self
45 | */
46 | public function setErrorDescription($error_description)
47 | {
48 | $this->error_description = $error_description;
49 | return $this;
50 | }
51 |
52 | /**
53 | * A resource ID that indicates the starting resource in the returned results.
54 | *
55 | * @return string
56 | */
57 | public function getErrorDescription()
58 | {
59 | return $this->error_description;
60 | }
61 |
62 | /**
63 | * A URI identifying a human-readable web page with information about the error, used to provide the client developer with additional information about the error.
64 | *
65 | * @param string $error_uri
66 | * @return self
67 | */
68 | public function setErrorUri($error_uri)
69 | {
70 | $this->error_uri = $error_uri;
71 | return $this;
72 | }
73 |
74 | /**
75 | * A URI identifying a human-readable web page with information about the error, used to provide the client developer with additional information about the error.
76 | *
77 | * @return string
78 | */
79 | public function getErrorUri()
80 | {
81 | return $this->error_uri;
82 | }
83 |
84 |
85 | }
86 |
--------------------------------------------------------------------------------
/application/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Api/OverrideChargeModel.php:
--------------------------------------------------------------------------------
1 | charge_id = $charge_id;
29 | return $this;
30 | }
31 |
32 | /**
33 | * ID of charge model.
34 | *
35 | * @return string
36 | */
37 | public function getChargeId()
38 | {
39 | return $this->charge_id;
40 | }
41 |
42 | /**
43 | * Updated Amount to be associated with this charge model.
44 | *
45 | * @param \PayPal\Api\Currency $amount
46 | *
47 | * @return $this
48 | */
49 | public function setAmount($amount)
50 | {
51 | $this->amount = $amount;
52 | return $this;
53 | }
54 |
55 | /**
56 | * Updated Amount to be associated with this charge model.
57 | *
58 | * @return \PayPal\Api\Currency
59 | */
60 | public function getAmount()
61 | {
62 | return $this->amount;
63 | }
64 |
65 | }
66 |
--------------------------------------------------------------------------------
/application/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Api/Patch.php:
--------------------------------------------------------------------------------
1 | op = $op;
32 | return $this;
33 | }
34 |
35 | /**
36 | * The operation to perform.
37 | *
38 | * @return string
39 | */
40 | public function getOp()
41 | {
42 | return $this->op;
43 | }
44 |
45 | /**
46 | * A JSON pointer that references a location in the target document where the operation is performed. A `string` value.
47 | *
48 | * @param string $path
49 | *
50 | * @return $this
51 | */
52 | public function setPath($path)
53 | {
54 | $this->path = $path;
55 | return $this;
56 | }
57 |
58 | /**
59 | * A JSON pointer that references a location in the target document where the operation is performed. A `string` value.
60 | *
61 | * @return string
62 | */
63 | public function getPath()
64 | {
65 | return $this->path;
66 | }
67 |
68 | /**
69 | * New value to apply based on the operation.
70 | *
71 | * @param mixed $value
72 | *
73 | * @return $this
74 | */
75 | public function setValue($value)
76 | {
77 | $this->value = $value;
78 | return $this;
79 | }
80 |
81 | /**
82 | * New value to apply based on the operation.
83 | *
84 | * @return mixed
85 | */
86 | public function getValue()
87 | {
88 | return $this->value;
89 | }
90 |
91 | /**
92 | * A string containing a JSON Pointer value that references the location in the target document to move the value from.
93 | *
94 | * @param string $from
95 | *
96 | * @return $this
97 | */
98 | public function setFrom($from)
99 | {
100 | $this->from = $from;
101 | return $this;
102 | }
103 |
104 | /**
105 | * A string containing a JSON Pointer value that references the location in the target document to move the value from.
106 | *
107 | * @return string
108 | */
109 | public function getFrom()
110 | {
111 | return $this->from;
112 | }
113 |
114 | }
115 |
--------------------------------------------------------------------------------
/application/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Api/PatchRequest.php:
--------------------------------------------------------------------------------
1 | patches = $patches;
28 | return $this;
29 | }
30 |
31 | /**
32 | * Placeholder for holding array of patch objects
33 | *
34 | * @return \PayPal\Api\Patch[]
35 | */
36 | public function getPatches()
37 | {
38 | return $this->patches;
39 | }
40 |
41 | /**
42 | * Append Patches to the list.
43 | *
44 | * @param \PayPal\Api\Patch $patch
45 | * @return $this
46 | */
47 | public function addPatch($patch)
48 | {
49 | if (!$this->getPatches()) {
50 | return $this->setPatches(array($patch));
51 | } else {
52 | return $this->setPatches(
53 | array_merge($this->getPatches(), array($patch))
54 | );
55 | }
56 | }
57 |
58 | /**
59 | * Remove Patches from the list.
60 | *
61 | * @param \PayPal\Api\Patch $patch
62 | * @return $this
63 | */
64 | public function removePatch($patch)
65 | {
66 | return $this->setPatches(
67 | array_diff($this->getPatches(), array($patch))
68 | );
69 | }
70 |
71 | /**
72 | * As PatchRequest holds the array of Patch object, we would override the json conversion to return
73 | * a json representation of array of Patch objects.
74 | *
75 | * @param int $options
76 | * @return mixed|string
77 | */
78 | public function toJSON($options = 0)
79 | {
80 | $json = array();
81 | foreach ($this->getPatches() as $patch) {
82 | $json[] = $patch->toArray();
83 | }
84 | return str_replace('\\/', '/', json_encode($json, $options));
85 | }
86 | }
87 |
--------------------------------------------------------------------------------
/application/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Api/PaymentExecution.php:
--------------------------------------------------------------------------------
1 | payer_id = $payer_id;
29 | return $this;
30 | }
31 |
32 | /**
33 | * The ID of the Payer, passed in the `return_url` by PayPal.
34 | *
35 | * @return string
36 | */
37 | public function getPayerId()
38 | {
39 | return $this->payer_id;
40 | }
41 |
42 | /**
43 | * Carrier account id for a carrier billing payment. For a carrier billing payment, payer_id is not applicable.
44 | * @deprecated Not publicly available
45 | * @param string $carrier_account_id
46 | *
47 | * @return $this
48 | */
49 | public function setCarrierAccountId($carrier_account_id)
50 | {
51 | $this->carrier_account_id = $carrier_account_id;
52 | return $this;
53 | }
54 |
55 | /**
56 | * Carrier account id for a carrier billing payment. For a carrier billing payment, payer_id is not applicable.
57 | * @deprecated Not publicly available
58 | * @return string
59 | */
60 | public function getCarrierAccountId()
61 | {
62 | return $this->carrier_account_id;
63 | }
64 |
65 | /**
66 | * Transactional details including the amount and item details.
67 | *
68 | * @param \PayPal\Api\Transaction[] $transactions
69 | *
70 | * @return $this
71 | */
72 | public function setTransactions($transactions)
73 | {
74 | $this->transactions = $transactions;
75 | return $this;
76 | }
77 |
78 | /**
79 | * Transactional details including the amount and item details.
80 | *
81 | * @return \PayPal\Api\Transaction[]
82 | */
83 | public function getTransactions()
84 | {
85 | return $this->transactions;
86 | }
87 |
88 | /**
89 | * Append Transactions to the list.
90 | *
91 | * @param \PayPal\Api\Transaction $transaction
92 | * @return $this
93 | */
94 | public function addTransaction($transaction)
95 | {
96 | if (!$this->getTransactions()) {
97 | return $this->setTransactions(array($transaction));
98 | } else {
99 | return $this->setTransactions(
100 | array_merge($this->getTransactions(), array($transaction))
101 | );
102 | }
103 | }
104 |
105 | /**
106 | * Remove Transactions from the list.
107 | *
108 | * @param \PayPal\Api\Transaction $transaction
109 | * @return $this
110 | */
111 | public function removeTransaction($transaction)
112 | {
113 | return $this->setTransactions(
114 | array_diff($this->getTransactions(), array($transaction))
115 | );
116 | }
117 |
118 | }
119 |
--------------------------------------------------------------------------------
/application/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Api/PaymentHistory.php:
--------------------------------------------------------------------------------
1 | payments = $payments;
30 | return $this;
31 | }
32 |
33 | /**
34 | * A list of Payment resources
35 | *
36 | * @return \PayPal\Api\Payment[]
37 | */
38 | public function getPayments()
39 | {
40 | return $this->payments;
41 | }
42 |
43 | /**
44 | * Append Payments to the list.
45 | *
46 | * @param \PayPal\Api\Payment $payment
47 | * @return $this
48 | */
49 | public function addPayment($payment)
50 | {
51 | if (!$this->getPayments()) {
52 | return $this->setPayments(array($payment));
53 | } else {
54 | return $this->setPayments(
55 | array_merge($this->getPayments(), array($payment))
56 | );
57 | }
58 | }
59 |
60 | /**
61 | * Remove Payments from the list.
62 | *
63 | * @param \PayPal\Api\Payment $payment
64 | * @return $this
65 | */
66 | public function removePayment($payment)
67 | {
68 | return $this->setPayments(
69 | array_diff($this->getPayments(), array($payment))
70 | );
71 | }
72 |
73 | /**
74 | * Number of items returned in each range of results. Note that the last results range could have fewer items than the requested number of items. Maximum value: 20.
75 | *
76 | * @param int $count
77 | *
78 | * @return $this
79 | */
80 | public function setCount($count)
81 | {
82 | $this->count = $count;
83 | return $this;
84 | }
85 |
86 | /**
87 | * Number of items returned in each range of results. Note that the last results range could have fewer items than the requested number of items. Maximum value: 20.
88 | *
89 | * @return int
90 | */
91 | public function getCount()
92 | {
93 | return $this->count;
94 | }
95 |
96 | /**
97 | * Identifier of the next element to get the next range of results.
98 | *
99 | * @param string $next_id
100 | *
101 | * @return $this
102 | */
103 | public function setNextId($next_id)
104 | {
105 | $this->next_id = $next_id;
106 | return $this;
107 | }
108 |
109 | /**
110 | * Identifier of the next element to get the next range of results.
111 | *
112 | * @return string
113 | */
114 | public function getNextId()
115 | {
116 | return $this->next_id;
117 | }
118 |
119 | }
120 |
--------------------------------------------------------------------------------
/application/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Api/PaymentOptions.php:
--------------------------------------------------------------------------------
1 | allowed_payment_method = $allowed_payment_method;
29 | return $this;
30 | }
31 |
32 | /**
33 | * Payment method requested for this purchase unit
34 | *
35 | * @return string
36 | */
37 | public function getAllowedPaymentMethod()
38 | {
39 | return $this->allowed_payment_method;
40 | }
41 |
42 | /**
43 | * Indicator if this payment request is a recurring payment. Only supported when the `payment_method` is set to `credit_card`
44 | * @deprecated Not publicly available
45 | * @param bool $recurring_flag
46 | *
47 | * @return $this
48 | */
49 | public function setRecurringFlag($recurring_flag)
50 | {
51 | $this->recurring_flag = $recurring_flag;
52 | return $this;
53 | }
54 |
55 | /**
56 | * Indicator if this payment request is a recurring payment. Only supported when the `payment_method` is set to `credit_card`
57 | * @deprecated Not publicly available
58 | * @return bool
59 | */
60 | public function getRecurringFlag()
61 | {
62 | return $this->recurring_flag;
63 | }
64 |
65 | /**
66 | * Indicator if fraud management filters (fmf) should be skipped for this transaction. Only supported when the `payment_method` is set to `credit_card`
67 | * @deprecated Not publicly available
68 | * @param bool $skip_fmf
69 | *
70 | * @return $this
71 | */
72 | public function setSkipFmf($skip_fmf)
73 | {
74 | $this->skip_fmf = $skip_fmf;
75 | return $this;
76 | }
77 |
78 | /**
79 | * Indicator if fraud management filters (fmf) should be skipped for this transaction. Only supported when the `payment_method` is set to `credit_card`
80 | * @deprecated Not publicly available
81 | * @return bool
82 | */
83 | public function getSkipFmf()
84 | {
85 | return $this->skip_fmf;
86 | }
87 |
88 | }
89 |
--------------------------------------------------------------------------------
/application/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Api/PaymentSummary.php:
--------------------------------------------------------------------------------
1 | paypal = $paypal;
29 | return $this;
30 | }
31 |
32 | /**
33 | * Total Amount paid/refunded via PayPal.
34 | *
35 | * @return \PayPal\Api\Currency
36 | */
37 | public function getPaypal()
38 | {
39 | return $this->paypal;
40 | }
41 |
42 | /**
43 | * Total Amount paid/refunded via other sources.
44 | *
45 | * @param \PayPal\Api\Currency $other
46 | *
47 | * @return $this
48 | */
49 | public function setOther($other)
50 | {
51 | $this->other = $other;
52 | return $this;
53 | }
54 |
55 | /**
56 | * Total Amount paid/refunded via other sources.
57 | *
58 | * @return \PayPal\Api\Currency
59 | */
60 | public function getOther()
61 | {
62 | return $this->other;
63 | }
64 |
65 | }
66 |
--------------------------------------------------------------------------------
/application/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Api/PaymentTerm.php:
--------------------------------------------------------------------------------
1 | term_type = $term_type;
30 | return $this;
31 | }
32 |
33 | /**
34 | * The terms by which the invoice payment is due.
35 | *
36 | * @return string
37 | */
38 | public function getTermType()
39 | {
40 | return $this->term_type;
41 | }
42 |
43 | /**
44 | * The date when the invoice payment is due. This date must be a future date. Date format is *yyyy*-*MM*-*dd* *z*, as defined in [Internet Date/Time Format](http://tools.ietf.org/html/rfc3339#section-5.6).
45 | *
46 | * @param string $due_date
47 | *
48 | * @return $this
49 | */
50 | public function setDueDate($due_date)
51 | {
52 | $this->due_date = $due_date;
53 | return $this;
54 | }
55 |
56 | /**
57 | * The date when the invoice payment is due. This date must be a future date. Date format is *yyyy*-*MM*-*dd* *z*, as defined in [Internet Date/Time Format](http://tools.ietf.org/html/rfc3339#section-5.6).
58 | *
59 | * @return string
60 | */
61 | public function getDueDate()
62 | {
63 | return $this->due_date;
64 | }
65 |
66 | }
67 |
--------------------------------------------------------------------------------
/application/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Api/PayoutBatch.php:
--------------------------------------------------------------------------------
1 | batch_header = $batch_header;
30 | return $this;
31 | }
32 |
33 | /**
34 | * A batch header. Includes the generated batch status.
35 | *
36 | * @return \PayPal\Api\PayoutBatchHeader
37 | */
38 | public function getBatchHeader()
39 | {
40 | return $this->batch_header;
41 | }
42 |
43 | /**
44 | * An array of items in a batch payout.
45 | *
46 | * @param \PayPal\Api\PayoutItemDetails[] $items
47 | *
48 | * @return $this
49 | */
50 | public function setItems($items)
51 | {
52 | $this->items = $items;
53 | return $this;
54 | }
55 |
56 | /**
57 | * An array of items in a batch payout.
58 | *
59 | * @return \PayPal\Api\PayoutItemDetails[]
60 | */
61 | public function getItems()
62 | {
63 | return $this->items;
64 | }
65 |
66 | /**
67 | * Append Items to the list.
68 | *
69 | * @param \PayPal\Api\PayoutItemDetails $payoutItemDetails
70 | * @return $this
71 | */
72 | public function addItem($payoutItemDetails)
73 | {
74 | if (!$this->getItems()) {
75 | return $this->setItems(array($payoutItemDetails));
76 | } else {
77 | return $this->setItems(
78 | array_merge($this->getItems(), array($payoutItemDetails))
79 | );
80 | }
81 | }
82 |
83 | /**
84 | * Remove Items from the list.
85 | *
86 | * @param \PayPal\Api\PayoutItemDetails $payoutItemDetails
87 | * @return $this
88 | */
89 | public function removeItem($payoutItemDetails)
90 | {
91 | return $this->setItems(
92 | array_diff($this->getItems(), array($payoutItemDetails))
93 | );
94 | }
95 |
96 |
97 | /**
98 | * Sets Links
99 | *
100 | * @param \PayPal\Api\Links[] $links
101 | *
102 | * @return $this
103 | */
104 | public function setLinks($links)
105 | {
106 | $this->links = $links;
107 | return $this;
108 | }
109 |
110 | /**
111 | * Gets Links
112 | *
113 | * @return \PayPal\Api\Links[]
114 | */
115 | public function getLinks()
116 | {
117 | return $this->links;
118 | }
119 |
120 | }
121 |
--------------------------------------------------------------------------------
/application/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Api/Phone.php:
--------------------------------------------------------------------------------
1 | country_code = $country_code;
30 | return $this;
31 | }
32 |
33 | /**
34 | * Country code (from in E.164 format)
35 | *
36 | * @return string
37 | */
38 | public function getCountryCode()
39 | {
40 | return $this->country_code;
41 | }
42 |
43 | /**
44 | * In-country phone number (from in E.164 format)
45 | *
46 | * @param string $national_number
47 | *
48 | * @return $this
49 | */
50 | public function setNationalNumber($national_number)
51 | {
52 | $this->national_number = $national_number;
53 | return $this;
54 | }
55 |
56 | /**
57 | * In-country phone number (from in E.164 format)
58 | *
59 | * @return string
60 | */
61 | public function getNationalNumber()
62 | {
63 | return $this->national_number;
64 | }
65 |
66 | /**
67 | * Phone extension
68 | *
69 | * @param string $extension
70 | *
71 | * @return $this
72 | */
73 | public function setExtension($extension)
74 | {
75 | $this->extension = $extension;
76 | return $this;
77 | }
78 |
79 | /**
80 | * Phone extension
81 | *
82 | * @return string
83 | */
84 | public function getExtension()
85 | {
86 | return $this->extension;
87 | }
88 |
89 | }
90 |
--------------------------------------------------------------------------------
/application/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Api/PotentialPayerInfo.php:
--------------------------------------------------------------------------------
1 | email = $email;
27 | return $this;
28 | }
29 |
30 | /**
31 | * Email address representing the potential payer.
32 | * @deprecated Not publicly available
33 | * @return string
34 | */
35 | public function getEmail()
36 | {
37 | return $this->email;
38 | }
39 |
40 | /**
41 | * ExternalRememberMe id representing the potential payer
42 | * @deprecated Not publicly available
43 | * @param string $external_remember_me_id
44 | *
45 | * @return $this
46 | */
47 | public function setExternalRememberMeId($external_remember_me_id)
48 | {
49 | $this->external_remember_me_id = $external_remember_me_id;
50 | return $this;
51 | }
52 |
53 | /**
54 | * ExternalRememberMe id representing the potential payer
55 | * @deprecated Not publicly available
56 | * @return string
57 | */
58 | public function getExternalRememberMeId()
59 | {
60 | return $this->external_remember_me_id;
61 | }
62 |
63 | /**
64 | * Account Number representing the potential payer
65 | * @deprecated Not publicly available
66 | * @param string $account_number
67 | *
68 | * @return $this
69 | */
70 | public function setAccountNumber($account_number)
71 | {
72 | $this->account_number = $account_number;
73 | return $this;
74 | }
75 |
76 | /**
77 | * Account Number representing the potential payer
78 | * @deprecated Not publicly available
79 | * @return string
80 | */
81 | public function getAccountNumber()
82 | {
83 | return $this->account_number;
84 | }
85 |
86 | /**
87 | * Billing address of the potential payer.
88 | * @deprecated Not publicly available
89 | * @param \PayPal\Api\Address $billing_address
90 | *
91 | * @return $this
92 | */
93 | public function setBillingAddress($billing_address)
94 | {
95 | $this->billing_address = $billing_address;
96 | return $this;
97 | }
98 |
99 | /**
100 | * Billing address of the potential payer.
101 | * @deprecated Not publicly available
102 | * @return \PayPal\Api\Address
103 | */
104 | public function getBillingAddress()
105 | {
106 | return $this->billing_address;
107 | }
108 |
109 | }
110 |
--------------------------------------------------------------------------------
/application/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Api/PrivateLabelCard.php:
--------------------------------------------------------------------------------
1 | id = $id;
32 | return $this;
33 | }
34 |
35 | /**
36 | * encrypted identifier of the private label card instrument.
37 | *
38 | * @return string
39 | */
40 | public function getId()
41 | {
42 | return $this->id;
43 | }
44 |
45 | /**
46 | * last 4 digits of the card number.
47 | *
48 | * @param string $card_number
49 | *
50 | * @return $this
51 | */
52 | public function setCardNumber($card_number)
53 | {
54 | $this->card_number = $card_number;
55 | return $this;
56 | }
57 |
58 | /**
59 | * last 4 digits of the card number.
60 | *
61 | * @return string
62 | */
63 | public function getCardNumber()
64 | {
65 | return $this->card_number;
66 | }
67 |
68 | /**
69 | * Merchants providing private label store cards have associated issuer account. This value indicates encrypted account number of the associated issuer account.
70 | *
71 | * @param string $issuer_id
72 | *
73 | * @return $this
74 | */
75 | public function setIssuerId($issuer_id)
76 | {
77 | $this->issuer_id = $issuer_id;
78 | return $this;
79 | }
80 |
81 | /**
82 | * Merchants providing private label store cards have associated issuer account. This value indicates encrypted account number of the associated issuer account.
83 | *
84 | * @return string
85 | */
86 | public function getIssuerId()
87 | {
88 | return $this->issuer_id;
89 | }
90 |
91 | /**
92 | * Merchants providing private label store cards have associated issuer account. This value indicates name on the issuer account.
93 | *
94 | * @param string $issuer_name
95 | *
96 | * @return $this
97 | */
98 | public function setIssuerName($issuer_name)
99 | {
100 | $this->issuer_name = $issuer_name;
101 | return $this;
102 | }
103 |
104 | /**
105 | * Merchants providing private label store cards have associated issuer account. This value indicates name on the issuer account.
106 | *
107 | * @return string
108 | */
109 | public function getIssuerName()
110 | {
111 | return $this->issuer_name;
112 | }
113 |
114 | /**
115 | * This value indicates URL to access PLCC program logo image
116 | *
117 | * @param string $image_key
118 | *
119 | * @return $this
120 | */
121 | public function setImageKey($image_key)
122 | {
123 | $this->image_key = $image_key;
124 | return $this;
125 | }
126 |
127 | /**
128 | * This value indicates URL to access PLCC program logo image
129 | *
130 | * @return string
131 | */
132 | public function getImageKey()
133 | {
134 | return $this->image_key;
135 | }
136 |
137 | }
138 |
--------------------------------------------------------------------------------
/application/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Api/RedirectUrls.php:
--------------------------------------------------------------------------------
1 | return_url = $return_url;
31 | return $this;
32 | }
33 |
34 | /**
35 | * Url where the payer would be redirected to after approving the payment. **Required for PayPal account payments.**
36 | *
37 | * @return string
38 | */
39 | public function getReturnUrl()
40 | {
41 | return $this->return_url;
42 | }
43 |
44 | /**
45 | * Url where the payer would be redirected to after canceling the payment. **Required for PayPal account payments.**
46 | *
47 | * @param string $cancel_url
48 | * @throws \InvalidArgumentException
49 | * @return $this
50 | */
51 | public function setCancelUrl($cancel_url)
52 | {
53 | UrlValidator::validate($cancel_url, "CancelUrl");
54 | $this->cancel_url = $cancel_url;
55 | return $this;
56 | }
57 |
58 | /**
59 | * Url where the payer would be redirected to after canceling the payment. **Required for PayPal account payments.**
60 | *
61 | * @return string
62 | */
63 | public function getCancelUrl()
64 | {
65 | return $this->cancel_url;
66 | }
67 |
68 | }
69 |
--------------------------------------------------------------------------------
/application/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Api/RelatedResources.php:
--------------------------------------------------------------------------------
1 | sale = $sale;
32 | return $this;
33 | }
34 |
35 | /**
36 | * Sale transaction
37 | *
38 | * @return \PayPal\Api\Sale
39 | */
40 | public function getSale()
41 | {
42 | return $this->sale;
43 | }
44 |
45 | /**
46 | * Authorization transaction
47 | *
48 | * @param \PayPal\Api\Authorization $authorization
49 | *
50 | * @return $this
51 | */
52 | public function setAuthorization($authorization)
53 | {
54 | $this->authorization = $authorization;
55 | return $this;
56 | }
57 |
58 | /**
59 | * Authorization transaction
60 | *
61 | * @return \PayPal\Api\Authorization
62 | */
63 | public function getAuthorization()
64 | {
65 | return $this->authorization;
66 | }
67 |
68 | /**
69 | * Order transaction
70 | *
71 | * @param \PayPal\Api\Order $order
72 | *
73 | * @return $this
74 | */
75 | public function setOrder($order)
76 | {
77 | $this->order = $order;
78 | return $this;
79 | }
80 |
81 | /**
82 | * Order transaction
83 | *
84 | * @return \PayPal\Api\Order
85 | */
86 | public function getOrder()
87 | {
88 | return $this->order;
89 | }
90 |
91 | /**
92 | * Capture transaction
93 | *
94 | * @param \PayPal\Api\Capture $capture
95 | *
96 | * @return $this
97 | */
98 | public function setCapture($capture)
99 | {
100 | $this->capture = $capture;
101 | return $this;
102 | }
103 |
104 | /**
105 | * Capture transaction
106 | *
107 | * @return \PayPal\Api\Capture
108 | */
109 | public function getCapture()
110 | {
111 | return $this->capture;
112 | }
113 |
114 | /**
115 | * Refund transaction
116 | *
117 | * @param \PayPal\Api\Refund $refund
118 | *
119 | * @return $this
120 | */
121 | public function setRefund($refund)
122 | {
123 | $this->refund = $refund;
124 | return $this;
125 | }
126 |
127 | /**
128 | * Refund transaction
129 | *
130 | * @return \PayPal\Api\Refund
131 | */
132 | public function getRefund()
133 | {
134 | return $this->refund;
135 | }
136 |
137 | }
138 |
--------------------------------------------------------------------------------
/application/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Api/ShippingAddress.php:
--------------------------------------------------------------------------------
1 | id = $id;
26 | return $this;
27 | }
28 |
29 | /**
30 | * Address ID assigned in PayPal system.
31 | * @deprecated Not publicly available
32 | * @return string
33 | */
34 | public function getId()
35 | {
36 | return $this->id;
37 | }
38 |
39 | /**
40 | * Name of the recipient at this address.
41 | *
42 | * @param string $recipient_name
43 | *
44 | * @return $this
45 | */
46 | public function setRecipientName($recipient_name)
47 | {
48 | $this->recipient_name = $recipient_name;
49 | return $this;
50 | }
51 |
52 | /**
53 | * Name of the recipient at this address.
54 | *
55 | * @return string
56 | */
57 | public function getRecipientName()
58 | {
59 | return $this->recipient_name;
60 | }
61 |
62 | /**
63 | * Default shipping address of the Payer.
64 | * @deprecated Not publicly available
65 | * @param bool $default_address
66 | *
67 | * @return $this
68 | */
69 | public function setDefaultAddress($default_address)
70 | {
71 | $this->default_address = $default_address;
72 | return $this;
73 | }
74 |
75 | /**
76 | * Default shipping address of the Payer.
77 | * @deprecated Not publicly available
78 | * @return bool
79 | */
80 | public function getDefaultAddress()
81 | {
82 | return $this->default_address;
83 | }
84 |
85 | /**
86 | * Shipping Address marked as preferred by Payer.
87 | * @deprecated Not publicly available
88 | * @param bool $preferred_address
89 | *
90 | * @return $this
91 | */
92 | public function setPreferredAddress($preferred_address)
93 | {
94 | $this->preferred_address = $preferred_address;
95 | return $this;
96 | }
97 |
98 | /**
99 | * Shipping Address marked as preferred by Payer.
100 | * @deprecated Not publicly available
101 | * @return bool
102 | */
103 | public function getPreferredAddress()
104 | {
105 | return $this->preferred_address;
106 | }
107 |
108 | }
109 |
--------------------------------------------------------------------------------
/application/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Api/ShippingCost.php:
--------------------------------------------------------------------------------
1 | amount = $amount;
29 | return $this;
30 | }
31 |
32 | /**
33 | * The shipping cost, as an amount. Valid range is from 0 to 999999.99.
34 | *
35 | * @return \PayPal\Api\Currency
36 | */
37 | public function getAmount()
38 | {
39 | return $this->amount;
40 | }
41 |
42 | /**
43 | * The tax percentage on the shipping amount.
44 | *
45 | * @param \PayPal\Api\Tax $tax
46 | *
47 | * @return $this
48 | */
49 | public function setTax($tax)
50 | {
51 | $this->tax = $tax;
52 | return $this;
53 | }
54 |
55 | /**
56 | * The tax percentage on the shipping amount.
57 | *
58 | * @return \PayPal\Api\Tax
59 | */
60 | public function getTax()
61 | {
62 | return $this->tax;
63 | }
64 |
65 | }
66 |
--------------------------------------------------------------------------------
/application/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Api/ShippingInfo.php:
--------------------------------------------------------------------------------
1 | first_name = $first_name;
32 | return $this;
33 | }
34 |
35 | /**
36 | * The invoice recipient first name. Maximum length is 30 characters.
37 | *
38 | * @return string
39 | */
40 | public function getFirstName()
41 | {
42 | return $this->first_name;
43 | }
44 |
45 | /**
46 | * The invoice recipient last name. Maximum length is 30 characters.
47 | *
48 | * @param string $last_name
49 | *
50 | * @return $this
51 | */
52 | public function setLastName($last_name)
53 | {
54 | $this->last_name = $last_name;
55 | return $this;
56 | }
57 |
58 | /**
59 | * The invoice recipient last name. Maximum length is 30 characters.
60 | *
61 | * @return string
62 | */
63 | public function getLastName()
64 | {
65 | return $this->last_name;
66 | }
67 |
68 | /**
69 | * The invoice recipient company business name. Maximum length is 100 characters.
70 | *
71 | * @param string $business_name
72 | *
73 | * @return $this
74 | */
75 | public function setBusinessName($business_name)
76 | {
77 | $this->business_name = $business_name;
78 | return $this;
79 | }
80 |
81 | /**
82 | * The invoice recipient company business name. Maximum length is 100 characters.
83 | *
84 | * @return string
85 | */
86 | public function getBusinessName()
87 | {
88 | return $this->business_name;
89 | }
90 |
91 | /**
92 | *
93 | *
94 | * @param \PayPal\Api\Phone $phone
95 | * @return $this
96 | */
97 | public function setPhone($phone)
98 | {
99 | $this->phone = $phone;
100 | return $this;
101 | }
102 |
103 | /**
104 | *
105 | *
106 | * @return \PayPal\Api\Phone
107 | */
108 | public function getPhone()
109 | {
110 | return $this->phone;
111 | }
112 |
113 | /**
114 | * @deprecated Not used anymore
115 | *
116 | * @param string $email
117 | * @return $this
118 | */
119 | public function setEmail($email)
120 | {
121 | $this->email = $email;
122 | return $this;
123 | }
124 |
125 | /**
126 | * @deprecated Not used anymore
127 | *
128 | * @return string
129 | */
130 | public function getEmail()
131 | {
132 | return $this->email;
133 | }
134 |
135 | /**
136 | * Address of the invoice recipient.
137 | *
138 | * @param \PayPal\Api\InvoiceAddress $address
139 | *
140 | * @return $this
141 | */
142 | public function setAddress($address)
143 | {
144 | $this->address = $address;
145 | return $this;
146 | }
147 |
148 | /**
149 | * The invoice recipient address.
150 | *
151 | * @return \PayPal\Api\InvoiceAddress
152 | */
153 | public function getAddress()
154 | {
155 | return $this->address;
156 | }
157 |
158 | }
159 |
--------------------------------------------------------------------------------
/application/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Api/Tax.php:
--------------------------------------------------------------------------------
1 | id = $id;
33 | return $this;
34 | }
35 |
36 | /**
37 | * The resource ID.
38 | *
39 | * @return string
40 | */
41 | public function getId()
42 | {
43 | return $this->id;
44 | }
45 |
46 | /**
47 | * The tax name. Maximum length is 20 characters.
48 | *
49 | * @param string $name
50 | *
51 | * @return $this
52 | */
53 | public function setName($name)
54 | {
55 | $this->name = $name;
56 | return $this;
57 | }
58 |
59 | /**
60 | * The tax name. Maximum length is 20 characters.
61 | *
62 | * @return string
63 | */
64 | public function getName()
65 | {
66 | return $this->name;
67 | }
68 |
69 | /**
70 | * The rate of the specified tax. Valid range is from 0.001 to 99.999.
71 | *
72 | * @param string|double $percent
73 | *
74 | * @return $this
75 | */
76 | public function setPercent($percent)
77 | {
78 | NumericValidator::validate($percent, "Percent");
79 | $percent = FormatConverter::formatToPrice($percent);
80 | $this->percent = $percent;
81 | return $this;
82 | }
83 |
84 | /**
85 | * The rate of the specified tax. Valid range is from 0.001 to 99.999.
86 | *
87 | * @return string
88 | */
89 | public function getPercent()
90 | {
91 | return $this->percent;
92 | }
93 |
94 | /**
95 | * The tax as a monetary amount. Cannot be specified in a request.
96 | *
97 | * @param \PayPal\Api\Currency $amount
98 | *
99 | * @return $this
100 | */
101 | public function setAmount($amount)
102 | {
103 | $this->amount = $amount;
104 | return $this;
105 | }
106 |
107 | /**
108 | * The tax as a monetary amount. Cannot be specified in a request.
109 | *
110 | * @return \PayPal\Api\Currency
111 | */
112 | public function getAmount()
113 | {
114 | return $this->amount;
115 | }
116 |
117 | }
118 |
--------------------------------------------------------------------------------
/application/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Api/TemplateSettings.php:
--------------------------------------------------------------------------------
1 | field_name = $field_name;
29 | return $this;
30 | }
31 |
32 | /**
33 | * The field name (for any field in template_data) for which the corresponding display preferences will be mapped to.
34 | *
35 | * @return string
36 | */
37 | public function getFieldName()
38 | {
39 | return $this->field_name;
40 | }
41 |
42 | /**
43 | * Settings metadata for each field.
44 | *
45 | * @param \PayPal\Api\TemplateSettingsMetadata $display_preference
46 | *
47 | * @return $this
48 | */
49 | public function setDisplayPreference($display_preference)
50 | {
51 | $this->display_preference = $display_preference;
52 | return $this;
53 | }
54 |
55 | /**
56 | * Settings metadata for each field.
57 | *
58 | * @return \PayPal\Api\TemplateSettingsMetadata
59 | */
60 | public function getDisplayPreference()
61 | {
62 | return $this->display_preference;
63 | }
64 |
65 | }
66 |
--------------------------------------------------------------------------------
/application/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Api/TemplateSettingsMetadata.php:
--------------------------------------------------------------------------------
1 | hidden = $hidden;
28 | return $this;
29 | }
30 |
31 | /**
32 | * Indicates whether this field should be hidden. default is false
33 | *
34 | * @return bool
35 | */
36 | public function getHidden()
37 | {
38 | return $this->hidden;
39 | }
40 |
41 | }
42 |
--------------------------------------------------------------------------------
/application/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Api/Transaction.php:
--------------------------------------------------------------------------------
1 | transactions = $transactions;
26 | return $this;
27 | }
28 |
29 | /**
30 | * Additional transactions for complex payment scenarios.
31 | *
32 | * @return self[]
33 | */
34 | public function getTransactions()
35 | {
36 | return $this->transactions;
37 | }
38 |
39 | /**
40 | * Identifier to the purchase unit corresponding to this sale transaction
41 | *
42 | * @param string $purchase_unit_reference_id
43 | * @deprecated Use #setReferenceId instead
44 | * @return $this
45 | */
46 | public function setPurchaseUnitReferenceId($purchase_unit_reference_id)
47 | {
48 | $this->purchase_unit_reference_id = $purchase_unit_reference_id;
49 | return $this;
50 | }
51 |
52 | /**
53 | * Identifier to the purchase unit corresponding to this sale transaction
54 | *
55 | * @deprecated Use #getReferenceId instead
56 | * @return string
57 | */
58 | public function getPurchaseUnitReferenceId()
59 | {
60 | return $this->purchase_unit_reference_id;
61 | }
62 |
63 | }
64 |
--------------------------------------------------------------------------------
/application/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Api/TransactionBase.php:
--------------------------------------------------------------------------------
1 | related_resources = $related_resources;
27 | return $this;
28 | }
29 |
30 | /**
31 | * List of financial transactions (Sale, Authorization, Capture, Refund) related to the payment.
32 | *
33 | * @return \PayPal\Api\RelatedResources[]
34 | */
35 | public function getRelatedResources()
36 | {
37 | return $this->related_resources;
38 | }
39 |
40 | }
41 |
--------------------------------------------------------------------------------
/application/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Api/Transactions.php:
--------------------------------------------------------------------------------
1 | amount = $amount;
29 | return $this;
30 | }
31 |
32 | /**
33 | * Amount being collected.
34 | *
35 | * @return \PayPal\Api\Amount
36 | */
37 | public function getAmount()
38 | {
39 | return $this->amount;
40 | }
41 |
42 | }
43 |
--------------------------------------------------------------------------------
/application/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Api/VerifyWebhookSignatureResponse.php:
--------------------------------------------------------------------------------
1 | verification_status = $verification_status;
29 | return $this;
30 | }
31 |
32 | /**
33 | * The status of the signature verification. Value is `SUCCESS` or `FAILURE`.
34 | *
35 | * @return string
36 | */
37 | public function getVerificationStatus()
38 | {
39 | return $this->verification_status;
40 | }
41 |
42 | }
43 |
--------------------------------------------------------------------------------
/application/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Api/WebhookEventList.php:
--------------------------------------------------------------------------------
1 | events = $events;
30 | return $this;
31 | }
32 |
33 | /**
34 | * A list of webhooks events.
35 | *
36 | * @return \PayPal\Api\WebhookEvent[]
37 | */
38 | public function getEvents()
39 | {
40 | return $this->events;
41 | }
42 |
43 | /**
44 | * Append Events to the list.
45 | *
46 | * @param \PayPal\Api\WebhookEvent $webhookEvent
47 | * @return $this
48 | */
49 | public function addEvent($webhookEvent)
50 | {
51 | if (!$this->getEvents()) {
52 | return $this->setEvents(array($webhookEvent));
53 | } else {
54 | return $this->setEvents(
55 | array_merge($this->getEvents(), array($webhookEvent))
56 | );
57 | }
58 | }
59 |
60 | /**
61 | * Remove Events from the list.
62 | *
63 | * @param \PayPal\Api\WebhookEvent $webhookEvent
64 | * @return $this
65 | */
66 | public function removeEvent($webhookEvent)
67 | {
68 | return $this->setEvents(
69 | array_diff($this->getEvents(), array($webhookEvent))
70 | );
71 | }
72 |
73 | /**
74 | * The number of items in each range of results. Note that the response might have fewer items than the requested `page_size` value.
75 | *
76 | * @param int $count
77 | *
78 | * @return $this
79 | */
80 | public function setCount($count)
81 | {
82 | $this->count = $count;
83 | return $this;
84 | }
85 |
86 | /**
87 | * The number of items in each range of results. Note that the response might have fewer items than the requested `page_size` value.
88 | *
89 | * @return int
90 | */
91 | public function getCount()
92 | {
93 | return $this->count;
94 | }
95 |
96 | /**
97 | * Sets Links
98 | *
99 | * @param \PayPal\Api\Links[] $links
100 | *
101 | * @return $this
102 | */
103 | public function setLinks($links)
104 | {
105 | $this->links = $links;
106 | return $this;
107 | }
108 |
109 | /**
110 | * Gets Links
111 | *
112 | * @return \PayPal\Api\Links[]
113 | */
114 | public function getLinks()
115 | {
116 | return $this->links;
117 | }
118 |
119 | /**
120 | * Append Links to the list.
121 | *
122 | * @param \PayPal\Api\Links $links
123 | * @return $this
124 | */
125 | public function addLink($links)
126 | {
127 | if (!$this->getLinks()) {
128 | return $this->setLinks(array($links));
129 | } else {
130 | return $this->setLinks(
131 | array_merge($this->getLinks(), array($links))
132 | );
133 | }
134 | }
135 |
136 | /**
137 | * Remove Links from the list.
138 | *
139 | * @param \PayPal\Api\Links $links
140 | * @return $this
141 | */
142 | public function removeLink($links)
143 | {
144 | return $this->setLinks(
145 | array_diff($this->getLinks(), array($links))
146 | );
147 | }
148 |
149 | }
150 |
--------------------------------------------------------------------------------
/application/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Api/WebhookEventTypeList.php:
--------------------------------------------------------------------------------
1 | event_types = $event_types;
28 | return $this;
29 | }
30 |
31 | /**
32 | * A list of webhook events.
33 | *
34 | * @return \PayPal\Api\WebhookEventType[]
35 | */
36 | public function getEventTypes()
37 | {
38 | return $this->event_types;
39 | }
40 |
41 | /**
42 | * Append EventTypes to the list.
43 | *
44 | * @param \PayPal\Api\WebhookEventType $webhookEventType
45 | * @return $this
46 | */
47 | public function addEventType($webhookEventType)
48 | {
49 | if (!$this->getEventTypes()) {
50 | return $this->setEventTypes(array($webhookEventType));
51 | } else {
52 | return $this->setEventTypes(
53 | array_merge($this->getEventTypes(), array($webhookEventType))
54 | );
55 | }
56 | }
57 |
58 | /**
59 | * Remove EventTypes from the list.
60 | *
61 | * @param \PayPal\Api\WebhookEventType $webhookEventType
62 | * @return $this
63 | */
64 | public function removeEventType($webhookEventType)
65 | {
66 | return $this->setEventTypes(
67 | array_diff($this->getEventTypes(), array($webhookEventType))
68 | );
69 | }
70 |
71 | }
72 |
--------------------------------------------------------------------------------
/application/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Api/WebhookList.php:
--------------------------------------------------------------------------------
1 | webhooks = $webhooks;
28 | return $this;
29 | }
30 |
31 | /**
32 | * A list of webhooks.
33 | *
34 | * @return \PayPal\Api\Webhook[]
35 | */
36 | public function getWebhooks()
37 | {
38 | return $this->webhooks;
39 | }
40 |
41 | /**
42 | * Append Webhooks to the list.
43 | *
44 | * @param \PayPal\Api\Webhook $webhook
45 | * @return $this
46 | */
47 | public function addWebhook($webhook)
48 | {
49 | if (!$this->getWebhooks()) {
50 | return $this->setWebhooks(array($webhook));
51 | } else {
52 | return $this->setWebhooks(
53 | array_merge($this->getWebhooks(), array($webhook))
54 | );
55 | }
56 | }
57 |
58 | /**
59 | * Remove Webhooks from the list.
60 | *
61 | * @param \PayPal\Api\Webhook $webhook
62 | * @return $this
63 | */
64 | public function removeWebhook($webhook)
65 | {
66 | return $this->setWebhooks(
67 | array_diff($this->getWebhooks(), array($webhook))
68 | );
69 | }
70 |
71 | }
72 |
--------------------------------------------------------------------------------
/application/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Common/ArrayUtil.php:
--------------------------------------------------------------------------------
1 | $v) {
21 | if (is_int($k)) {
22 | return false;
23 | }
24 | }
25 | return true;
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/application/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Common/PayPalResourceModel.php:
--------------------------------------------------------------------------------
1 | links = $links;
29 | return $this;
30 | }
31 |
32 | /**
33 | * Gets Links
34 | *
35 | * @return \PayPal\Api\Links[]
36 | */
37 | public function getLinks()
38 | {
39 | return $this->links;
40 | }
41 |
42 | public function getLink($rel)
43 | {
44 | if (is_array($this->links)) {
45 | foreach ($this->links as $link) {
46 | if ($link->getRel() == $rel) {
47 | return $link->getHref();
48 | }
49 | }
50 | }
51 | return null;
52 | }
53 |
54 | /**
55 | * Append Links to the list.
56 | *
57 | * @param \PayPal\Api\Links $links
58 | * @return $this
59 | */
60 | public function addLink($links)
61 | {
62 | if (!$this->getLinks()) {
63 | return $this->setLinks(array($links));
64 | } else {
65 | return $this->setLinks(
66 | array_merge($this->getLinks(), array($links))
67 | );
68 | }
69 | }
70 |
71 | /**
72 | * Remove Links from the list.
73 | *
74 | * @param \PayPal\Api\Links $links
75 | * @return $this
76 | */
77 | public function removeLink($links)
78 | {
79 | return $this->setLinks(
80 | array_diff($this->getLinks(), array($links))
81 | );
82 | }
83 |
84 |
85 | /**
86 | * Execute SDK Call to Paypal services
87 | *
88 | * @param string $url
89 | * @param string $method
90 | * @param string $payLoad
91 | * @param array $headers
92 | * @param ApiContext $apiContext
93 | * @param PayPalRestCall $restCall
94 | * @param array $handlers
95 | * @return string json response of the object
96 | */
97 | protected static function executeCall($url, $method, $payLoad, $headers = array(), $apiContext = null, $restCall = null, $handlers = array('PayPal\Handler\RestHandler'))
98 | {
99 | //Initialize the context and rest call object if not provided explicitly
100 | $apiContext = $apiContext ? $apiContext : new ApiContext(self::$credential);
101 | $restCall = $restCall ? $restCall : new PayPalRestCall($apiContext);
102 |
103 | //Make the execution call
104 | $json = $restCall->execute($handlers, $url, $method, $payLoad, $headers);
105 | return $json;
106 | }
107 |
108 | /**
109 | * Updates Access Token using long lived refresh token
110 | *
111 | * @param string|null $refreshToken
112 | * @param ApiContext $apiContext
113 | * @return void
114 | */
115 | public function updateAccessToken($refreshToken, $apiContext)
116 | {
117 | $apiContext = $apiContext ? $apiContext : new ApiContext(self::$credential);
118 | $apiContext->getCredential()->updateAccessToken($apiContext->getConfig(), $refreshToken);
119 | }
120 | }
121 |
--------------------------------------------------------------------------------
/application/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Common/PayPalUserAgent.php:
--------------------------------------------------------------------------------
1 | 0, 'TWD' => 0, 'HUF' => 0);
50 | if ($currency && array_key_exists($currency, $currencyDecimals)) {
51 | if (strpos($value, ".") !== false && (floor($value) != $value)) {
52 | //throw exception if it has decimal values for JPY, TWD and HUF which does not ends with .00
53 | throw new \InvalidArgumentException("value cannot have decimals for $currency currency");
54 | }
55 | $decimals = $currencyDecimals[$currency];
56 | } elseif (strpos($value, ".") === false) {
57 | // Check if value has decimal values. If not no need to assign 2 decimals with .00 at the end
58 | $decimals = 0;
59 | }
60 | return self::formatToNumber($value, $decimals);
61 | }
62 | }
63 |
--------------------------------------------------------------------------------
/application/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Core/PayPalConstants.php:
--------------------------------------------------------------------------------
1 | getConfigHashmap();
58 | // Checks if custom factory defined, and is it an implementation of @PayPalLogFactory
59 | $factory = array_key_exists('log.AdapterFactory', $config) && in_array('PayPal\Log\PayPalLogFactory', class_implements($config['log.AdapterFactory'])) ? $config['log.AdapterFactory'] : '\PayPal\Log\PayPalDefaultLogFactory';
60 | /** @var PayPalLogFactory $factoryInstance */
61 | $factoryInstance = new $factory();
62 | $this->logger = $factoryInstance->getLogger($loggerName);
63 | $this->loggerName = $loggerName;
64 | }
65 |
66 | /**
67 | * Log Error
68 | *
69 | * @param string $message
70 | */
71 | public function error($message)
72 | {
73 | $this->logger->error($message);
74 | }
75 |
76 | /**
77 | * Log Warning
78 | *
79 | * @param string $message
80 | */
81 | public function warning($message)
82 | {
83 | $this->logger->warning($message);
84 | }
85 |
86 | /**
87 | * Log Info
88 | *
89 | * @param string $message
90 | */
91 | public function info($message)
92 | {
93 | $this->logger->info($message);
94 | }
95 |
96 | /**
97 | * Log Fine
98 | *
99 | * @param string $message
100 | */
101 | public function fine($message)
102 | {
103 | $this->info($message);
104 | }
105 |
106 | /**
107 | * Log Debug
108 | *
109 | * @param string $message
110 | */
111 | public function debug($message)
112 | {
113 | $config = PayPalConfigManager::getInstance()->getConfigHashmap();
114 | // Disable debug in live mode.
115 | if (array_key_exists('mode', $config) && $config['mode'] != 'live') {
116 | $this->logger->debug($message);
117 | }
118 | }
119 | }
120 |
--------------------------------------------------------------------------------
/application/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Exception/PayPalConfigurationException.php:
--------------------------------------------------------------------------------
1 | url = $url;
37 | }
38 |
39 | /**
40 | * Sets Data
41 | *
42 | * @param $data
43 | */
44 | public function setData($data)
45 | {
46 | $this->data = $data;
47 | }
48 |
49 | /**
50 | * Gets Data
51 | *
52 | * @return string
53 | */
54 | public function getData()
55 | {
56 | return $this->data;
57 | }
58 |
59 | /**
60 | * Gets Url
61 | *
62 | * @return string
63 | */
64 | public function getUrl()
65 | {
66 | return $this->url;
67 | }
68 | }
69 |
--------------------------------------------------------------------------------
/application/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Exception/PayPalInvalidCredentialException.php:
--------------------------------------------------------------------------------
1 | getLine() . ' in ' . $this->getFile()
32 | . ': ' . $this->getMessage() . '';
33 | return $errorMsg;
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/application/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Exception/PayPalMissingCredentialException.php:
--------------------------------------------------------------------------------
1 | getLine() . ' in ' . $this->getFile()
32 | . ': ' . $this->getMessage() . '';
33 |
34 | return $errorMsg;
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/application/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Handler/IPayPalHandler.php:
--------------------------------------------------------------------------------
1 | apiContext = $apiContext;
35 | }
36 |
37 | /**
38 | * @param PayPalHttpConfig $httpConfig
39 | * @param string $request
40 | * @param mixed $options
41 | * @return mixed|void
42 | * @throws PayPalConfigurationException
43 | * @throws PayPalInvalidCredentialException
44 | * @throws PayPalMissingCredentialException
45 | */
46 | public function handle($httpConfig, $request, $options)
47 | {
48 | $config = $this->apiContext->getConfig();
49 |
50 | $httpConfig->setUrl(
51 | rtrim(trim($this->_getEndpoint($config)), '/') .
52 | (isset($options['path']) ? $options['path'] : '')
53 | );
54 |
55 | $headers = array(
56 | "User-Agent" => PayPalUserAgent::getValue(PayPalConstants::SDK_NAME, PayPalConstants::SDK_VERSION),
57 | "Authorization" => "Basic " . base64_encode($options['clientId'] . ":" . $options['clientSecret']),
58 | "Accept" => "*/*"
59 | );
60 | $httpConfig->setHeaders($headers);
61 |
62 | // Add any additional Headers that they may have provided
63 | $headers = $this->apiContext->getRequestHeaders();
64 | foreach ($headers as $key => $value) {
65 | $httpConfig->addHeader($key, $value);
66 | }
67 | }
68 |
69 | /**
70 | * Get HttpConfiguration object for OAuth API
71 | *
72 | * @param array $config
73 | *
74 | * @return PayPalHttpConfig
75 | * @throws \PayPal\Exception\PayPalConfigurationException
76 | */
77 | private static function _getEndpoint($config)
78 | {
79 | if (isset($config['oauth.EndPoint'])) {
80 | $baseEndpoint = $config['oauth.EndPoint'];
81 | } elseif (isset($config['service.EndPoint'])) {
82 | $baseEndpoint = $config['service.EndPoint'];
83 | } elseif (isset($config['mode'])) {
84 | switch (strtoupper($config['mode'])) {
85 | case 'SANDBOX':
86 | $baseEndpoint = PayPalConstants::REST_SANDBOX_ENDPOINT;
87 | break;
88 | case 'LIVE':
89 | $baseEndpoint = PayPalConstants::REST_LIVE_ENDPOINT;
90 | break;
91 | default:
92 | throw new PayPalConfigurationException('The mode config parameter must be set to either sandbox/live');
93 | }
94 | } else {
95 | // Defaulting to Sandbox
96 | $baseEndpoint = PayPalConstants::REST_SANDBOX_ENDPOINT;
97 | }
98 |
99 | $baseEndpoint = rtrim(trim($baseEndpoint), '/') . "/v1/oauth2/token";
100 |
101 | return $baseEndpoint;
102 | }
103 | }
104 |
--------------------------------------------------------------------------------
/application/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Log/PayPalDefaultLogFactory.php:
--------------------------------------------------------------------------------
1 | loggerName = $className;
57 | $this->initialize();
58 | }
59 |
60 | public function initialize()
61 | {
62 | $config = PayPalConfigManager::getInstance()->getConfigHashmap();
63 | if (!empty($config)) {
64 | $this->isLoggingEnabled = (array_key_exists('log.LogEnabled', $config) && $config['log.LogEnabled'] == '1');
65 | if ($this->isLoggingEnabled) {
66 | $this->loggerFile = ($config['log.FileName']) ? $config['log.FileName'] : ini_get('error_log');
67 | $loggingLevel = strtoupper($config['log.LogLevel']);
68 | $this->loggingLevel = (isset($loggingLevel) && defined("\\Psr\\Log\\LogLevel::$loggingLevel")) ?
69 | constant("\\Psr\\Log\\LogLevel::$loggingLevel") :
70 | LogLevel::INFO;
71 | }
72 | }
73 | }
74 |
75 | public function log($level, $message, array $context = array())
76 | {
77 | if ($this->isLoggingEnabled) {
78 | // Checks if the message is at level below configured logging level
79 | if (array_search($level, $this->loggingLevels) <= array_search($this->loggingLevel, $this->loggingLevels)) {
80 | error_log("[" . date('d-m-Y H:i:s') . "] " . $this->loggerName . " : " . strtoupper($level) . ": $message\n", 3, $this->loggerFile);
81 | }
82 | }
83 | }
84 | }
85 |
--------------------------------------------------------------------------------
/application/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Rest/IResource.php:
--------------------------------------------------------------------------------
1 | secretKey = $secretKey;
24 | }
25 |
26 | /**
27 | * Encrypts the input text using the cipher key
28 | *
29 | * @param $input
30 | * @return string
31 | */
32 | public function encrypt($input)
33 | {
34 | // Create a random IV. Not using mcrypt to generate one, as to not have a dependency on it.
35 | $iv = substr(uniqid("", true), 0, Cipher::IV_SIZE);
36 | // Encrypt the data
37 | $encrypted = openssl_encrypt($input, "AES-256-CBC", $this->secretKey, 0, $iv);
38 | // Encode the data with IV as prefix
39 | return base64_encode($iv . $encrypted);
40 | }
41 |
42 | /**
43 | * Decrypts the input text from the cipher key
44 | *
45 | * @param $input
46 | * @return string
47 | */
48 | public function decrypt($input)
49 | {
50 | // Decode the IV + data
51 | $input = base64_decode($input);
52 | // Remove the IV
53 | $iv = substr($input, 0, Cipher::IV_SIZE);
54 | // Return Decrypted Data
55 | return openssl_decrypt(substr($input, Cipher::IV_SIZE), "AES-256-CBC", $this->secretKey, 0, $iv);
56 | }
57 | }
58 |
--------------------------------------------------------------------------------
/application/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Transport/PayPalRestCall.php:
--------------------------------------------------------------------------------
1 | apiContext = $apiContext;
41 | $this->logger = PayPalLoggingManager::getInstance(__CLASS__);
42 | }
43 |
44 | /**
45 | * @param array $handlers Array of handlers
46 | * @param string $path Resource path relative to base service endpoint
47 | * @param string $method HTTP method - one of GET, POST, PUT, DELETE, PATCH etc
48 | * @param string $data Request payload
49 | * @param array $headers HTTP headers
50 | * @return mixed
51 | * @throws \PayPal\Exception\PayPalConnectionException
52 | */
53 | public function execute($handlers = array(), $path, $method, $data = '', $headers = array())
54 | {
55 | $config = $this->apiContext->getConfig();
56 | $httpConfig = new PayPalHttpConfig(null, $method, $config);
57 | $headers = $headers ? $headers : array();
58 | $httpConfig->setHeaders($headers +
59 | array(
60 | 'Content-Type' => 'application/json'
61 | )
62 | );
63 |
64 | // if proxy set via config, add it
65 | if (!empty($config['http.Proxy'])) {
66 | $httpConfig->setHttpProxy($config['http.Proxy']);
67 | }
68 |
69 | /** @var \Paypal\Handler\IPayPalHandler $handler */
70 | foreach ($handlers as $handler) {
71 | if (!is_object($handler)) {
72 | $fullHandler = "\\" . (string)$handler;
73 | $handler = new $fullHandler($this->apiContext);
74 | }
75 | $handler->handle($httpConfig, $data, array('path' => $path, 'apiContext' => $this->apiContext));
76 | }
77 | $connection = new PayPalHttpConnection($httpConfig, $config);
78 | $response = $connection->execute($data);
79 |
80 | return $response;
81 | }
82 | }
83 |
--------------------------------------------------------------------------------
/application/third_party/PayPal-PHP-SDK/paypal/rest-api-sdk-php/lib/PayPal/Validation/ArgumentValidator.php:
--------------------------------------------------------------------------------
1 |
2 |