alma / sylius-payment-plugin
Payment plugin to integrate Alma installments and pay later payments with your Sylius shop
Installs: 36 257
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 4
Forks: 5
Open Issues: 5
Type:sylius-plugin
Requires
- php: ~7.3 || ~7.4 || ~8.0 || ~8.1 || ~8.2
- ext-json: *
- alma/alma-php-client: >=1.11.2
- sylius/sylius: >=v1.9.0
Requires (Dev)
- behat/behat: ^3.6.1
- behat/mink-selenium2-driver: ^1.4
- dmore/behat-chrome-extension: ^1.3
- dmore/chrome-mink-driver: ^2.7
- friends-of-behat/mink: ^1.8
- friends-of-behat/mink-browserkit-driver: ^1.4
- friends-of-behat/mink-extension: ^2.4
- friends-of-behat/page-object-extension: ^0.3
- friends-of-behat/suite-settings-extension: ^1.0
- friends-of-behat/symfony-extension: ^2.1
- friends-of-behat/variadic-extension: ^1.3
- friendsofsymfony/oauth-server-bundle: ^1.6 || >2.0.0-alpha.0 ^2.0@dev
- lakion/mink-debug-extension: ^2.0.0
- phpspec/phpspec: ^7.0
- phpstan/extension-installer: ^1.0
- phpstan/phpstan: 0.12.88
- phpstan/phpstan-doctrine: 0.12.37
- phpstan/phpstan-strict-rules: ^0.12.0
- phpstan/phpstan-webmozart-assert: 0.12.12
- phpunit/phpunit: ^9.5
- sensiolabs/security-checker: ^6.0
- sylius-labs/coding-standard: ^3.1
- symfony/browser-kit: ^4.4 || ^5.2
- symfony/debug-bundle: ^4.4 || ^5.2
- symfony/dotenv: ^4.4 || ^5.2
- symfony/intl: ^4.4 || ^5.2
- symfony/web-profiler-bundle: ^4.4 || ^5.2
- vimeo/psalm: 4.6.4
- dev-main
- v2.0.0
- v1.3.0
- v1.2.0
- v1.1.0
- v1.0.2
- v1.0.1
- v1.0.0
- dev-security/public-aqua-workflow
- dev-security/reuse-aqua-workflow
- dev-feature/ecom-1822-sylius-add-hmac-verification-on-ipn
- dev-security/update_aqua_scanner_deprecated_option
- dev-develop
- dev-2-exception-500-if-api-not-available-http-500-503
- dev-feat/productWidget
This package is auto-updated.
Last update: 2024-11-10 07:56:46 UTC
README
Sylius Alma Payment Plugin
Integrate Alma installments and pay later payments with your Sylius shop
Documentation
Installation
- Use Composer to install the plugin:
$ composer require alma/sylius-payment-plugin
- 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}))?$
- Override Sylius' templates:
cp -R vendor/alma/sylius-payment-plugin/src/Resources/views/bundles/* templates/bundles/
- Export assets:
bin/console sylius:install:asset
- Update your shop's translation catalogs:
$ php bin/console translation:update --dump-messages fr AlmaSyliusPaymentPlugin
$ php bin/console translation:update --dump-messages en AlmaSyliusPaymentPlugin
- Finally, clear your cache:
$ php bin/console cache:clear
Requirements
- PHP version >= 7.3
- Sylius version >= 1.9.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.
Usage
-
Go to the Payment Methods admin page and choose to create a new "Alma Payments" method
-
Grab your API keys from your dashboard and paste them into the appropriate fields
-
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.
-
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. -
Choose a name for your method in the languages relevant to your shop.
-
You're done! Save the payment method to start accepting instalments payments on your shop!