diff --git a/.env.example b/.env.example index 4dc5f185..1bd0d7fb 100644 --- a/.env.example +++ b/.env.example @@ -57,4 +57,7 @@ CASHIER_PAYMENT_NOTIFICATION=App\Notifications\ConfirmPayment PAYSTACK_SECRET= PAYSTACK_PUBLIC_KEY= +PAYPAL_CLIENT_ID= +PAYPAL_CLIENT_SECRET= + SANCTUM_STATEFUL_DOMAINS=localhost,localhost:8000,127.0.0.1,127.0.0.1:8000,::1 \ No newline at end of file diff --git a/composer.lock b/composer.lock index 0e4d352d..381ab48c 100644 --- a/composer.lock +++ b/composer.lock @@ -280,16 +280,16 @@ }, { "name": "aws/aws-sdk-php", - "version": "3.200.0", + "version": "3.201.0", "source": { "type": "git", "url": "https://github.com/aws/aws-sdk-php.git", - "reference": "9b3f45c51fe1d07845446675109bb0a8a98c806e" + "reference": "d2bb0296a3fe62fbc975075d7b06c41002a6517d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/9b3f45c51fe1d07845446675109bb0a8a98c806e", - "reference": "9b3f45c51fe1d07845446675109bb0a8a98c806e", + "url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/d2bb0296a3fe62fbc975075d7b06c41002a6517d", + "reference": "d2bb0296a3fe62fbc975075d7b06c41002a6517d", "shasum": "" }, "require": { @@ -365,9 +365,9 @@ "support": { "forum": "https://forums.aws.amazon.com/forum.jspa?forumID=80", "issues": "https://github.com/aws/aws-sdk-php/issues", - "source": "https://github.com/aws/aws-sdk-php/tree/3.200.0" + "source": "https://github.com/aws/aws-sdk-php/tree/3.201.0" }, - "time": "2021-11-04T18:42:25+00:00" + "time": "2021-11-09T19:28:28+00:00" }, { "name": "bacon/bacon-qr-code", @@ -3033,16 +3033,16 @@ }, { "name": "laravel/framework", - "version": "v8.69.0", + "version": "v8.70.2", "source": { "type": "git", "url": "https://github.com/laravel/framework.git", - "reference": "545181da688db64fed6d8427e55f630a90ca0d32" + "reference": "dec9524cd0f9fa35a6eb8e25d0b40f8bbc8ec225" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/framework/zipball/545181da688db64fed6d8427e55f630a90ca0d32", - "reference": "545181da688db64fed6d8427e55f630a90ca0d32", + "url": "https://api.github.com/repos/laravel/framework/zipball/dec9524cd0f9fa35a6eb8e25d0b40f8bbc8ec225", + "reference": "dec9524cd0f9fa35a6eb8e25d0b40f8bbc8ec225", "shasum": "" }, "require": { @@ -3201,7 +3201,7 @@ "issues": "https://github.com/laravel/framework/issues", "source": "https://github.com/laravel/framework" }, - "time": "2021-11-02T13:53:22+00:00" + "time": "2021-11-09T22:48:33+00:00" }, { "name": "laravel/sanctum", @@ -4046,7 +4046,7 @@ "dist": { "type": "path", "url": "../../PhpstormProjects/subscription", - "reference": "afec02b572dc987846b33e0903db97eff16c6b70" + "reference": "532bbffb4b220bd4c3cb15ad256e04a855d4ac42" }, "require": { "cartalyst/stripe-laravel": "^13.1", @@ -4085,6 +4085,7 @@ }, "autoload-dev": { "psr-4": { + "App\\": "src/App/", "Domain\\": "src/Domain/", "Support\\": "src/Support/", "Tests\\": "tests" @@ -5920,20 +5921,20 @@ }, { "name": "psr/container", - "version": "1.1.1", + "version": "1.1.2", "source": { "type": "git", "url": "https://github.com/php-fig/container.git", - "reference": "8622567409010282b7aeebe4bb841fe98b58dcaf" + "reference": "513e0666f7216c7459170d56df27dfcefe1689ea" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-fig/container/zipball/8622567409010282b7aeebe4bb841fe98b58dcaf", - "reference": "8622567409010282b7aeebe4bb841fe98b58dcaf", + "url": "https://api.github.com/repos/php-fig/container/zipball/513e0666f7216c7459170d56df27dfcefe1689ea", + "reference": "513e0666f7216c7459170d56df27dfcefe1689ea", "shasum": "" }, "require": { - "php": ">=7.2.0" + "php": ">=7.4.0" }, "type": "library", "autoload": { @@ -5962,9 +5963,9 @@ ], "support": { "issues": "https://github.com/php-fig/container/issues", - "source": "https://github.com/php-fig/container/tree/1.1.1" + "source": "https://github.com/php-fig/container/tree/1.1.2" }, - "time": "2021-03-05T17:36:06+00:00" + "time": "2021-11-05T16:50:12+00:00" }, { "name": "psr/event-dispatcher", @@ -10989,16 +10990,16 @@ }, { "name": "vimeo/psalm", - "version": "4.11.2", + "version": "4.12.0", "source": { "type": "git", "url": "https://github.com/vimeo/psalm.git", - "reference": "6fba5eb554f9507b72932f9c75533d8af593688d" + "reference": "e42bc4a23f67acba28a23bb09c348e2ff38a1d87" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/vimeo/psalm/zipball/6fba5eb554f9507b72932f9c75533d8af593688d", - "reference": "6fba5eb554f9507b72932f9c75533d8af593688d", + "url": "https://api.github.com/repos/vimeo/psalm/zipball/e42bc4a23f67acba28a23bb09c348e2ff38a1d87", + "reference": "e42bc4a23f67acba28a23bb09c348e2ff38a1d87", "shasum": "" }, "require": { @@ -11022,7 +11023,7 @@ "openlss/lib-array2xml": "^1.0", "php": "^7.1|^8", "sebastian/diff": "^3.0 || ^4.0", - "symfony/console": "^3.4.17 || ^4.1.6 || ^5.0", + "symfony/console": "^3.4.17 || ^4.1.6 || ^5.0 || ^6.0", "webmozart/path-util": "^2.3" }, "provide": { @@ -11040,7 +11041,7 @@ "psalm/plugin-phpunit": "^0.16", "slevomat/coding-standard": "^7.0", "squizlabs/php_codesniffer": "^3.5", - "symfony/process": "^4.3 || ^5.0", + "symfony/process": "^4.3 || ^5.0 || ^6.0", "weirdan/prophecy-shim": "^1.0 || ^2.0" }, "suggest": { @@ -11088,22 +11089,22 @@ ], "support": { "issues": "https://github.com/vimeo/psalm/issues", - "source": "https://github.com/vimeo/psalm/tree/4.11.2" + "source": "https://github.com/vimeo/psalm/tree/4.12.0" }, - "time": "2021-10-26T17:28:17+00:00" + "time": "2021-11-06T10:31:17+00:00" }, { "name": "vlucas/phpdotenv", - "version": "v5.3.1", + "version": "v5.4.0", "source": { "type": "git", "url": "https://github.com/vlucas/phpdotenv.git", - "reference": "accaddf133651d4b5cf81a119f25296736ffc850" + "reference": "d4394d044ed69a8f244f3445bcedf8a0d7fe2403" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/vlucas/phpdotenv/zipball/accaddf133651d4b5cf81a119f25296736ffc850", - "reference": "accaddf133651d4b5cf81a119f25296736ffc850", + "url": "https://api.github.com/repos/vlucas/phpdotenv/zipball/d4394d044ed69a8f244f3445bcedf8a0d7fe2403", + "reference": "d4394d044ed69a8f244f3445bcedf8a0d7fe2403", "shasum": "" }, "require": { @@ -11126,7 +11127,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "5.3-dev" + "dev-master": "5.4-dev" } }, "autoload": { @@ -11156,7 +11157,7 @@ ], "support": { "issues": "https://github.com/vlucas/phpdotenv/issues", - "source": "https://github.com/vlucas/phpdotenv/tree/v5.3.1" + "source": "https://github.com/vlucas/phpdotenv/tree/v5.4.0" }, "funding": [ { @@ -11168,7 +11169,7 @@ "type": "tidelift" } ], - "time": "2021-10-02T19:24:42+00:00" + "time": "2021-11-10T01:08:39+00:00" }, { "name": "voku/portable-ascii", @@ -11350,6 +11351,7 @@ "issues": "https://github.com/webmozart/path-util/issues", "source": "https://github.com/webmozart/path-util/tree/2.3.0" }, + "abandoned": "symfony/filesystem", "time": "2015-12-17T08:42:14+00:00" } ], @@ -11574,16 +11576,16 @@ }, { "name": "composer/composer", - "version": "2.1.11", + "version": "2.1.12", "source": { "type": "git", "url": "https://github.com/composer/composer.git", - "reference": "ddc81bb4718747cc93330ccf832e6be8a6c1d015" + "reference": "6e3c2b122e0ec41a7e885fcaf19fa15e2e0819a0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/composer/zipball/ddc81bb4718747cc93330ccf832e6be8a6c1d015", - "reference": "ddc81bb4718747cc93330ccf832e6be8a6c1d015", + "url": "https://api.github.com/repos/composer/composer/zipball/6e3c2b122e0ec41a7e885fcaf19fa15e2e0819a0", + "reference": "6e3c2b122e0ec41a7e885fcaf19fa15e2e0819a0", "shasum": "" }, "require": { @@ -11652,7 +11654,7 @@ "support": { "irc": "ircs://irc.libera.chat:6697/composer", "issues": "https://github.com/composer/composer/issues", - "source": "https://github.com/composer/composer/tree/2.1.11" + "source": "https://github.com/composer/composer/tree/2.1.12" }, "funding": [ { @@ -11668,7 +11670,7 @@ "type": "tidelift" } ], - "time": "2021-11-02T11:10:26+00:00" + "time": "2021-11-09T15:02:04+00:00" }, { "name": "composer/metadata-minifier", diff --git a/public/mix-manifest.json b/public/mix-manifest.json index 10e24ff7..613853e1 100644 --- a/public/mix-manifest.json +++ b/public/mix-manifest.json @@ -66,7 +66,7 @@ "/chunks/profile~chunks/settings-password.js": "/chunks/profile~chunks/settings-password.js?id=58edfb3a35062e1ba4e0", "/chunks/purchase-code.js": "/chunks/purchase-code.js?id=f8b2619e393a5823bf29", "/chunks/recent-uploads.js": "/chunks/recent-uploads.js?id=22f629caf127051898e9", - "/chunks/settings.js": "/chunks/settings.js?id=f808ba3197786defe0af", + "/chunks/settings.js": "/chunks/settings.js?id=b7bd608d4547092b83de", "/chunks/settings-create-payment-methods.js": "/chunks/settings-create-payment-methods.js?id=c8b08d42c6692d171884", "/chunks/settings-invoices.js": "/chunks/settings-invoices.js?id=a9a6286b9a416c949003", "/chunks/settings-password.js": "/chunks/settings-password.js?id=5875aa689f3d14a37494", @@ -104,5 +104,33 @@ "/vendors~chunks/admin~chunks/admin-account~chunks/app-appearance~chunks/app-billings~chunks/app-email~24b428d3.js": "/vendors~chunks/admin~chunks/admin-account~chunks/app-appearance~chunks/app-billings~chunks/app-email~24b428d3.js?id=ee89932f7ee76e74483e", "/vendors~chunks/admin~chunks/admin-account~chunks/app-appearance~chunks/app-billings~chunks/app-email~b505e62a.js": "/vendors~chunks/admin~chunks/admin-account~chunks/app-appearance~chunks/app-billings~chunks/app-email~b505e62a.js?id=8163e0eab55c50f8afb8", "/vendors~chunks/admin~chunks/files~chunks/my-shared-items~chunks/platform~chunks/recent-uploads~chunk~40ccbae3.js": "/vendors~chunks/admin~chunks/files~chunks/my-shared-items~chunks/platform~chunks/recent-uploads~chunk~40ccbae3.js?id=37ce1e1ab9968c100712", - "/vendors~chunks/admin~chunks/platform~chunks/settings~chunks/shared.js": "/vendors~chunks/admin~chunks/platform~chunks/settings~chunks/shared.js?id=a0fa80db175709ba340a" + "/vendors~chunks/admin~chunks/platform~chunks/settings~chunks/shared.js": "/vendors~chunks/admin~chunks/platform~chunks/settings~chunks/shared.js?id=a0fa80db175709ba340a", + "/chunks/settings.d6216a75eda2f1049400.hot-update.js": "/chunks/settings.d6216a75eda2f1049400.hot-update.js", + "/chunks/settings.a8287fbab8d5d982dcbc.hot-update.js": "/chunks/settings.a8287fbab8d5d982dcbc.hot-update.js", + "/chunks/settings.76357b3396f7556cddb1.hot-update.js": "/chunks/settings.76357b3396f7556cddb1.hot-update.js", + "/chunks/settings.fe1cfe70c59778b55d49.hot-update.js": "/chunks/settings.fe1cfe70c59778b55d49.hot-update.js", + "/chunks/settings.61b7de4bb9b24c4ef8a5.hot-update.js": "/chunks/settings.61b7de4bb9b24c4ef8a5.hot-update.js", + "/chunks/settings.c4948ff3b50383c847e5.hot-update.js": "/chunks/settings.c4948ff3b50383c847e5.hot-update.js", + "/chunks/settings.77512cd94528dfea91f7.hot-update.js": "/chunks/settings.77512cd94528dfea91f7.hot-update.js", + "/chunks/settings.8ef0e4b75417205c9a8b.hot-update.js": "/chunks/settings.8ef0e4b75417205c9a8b.hot-update.js", + "/chunks/settings.cf6994557ae29062919e.hot-update.js": "/chunks/settings.cf6994557ae29062919e.hot-update.js", + "/chunks/settings.f32afc28a3e9f86d5636.hot-update.js": "/chunks/settings.f32afc28a3e9f86d5636.hot-update.js", + "/chunks/settings.66f97687210924867b36.hot-update.js": "/chunks/settings.66f97687210924867b36.hot-update.js", + "/chunks/settings.fbd5fadc96a8f2ef3ab9.hot-update.js": "/chunks/settings.fbd5fadc96a8f2ef3ab9.hot-update.js", + "/chunks/settings.99fd6d80a440cb4683df.hot-update.js": "/chunks/settings.99fd6d80a440cb4683df.hot-update.js", + "/chunks/settings.de78f878beb41d0c0032.hot-update.js": "/chunks/settings.de78f878beb41d0c0032.hot-update.js", + "/chunks/settings.413f8ed92a7eeda25b78.hot-update.js": "/chunks/settings.413f8ed92a7eeda25b78.hot-update.js", + "/chunks/settings.c788d64b990a1badf6b1.hot-update.js": "/chunks/settings.c788d64b990a1badf6b1.hot-update.js", + "/chunks/settings.3b95bcc93677091dc6f7.hot-update.js": "/chunks/settings.3b95bcc93677091dc6f7.hot-update.js", + "/chunks/settings.ebde8fecf138d1f816b6.hot-update.js": "/chunks/settings.ebde8fecf138d1f816b6.hot-update.js", + "/chunks/settings.b0745272ecc6198229f1.hot-update.js": "/chunks/settings.b0745272ecc6198229f1.hot-update.js", + "/chunks/settings.36b09c58b5477bef90ed.hot-update.js": "/chunks/settings.36b09c58b5477bef90ed.hot-update.js", + "/chunks/settings.9dcb18f7ed073acfdce9.hot-update.js": "/chunks/settings.9dcb18f7ed073acfdce9.hot-update.js", + "/chunks/settings.dfc1705e897889f37ab0.hot-update.js": "/chunks/settings.dfc1705e897889f37ab0.hot-update.js", + "/chunks/settings.361bd02d4d669ed390a0.hot-update.js": "/chunks/settings.361bd02d4d669ed390a0.hot-update.js", + "/chunks/settings.63cae08eeae9e5b13111.hot-update.js": "/chunks/settings.63cae08eeae9e5b13111.hot-update.js", + "/chunks/settings.efbe7c889c6661610ade.hot-update.js": "/chunks/settings.efbe7c889c6661610ade.hot-update.js", + "/chunks/settings.b173f354db192e1f0e61.hot-update.js": "/chunks/settings.b173f354db192e1f0e61.hot-update.js", + "/chunks/plan-create.6104f5be6117a3c2ec8c.hot-update.js": "/chunks/plan-create.6104f5be6117a3c2ec8c.hot-update.js", + "/chunks/plan-create.13fdc95c900c8425d061.hot-update.js": "/chunks/plan-create.13fdc95c900c8425d061.hot-update.js" } diff --git a/resources/js/views/Profile.vue b/resources/js/views/Profile.vue index f9969067..e0532a96 100644 --- a/resources/js/views/Profile.vue +++ b/resources/js/views/Profile.vue @@ -49,7 +49,7 @@
- +
+ + +
+ @@ -169,7 +173,23 @@ console.log("You closed checkout page") } }, - } + created() { + + setTimeout(() => { + paypal.Buttons({ + createSubscription: function(data, actions) { + return actions.subscription.create({ + 'plan_id': 'P-1P873319R2491082NMGFK3RY', + 'custom_id': 'user_id_howdy' + }); + }, + onApprove: function(data, actions) { + console.log('Subscription id: ', data.subscriptionID); + } + }).render('#paypal-button-container'); // Renders the PayPal button + }, 500) + } + }