refactored checkout workflow with stripe

This commit is contained in:
2021-01-11 21:16:42 +01:00
parent 2df6e53aa0
commit 02c983e7e0
48 changed files with 1154 additions and 177 deletions

672
composer.lock generated
View File

@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "3d12b27bce24c17b1d9786c4053a60b3",
"content-hash": "18823c92aa8ab02c87f03c1d766c7d7a",
"packages": [
{
"name": "alchemy/zippy",
@@ -332,6 +332,96 @@
"description": "Internationalization library powered by CLDR data.",
"time": "2020-10-04T20:58:22+00:00"
},
{
"name": "commercie/currency",
"version": "1.1.2",
"source": {
"type": "git",
"url": "https://github.com/Commercie/currency.git",
"reference": "64812cb8d5e8cdbc406c2f7c114399c814e2d898"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/Commercie/currency/zipball/64812cb8d5e8cdbc406c2f7c114399c814e2d898",
"reference": "64812cb8d5e8cdbc406c2f7c114399c814e2d898",
"shasum": ""
},
"require": {
"ext-json": "*",
"php": "~5.5 || ~7.0"
},
"require-dev": {
"justinrainbow/json-schema": "~1.4",
"phpunit/phpunit": "~4.0"
},
"suggest": {
"drupal/currency": "Integrates this package with Drupal."
},
"type": "library",
"autoload": {
"psr-4": {
"Commercie\\Currency\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Bart Feenstra",
"email": "bart@mynameisbart.com",
"homepage": "http://mynameisbart.com",
"role": "Developer"
}
],
"time": "2018-05-11T10:11:38+00:00"
},
{
"name": "commercie/currency-exchange",
"version": "1.2.0",
"source": {
"type": "git",
"url": "https://github.com/Commercie/currency-exchange.git",
"reference": "bb6a0c3b682aaed2eda205ceda5582673cb444af"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/Commercie/currency-exchange/zipball/bb6a0c3b682aaed2eda205ceda5582673cb444af",
"reference": "bb6a0c3b682aaed2eda205ceda5582673cb444af",
"shasum": ""
},
"require": {
"ext-bcmath": "*",
"ext-json": "*",
"php": "~5.5 || ~7.0"
},
"require-dev": {
"phpunit/phpunit": "~4.0"
},
"suggest": {
"commercie/currency-exchange-yahoo-finance": "Retrieves currency exchange rates from Yahoo! Finance.",
"drupal/currency": "Integrates this package with Drupal."
},
"type": "library",
"autoload": {
"psr-4": {
"Commercie\\CurrencyExchange\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Bart Feenstra",
"email": "bart@mynameisbart.com"
}
],
"description": "A library for retrieving currency exchange rates.",
"time": "2016-07-01T11:01:48+00:00"
},
{
"name": "components/highlightjs",
"version": "9.7.0",
@@ -3339,17 +3429,17 @@
},
{
"name": "drupal/commerce",
"version": "2.21.0",
"version": "2.22.0",
"source": {
"type": "git",
"url": "https://git.drupalcode.org/project/commerce.git",
"reference": "8.x-2.21"
"reference": "8.x-2.22"
},
"dist": {
"type": "zip",
"url": "https://ftp.drupal.org/files/projects/commerce-8.x-2.21.zip",
"reference": "8.x-2.21",
"shasum": "3b38b58458e26f14cc4c203cda3f01ac84296909"
"url": "https://ftp.drupal.org/files/projects/commerce-8.x-2.22.zip",
"reference": "8.x-2.22",
"shasum": "c80e7dc0a6dada11a145fee2241053984d6d27f9"
},
"require": {
"commerceguys/intl": "^1.0.0",
@@ -3381,8 +3471,8 @@
"type": "drupal-module",
"extra": {
"drupal": {
"version": "8.x-2.21",
"datestamp": "1600787975",
"version": "8.x-2.22",
"datestamp": "1610116363",
"security-coverage": {
"status": "covered",
"message": "Covered by Drupal's security advisory policy"
@@ -3518,6 +3608,58 @@
"issues": "https://www.drupal.org/project/issues/commerce_cart_api"
}
},
{
"name": "drupal/commerce_cart_redirection",
"version": "3.0.5",
"source": {
"type": "git",
"url": "https://git.drupalcode.org/project/commerce_cart_redirection.git",
"reference": "3.0.5"
},
"dist": {
"type": "zip",
"url": "https://ftp.drupal.org/files/projects/commerce_cart_redirection-3.0.5.zip",
"reference": "3.0.5",
"shasum": "362dcdf3a4a3e686dca238737d26e369d6b32190"
},
"require": {
"drupal/core": "^8 || ^9"
},
"type": "drupal-module",
"extra": {
"drupal": {
"version": "3.0.5",
"datestamp": "1604876635",
"security-coverage": {
"status": "covered",
"message": "Covered by Drupal's security advisory policy"
}
}
},
"notification-url": "https://packages.drupal.org/8/downloads",
"license": [
"GPL-2.0+"
],
"authors": [
{
"name": "AndyD328",
"homepage": "https://www.drupal.org/user/2261214"
},
{
"name": "calbasi",
"homepage": "https://www.drupal.org/user/318818"
}
],
"description": "Redirect to your cart page after adding a product to it",
"homepage": "https://www.drupal.org/project/commerce_cart_redirection",
"keywords": [
"Drupal"
],
"support": {
"source": "http://cgit.drupalcode.org/commerce_cart_redirection",
"issues": "https://www.drupal.org/project/issues/commerce_cart_redirection"
}
},
{
"name": "drupal/commerce_checkout",
"version": "2.21.0",
@@ -3568,17 +3710,11 @@
},
{
"name": "drupal/commerce_license",
"version": "2.0.0-alpha18",
"version": "dev-2.x",
"source": {
"type": "git",
"url": "https://git.drupalcode.org/project/commerce_license.git",
"reference": "8.x-2.0-alpha18"
},
"dist": {
"type": "zip",
"url": "https://ftp.drupal.org/files/projects/commerce_license-8.x-2.0-alpha18.zip",
"reference": "8.x-2.0-alpha18",
"shasum": "5f6950b15960e441be9351137865dac8c734d722"
"reference": "f1128fd1a75b30ed6ed7be24f6bd6cebb6e6c9cd"
},
"require": {
"drupal/advancedqueue": "^1.0",
@@ -3596,12 +3732,15 @@
},
"type": "drupal-module",
"extra": {
"branch-alias": {
"dev-2.x": "2.x-dev"
},
"drupal": {
"version": "8.x-2.0-alpha18",
"datestamp": "1533546784",
"version": "8.x-2.0-alpha18+1-dev",
"datestamp": "1580896875",
"security-coverage": {
"status": "not-covered",
"message": "Alpha releases are not covered by Drupal security advisories."
"message": "Dev releases are not covered by Drupal security advisories."
}
}
},
@@ -3647,7 +3786,8 @@
"support": {
"source": "http://cgit.drupalcode.org/commerce_license",
"issues": "https://www.drupal.org/project/issues/commerce_license"
}
},
"time": "2020-02-05T10:00:53+00:00"
},
{
"name": "drupal/commerce_migrate",
@@ -4203,6 +4343,87 @@
"source": "https://git.drupalcode.org/project/commerce"
}
},
{
"name": "drupal/commerce_stripe",
"version": "dev-1.x",
"source": {
"type": "git",
"url": "https://git.drupalcode.org/project/commerce_stripe.git",
"reference": "14aa4b67b850528e5535e79aa70b6b7c30bf749d"
},
"require": {
"drupal/commerce": "^2.15",
"drupal/commerce_payment": "*",
"drupal/core": "^8.7.7 || ^9",
"stripe/stripe-php": "^7.25"
},
"type": "drupal-module",
"extra": {
"branch-alias": {
"dev-1.x": "1.x-dev"
},
"drupal": {
"version": "8.x-1.0-rc4+2-dev",
"datestamp": "1600788297",
"security-coverage": {
"status": "not-covered",
"message": "Dev releases are not covered by Drupal security advisories."
}
}
},
"notification-url": "https://packages.drupal.org/8/downloads",
"license": [
"GPL-2.0-or-later"
],
"authors": [
{
"name": "Damien Tournoud",
"homepage": "https://www.drupal.org/user/22211"
},
{
"name": "GuGuss",
"homepage": "https://www.drupal.org/user/1237516"
},
{
"name": "aviindub",
"homepage": "https://www.drupal.org/user/2565920"
},
{
"name": "bojanz",
"homepage": "https://www.drupal.org/user/86106"
},
{
"name": "iler",
"homepage": "https://www.drupal.org/user/726092"
},
{
"name": "jsacksick",
"homepage": "https://www.drupal.org/user/972218"
},
{
"name": "mglaman",
"homepage": "https://www.drupal.org/user/2416470"
},
{
"name": "rszrama",
"homepage": "https://www.drupal.org/user/49344"
},
{
"name": "torgosPizza",
"homepage": "https://www.drupal.org/user/151333"
},
{
"name": "vasike",
"homepage": "https://www.drupal.org/user/156237"
}
],
"description": "Provides Commerce integration for Stripe Payments.",
"homepage": "http://drupal.org/project/commerce_stripe",
"support": {
"source": "https://git.drupalcode.org/project/commerce_stripe"
},
"time": "2020-09-22T15:24:39+00:00"
},
{
"name": "drupal/commerce_variation_cart_form",
"version": "dev-1.x",
@@ -5673,6 +5894,65 @@
"issues": "https://www.drupal.org/project/issues/ctools"
}
},
{
"name": "drupal/currency",
"version": "3.3.0",
"source": {
"type": "git",
"url": "https://git.drupalcode.org/project/currency.git",
"reference": "8.x-3.3"
},
"dist": {
"type": "zip",
"url": "https://ftp.drupal.org/files/projects/currency-8.x-3.3.zip",
"reference": "8.x-3.3",
"shasum": "9e4fa704caa3fdded1419aebb1c289abdf5c27d3"
},
"require": {
"commercie/currency": "~1.0",
"commercie/currency-exchange": "~1.0",
"drupal/core": "^8.8 || ^9",
"drupal/plugin": "^2.6",
"ext-bcmath": "*",
"php": "~7.1"
},
"type": "drupal-module",
"extra": {
"drupal": {
"version": "8.x-3.3",
"datestamp": "1595621136",
"security-coverage": {
"status": "covered",
"message": "Covered by Drupal's security advisory policy"
}
}
},
"autoload": {
"psr-4": {
"Drupal\\currency\\": "src"
}
},
"autoload-dev": {
"psr-4": {
"Drupal\\Tests\\currency\\": "tests/src"
}
},
"notification-url": "https://packages.drupal.org/8/downloads",
"license": [
"GPL-2.0"
],
"authors": [
{
"name": "Berdir",
"homepage": "https://www.drupal.org/user/214652"
}
],
"description": "Provides your Drupal site with currency conversion, currency information & metadata, and amount/price display functionality.",
"homepage": "https://www.drupal.org/project/currency",
"support": {
"source": "https://git.drupalcode.org/project/currency"
}
},
{
"name": "drupal/date_range_formatter",
"version": "3.1.0",
@@ -5771,17 +6051,17 @@
},
{
"name": "drupal/devel",
"version": "4.0.1",
"version": "4.1.1",
"source": {
"type": "git",
"url": "https://git.drupalcode.org/project/devel.git",
"reference": "4.0.1"
"reference": "4.1.1"
},
"dist": {
"type": "zip",
"url": "https://ftp.drupal.org/files/projects/devel-4.0.1.zip",
"reference": "4.0.1",
"shasum": "cf2458de1cbac00a88ed26ae3da2cf331e1bc047"
"url": "https://ftp.drupal.org/files/projects/devel-4.1.1.zip",
"reference": "4.1.1",
"shasum": "88e5d49dda26a3136291ecd97bc6c8e897b24198"
},
"require": {
"doctrine/common": "^2.7",
@@ -5792,16 +6072,7 @@
"kint-php/kint": "<3"
},
"require-dev": {
"composer/installers": "^1",
"cweagans/composer-patches": "~1.0",
"drupal/core-composer-scaffold": "^8.0",
"drupal/core-dev": "^8.0",
"drupal/core-recommended": "^8.0",
"drush/drush": "^10",
"mglaman/phpstan-drupal": "^0.12",
"php-parallel-lint/php-parallel-lint": "^1.2",
"phpstan/phpstan-deprecation-rules": "^0.12",
"zaporylie/composer-drupal-optimizations": "^1.0"
"drush/drush": "^10"
},
"suggest": {
"kint-php/kint": "Kint provides an informative display of arrays/objects. Useful for debugging and developing."
@@ -5809,82 +6080,20 @@
"type": "drupal-module",
"extra": {
"drupal": {
"version": "4.0.1",
"datestamp": "1600300079",
"version": "4.1.1",
"datestamp": "1609419527",
"security-coverage": {
"status": "covered",
"message": "Covered by Drupal's security advisory policy"
}
},
"installer-paths": {
"web/core": [
"type:drupal-core"
],
"web/libraries/{$name}": [
"type:drupal-library"
],
"web/modules/contrib/{$name}": [
"type:drupal-module"
],
"web/profiles/{$name}": [
"type:drupal-profile"
],
"web/themes/{$name}": [
"type:drupal-theme"
],
"drush/{$name}": [
"type:drupal-drush"
]
},
"drupal-scaffold": {
"locations": {
"web-root": "web/"
}
},
"drush": {
"services": {
"drush.services.yml": "^9 || ^10"
}
}
},
"autoload": {
"classmap": [
".spoons/ScriptHandler.php"
]
},
"notification-url": "https://packages.drupal.org/8/downloads",
"scripts": {
"si": [
"drush si -v --db-url=${SIMPLETEST_DB:-mysql://root:password@mariadb/db}"
],
"phpcs": [
"phpcs --runtime-set ignore_warnings_on_exit 1 --runtime-set ignore_errors_on_exit 1 web/modules/custom"
],
"lint": [
"parallel-lint --exclude web --exclude vendor ."
],
"webserver": [
"cd web && php -S 0.0.0.0:8888 .ht.router.php"
],
"chromedriver": [
"chromedriver --port=9515 --verbose --whitelisted-ips --log-path=/tmp/chromedriver.log --no-sandbox"
],
"unit": [
"phpunit --verbose web/modules/custom"
],
"phpstan": [
"phpstan analyse web/modules/custom"
],
"stylelint": [
"yarn --silent --cwd web/core stylelint --formatter verbose --config ./.stylelintrc.json ../modules/custom/**/*.css"
],
"eslint": [
"yarn --silent --cwd web/core eslint -c ./.eslintrc.json ../modules/custom"
],
"post-update-cmd": [
"Spoons\\ScriptHandler::createSymlinks"
]
},
"license": [
"GPL-2.0-or-later"
],
@@ -6711,6 +6920,10 @@
"status": "not-covered",
"message": "Dev releases are not covered by Drupal security advisories."
}
},
"patches_applied": {
"undefined index name 18 https://www.drupal.org/project/field_group/issues/3064890": "https://www.drupal.org/files/issues/2020-10-01/field_group-undefined-index-name-3064890-18.patch",
"undefined index name 16 https://www.drupal.org/project/field_group/issues/3064890": "https://www.drupal.org/files/issues/2020-08-10/field_group-undefined-index-name-3064890-16.patch"
}
},
"notification-url": "https://packages.drupal.org/8/downloads",
@@ -9631,6 +9844,123 @@
"source": "https://git.drupalcode.org/project/pathologic"
}
},
{
"name": "drupal/payment",
"version": "2.1.0",
"source": {
"type": "git",
"url": "https://git.drupalcode.org/project/payment.git",
"reference": "8.x-2.1"
},
"dist": {
"type": "zip",
"url": "https://ftp.drupal.org/files/projects/payment-8.x-2.1.zip",
"reference": "8.x-2.1",
"shasum": "7a74d4cb89b443e1c9fde8538b3b96ee9c6893d1"
},
"require": {
"drupal/core": "^8.8 || ^9",
"drupal/currency": "~3.0",
"drupal/plugin": "~2.2",
"ext-bcmath": "*",
"php": "^7.1"
},
"require-dev": {
"drupal/payment_reference": "*"
},
"type": "drupal-module",
"extra": {
"drupal": {
"version": "8.x-2.1",
"datestamp": "1595623153",
"security-coverage": {
"status": "covered",
"message": "Covered by Drupal's security advisory policy"
}
}
},
"autoload": {
"psr-4": {
"Drupal\\payment\\": "src",
"Drupal\\payment_form\\": "modules/payment_form/src",
"Drupal\\payment_reference\\": "modules/payment_reference/src"
}
},
"autoload-dev": {
"psr-4": {
"Drupal\\Tests\\payment\\": "tests/src",
"Drupal\\Tests\\payment_form\\": "modules/payment_form/tests/src",
"Drupal\\Tests\\payment_reference\\": "modules/payment_reference/tests/src"
}
},
"notification-url": "https://packages.drupal.org/8/downloads",
"license": [
"GPL-2.0"
],
"authors": [
{
"name": "Berdir",
"homepage": "https://www.drupal.org/user/214652"
},
{
"name": "ricovandevin",
"homepage": "https://www.drupal.org/user/1243726"
},
{
"name": "torotil",
"homepage": "https://www.drupal.org/user/865256"
}
],
"description": "Allows payments to be made using any of the available payment methods.",
"homepage": "https://www.drupal.org/project/payment",
"support": {
"source": "https://git.drupalcode.org/project/payment"
}
},
{
"name": "drupal/payment_commerce",
"version": "dev-2.x",
"source": {
"type": "git",
"url": "https://git.drupalcode.org/project/payment_commerce.git",
"reference": "deaa480c6c9a8f3e32567650e265d47f0e93e67e"
},
"require": {
"drupal/commerce_payment": "*",
"drupal/core": "~8.0",
"drupal/payment": "*"
},
"type": "drupal-module",
"extra": {
"branch-alias": {
"dev-2.x": "2.x-dev"
},
"drupal": {
"version": "8.x-2.x-dev",
"datestamp": "1507110244",
"security-coverage": {
"status": "not-covered",
"message": "Dev releases are not covered by Drupal security advisories."
}
}
},
"notification-url": "https://packages.drupal.org/8/downloads",
"license": [
"GPL-2.0-or-later"
],
"authors": [
{
"name": "ricovandevin",
"homepage": "https://www.drupal.org/user/1243726"
}
],
"description": "Allows Drupal Commerce orders to be paid using Payment.",
"homepage": "https://www.drupal.org/project/payment_commerce",
"support": {
"source": "https://git.drupalcode.org/project/payment_commerce"
},
"time": "2017-10-04T09:40:53+00:00"
},
{
"name": "drupal/permissions_filter",
"version": "1.1.0",
@@ -9723,6 +10053,69 @@
"issues": "https://www.drupal.org/project/issues/persistent_login"
}
},
{
"name": "drupal/plugin",
"version": "2.8.0",
"source": {
"type": "git",
"url": "https://git.drupalcode.org/project/plugin.git",
"reference": "8.x-2.8"
},
"dist": {
"type": "zip",
"url": "https://ftp.drupal.org/files/projects/plugin-8.x-2.8.zip",
"reference": "8.x-2.8",
"shasum": "dc97912f7982fc87d905d32167e90c13d7d44093"
},
"require": {
"drupal/core": "^8.7.7 || ^9",
"php": "~7.1"
},
"type": "drupal-module",
"extra": {
"drupal": {
"version": "8.x-2.8",
"datestamp": "1595360847",
"security-coverage": {
"status": "covered",
"message": "Covered by Drupal's security advisory policy"
}
}
},
"autoload": {
"psr-4": {
"Drupal\\plugin\\": "src"
}
},
"autoload-dev": {
"psr-4": {
"Drupal\\Tests\\plugin\\": "tests/src"
}
},
"notification-url": "https://packages.drupal.org/8/downloads",
"license": [
"GPL-2.0"
],
"authors": [
{
"name": "Berdir",
"homepage": "https://www.drupal.org/user/214652"
},
{
"name": "bradjones1",
"homepage": "https://www.drupal.org/user/405824"
},
{
"name": "joachim",
"homepage": "https://www.drupal.org/user/107701"
}
],
"description": "Provides tools that extend Drupal's plugin system.",
"homepage": "https://www.drupal.org/project/plugin",
"support": {
"source": "https://git.drupalcode.org/project/plugin"
}
},
{
"name": "drupal/profile",
"version": "1.2.0",
@@ -9793,30 +10186,30 @@
},
{
"name": "drupal/recurring_period",
"version": "1.0.0-alpha5",
"version": "1.0.0",
"source": {
"type": "git",
"url": "https://git.drupalcode.org/project/recurring_period.git",
"reference": "8.x-1.0-alpha5"
"reference": "8.x-1.0"
},
"dist": {
"type": "zip",
"url": "https://ftp.drupal.org/files/projects/recurring_period-8.x-1.0-alpha5.zip",
"reference": "8.x-1.0-alpha5",
"shasum": "441ab529d266c08977c97021f37746cf3203b017"
"url": "https://ftp.drupal.org/files/projects/recurring_period-8.x-1.0.zip",
"reference": "8.x-1.0",
"shasum": "da6506bc12de892d86706fba7904691de822e10b"
},
"require": {
"drupal/core": "~8.0",
"drupal/core": "^8.8 || ^9",
"drupal/interval": "*"
},
"type": "drupal-module",
"extra": {
"drupal": {
"version": "8.x-1.0-alpha5",
"datestamp": "1561811286",
"version": "8.x-1.0",
"datestamp": "1607335704",
"security-coverage": {
"status": "not-covered",
"message": "Project has not opted into security advisory coverage!"
"status": "covered",
"message": "Covered by Drupal's security advisory policy"
}
}
},
@@ -14984,6 +15377,63 @@
"description": "Automatic BASH completion for Symfony Console Component based applications.",
"time": "2019-11-24T17:03:06+00:00"
},
{
"name": "stripe/stripe-php",
"version": "v7.67.0",
"source": {
"type": "git",
"url": "https://github.com/stripe/stripe-php.git",
"reference": "935d2c67912007f6d17b6c08a62050252c509129"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/stripe/stripe-php/zipball/935d2c67912007f6d17b6c08a62050252c509129",
"reference": "935d2c67912007f6d17b6c08a62050252c509129",
"shasum": ""
},
"require": {
"ext-curl": "*",
"ext-json": "*",
"ext-mbstring": "*",
"php": ">=5.6.0"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "2.17.1",
"php-coveralls/php-coveralls": "^2.1",
"phpunit/phpunit": "^5.7",
"squizlabs/php_codesniffer": "^3.3",
"symfony/process": "~3.4"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "2.0-dev"
}
},
"autoload": {
"psr-4": {
"Stripe\\": "lib/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Stripe and contributors",
"homepage": "https://github.com/stripe/stripe-php/contributors"
}
],
"description": "Stripe PHP Library",
"homepage": "https://stripe.com/",
"keywords": [
"api",
"payment processing",
"stripe"
],
"time": "2020-12-09T19:00:34+00:00"
},
{
"name": "symfony-cmf/routing",
"version": "1.4.1",
@@ -17895,9 +18345,10 @@
"minimum-stability": "dev",
"stability-flags": {
"drupal/auto_entitylabel": 20,
"drupal/commerce_license": 15,
"drupal/commerce_license": 20,
"drupal/commerce_pricelist": 20,
"drupal/commerce_recurring": 20,
"drupal/commerce_stripe": 20,
"drupal/commerce_variation_cart_form": 20,
"drupal/computed_field": 10,
"drupal/content_sync": 20,
@@ -17914,6 +18365,7 @@
"drupal/migrate_plus": 20,
"drupal/migrate_tools": 20,
"drupal/mimemail": 20,
"drupal/payment_commerce": 20,
"drupal/search_api_page": 20,
"drupal/select_translation": 20,
"drupal/simplenews": 20,