定制 wunderbit/sylius-wunderbit-commerce-plugin 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

wunderbit/sylius-wunderbit-commerce-plugin

Composer 安装命令:

composer require wunderbit/sylius-wunderbit-commerce-plugin

包简介

Wunderbit Commerce plugin for Sylius.

README 文档

README

Start accepting bitcoin payments from Sylius platform

Installation

  1. Run composer require wunderbit/sylius-wunderbit-commerce-plugin.

  2. Add our Bundle

    1) If you use Symfony 4 add new row into the bundles.php file:

     Wunderbit\SyliusWunderbitCommercePlugin\WunderbitSyliusWunderbitCommercePlugin::class => ['all' => true]
    

    2) If you use Symfony 3 add new row into the app/AppKernel.php $bundles array:

     class AppKernel extends Kernel
      {
          // ...
            
          public function registerBundles()
          {
              $bundles = array(
                  // ...
                  new Wunderbit\SyliusWunderbitCommercePlugin\WunderbitSyliusWunderbitCommercePlugin(),
              );
            
              // ...
          }
      }
    
    
  3. Run the following commands to install all assets and yarn:

    yarn build

    php bin/console a:i

    php bin/console cache:clear

Use our thankYou.html.twig (vendor/wunderbit/sylius-wunderbit-commerce-plugin/src/Resources/views/SyliusShopBundle/Order/thankYou.html.twig) for auto redirect to invoice

Usage

Use our plugin to enable new payment method in Sylius Admin that allows your e-store create Wunderbit Commerce invoices.

  1. First of all create new Payment method that calls - Wunderbit Payment

  2. Secondary for start using our plugin you need to create new merchant account and generate API key (Merchant cabinet -> Settings -> API).

After that just copy your generated API key and paste it in API field in your Wunderbit Payment method

Now you can successfully use our service for generating Crypto invoices

Advanced

Every kind of invoice need to special extra parameters, that you can overwrite as parameter with "capture.wunderbit.action.description" key

1) XML example:

<parameter key="capture.wunderbit.action.description" type="collection">
     <parameter key="Description">Wunderbit Commerce Sylius API</parameter>
     <parameter key="test">test</parameter>
     # Add as many parameters as you want
</parameter>

2) YAML example:

 capture.wunderbit.action.description:
    Description: 'Wunderbit Commerce Sylius API'
    test: 'test'
    # Add as many parameters as you want

Also our bundle use default Symfony route parameters (router.request_context.host and router.request_context.scheme) that allows generate correct capture url to your site.

By default Symfony set router.request_context.host as 'localhost' and router.request_context.scheme as 'http'.

Overwrite them to your host name and scheme!

统计信息

  • 总下载量: 35
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-09-16

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固