markenzoo/contao-isotope-paypal-express-bundle

dev-main 2022-06-29 13:16 UTC

This package is auto-updated.

Last update: 2024-09-29 05:29:53 UTC


README

Version GitHub issues License Build Status Downloads

免责声明

这是一个实验性项目。使用风险自负。在任何情况下,我们不提供任何关于失败或损坏的保证。

欢迎以任何形式做出贡献,只需提交一个PR,我们将非常感激!

功能

使用JavaScript SDK提供Paypal智能支付按钮的集成。

注意 目前仅支持无运输的数字商品。

待办事项

要求

  • PHP >=7.2
  • Contao ~4.9 LTS

安装

管理版

当使用管理版时,安装此包非常简单。只需在Contao Manager中搜索该包并安装它。或者,您也可以使用CLI。

# Using the contao manager
$ php contao-manager.phar.php composer require markenzoo/contao-isotope-paypal-express-bundle

# Using composer directly
$ php composer.phar require markenzoo/contao-isotope-paypal-express-bundle

# Using global composer installation
$ composer require markenzoo/contao-isotope-paypal-express-bundle

Symfony应用程序

如果您在没有contao/manager-bundle的symfony应用程序中使用Contao,您必须手动注册此包。

class AppKernel
{
    public function registerBundles()
    {
        $bundles = [
            // ...
            new Markenzoo\ContaoIsotopePaypalExpressBundle\ContaoIsotopePaypalExpressBundle()
        ];
    }
}

自注

在发布您的包之前,运行PHP-CS-Fixer和单元测试。

vendor/bin/php-cs-fixer fix -v
vendor/bin/phpunit
vendor/bin/psalm
vendor/bin/psalter --issues=all --dry-run