alma/sylius-payment-plugin 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

alma/sylius-payment-plugin

Composer 安装命令:

composer require alma/sylius-payment-plugin

包简介

Payment plugin to integrate Alma installments and pay later payments with your Sylius shop

README 文档

README

logo alma logo sylius

Sylius Alma Payment Plugin

Integrate Alma installments and pay later payments with your Sylius shop

Requirements

Compatibility

  • Sylius: Compatible with versions 1.9.x to 1.12.x
  • PHP: Compatible with versions 7.3 to 8.0

Alma currently accepts Euros only; make sure you activate your payment method on channels that use that currency, else you won't see it at checkout.

Your Alma payment methods will only show for eligible carts. Eligibility is mainly based on the purchased amount, which by default should be between 100€ and 2000€; if you want those limits changed, you can talk to your sales representative at Alma, or contact support@getalma.eu.

Documentation

Account Setup (Required)

Before configuring the module, you need to create your merchant account on dashboard.getalma.eu.

  1. Go to registration page and create an account.
  2. Retrieve your API key from the dashboard.
  3. Use these credentials in the module configuration.

Installation

  1. Use Composer to install the plugin:
$ composer require alma/sylius-payment-plugin
  1. Import routes:
# config/routes/sylius_shop.yaml

sylius_alma:
    resource: "@AlmaSyliusPaymentPlugin/Resources/config/shop_routing.yaml"
    prefix: /{_locale}
    requirements:
        _locale: ^[A-Za-z]{2,4}(_([A-Za-z]{4}|[0-9]{3}))?(_([A-Za-z]{2}|[0-9]{3}))?$
  1. Override Sylius' templates:
cp -R vendor/alma/sylius-payment-plugin/src/Resources/views/bundles/* templates/bundles/
  1. Export assets:
bin/console sylius:install:asset
  1. Update your shop's translation catalogs:
$ php bin/console translation:update --dump-messages fr AlmaSyliusPaymentPlugin 
$ php bin/console translation:update --dump-messages en AlmaSyliusPaymentPlugin 
  1. Finally, clear your cache:
$ php bin/console cache:clear

Usage

  1. Go to the Payment Methods admin page and choose to create a new "Alma Payments" method

  2. Grab your API keys from your dashboard and paste them into the appropriate fields

  3. Choose the installments count to apply for this payment method. If you want to offer multiple installments counts to your customers, you can create one Alma payment method per installments count.

  4. Set the API mode to Test if you want to first test the integration with a fake credit card, on your preproduction servers for instance.
    When you're ready for production, set the API mode to Live.

  5. Choose a name for your method in the languages relevant to your shop.

  6. You're done! Save the payment method to start accepting instalments payments on your shop!

Support

If you encounter any issues or have questions, feel free to contact us at support@getalma.eu.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-02-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固