cmdotcom-plugins/magento2-payments
Composer 安装命令:
composer require cmdotcom-plugins/magento2-payments
包简介
CM Payment module for Magento 2
关键字:
README 文档
README
- Get started
- Installation & Update the CM.com Payments Magento 2 plugin
- About CM.com Payments
- Supported CM.com Payments Methods
- Requirements
- Setup local development environment
- Payment methods
- Issues and support
Get started
Before you begin to integrate Magento with the CM.com payments platform, make sure that you have performed the following steps:
- Sign up for a test account with CM.com Payments at https://www.cm.com/register/?app=81e52ab7-4cfc-4b89-8ae8-f5be73bab15d&product=PAYMENTMETHODS
- Create a payment method profile in the CM Portal
- Install and configure the magento module
Installation & Update the CM.com Payments Magento 2 plugin
-
Installation by Composer
composer require cmdotcom-plugins/magento2-paymentsphp bin/magento module:enable CM_Payments php bin/magento setup:upgrade php bin/magento cache:cleanIf Magento® is running in production mode, deploy the static content:
php bin/magento setup:static-content:deploy -
Update by Composer
composer update cmdotcom-plugins/magento2-paymentsphp bin/magento setup:upgrade php bin/magento cache:cleanIf Magento® is running in production mode, deploy the static content:
php bin/magento setup:static-content:deploy -
Configuration
To configure the CM.com Payments extension you can go to your Magento® 2 admin portal, to Stores > Configuration > CM.com Payments
- General settings: Set ‘Enabled’ to ‘Yes’
- General settings: Enter the Test and/or API key of your webshop. You received the API credentials by email from CM.com Payments (register link)
- General settings: Set payment method profile that is configured in the CM Portal
- Payment methods: Configure each payment method you would like to offer in your webshop
- Magento: Refresh the caches after saving the configuration
About CM.com Payments
Supported CM.com Payments Methods
- iDEAL, iDEAL QR
- Banktransfer
- Credit Cards (American Express, Mastercard, Maestro, Visa, V-Pay)
- Bancontact, Bancontact Mobile
- Sofortüberweisung, EBanking
- Paysafecard
- ELV
- Giropay
- KBC, CBC
- Belfius Pay Button
- ING Home Pay
- Giftcards
- Point of Sale
- Apple Pay, Apple Business Chat
- Google Pay
- PayPal
- Sepa Direct Debit
- Afterpay
- Klarna
- Przelewy24, BLIK
For more details on the configuring see the payment methonds section below.
Requirements
- Magento Open Source / Enterprise version 2.3.x & 2.4.x
- PHP 7.2+
Setup local development environment
Setup local development environment with installed extension
mkdir extensions
git clone git@github.com:cmdotcom-plugins/pay-ext-magento2.git
composer config repositories.dev-extensions path extensions/*
composer require cmdotcom-plugins/magento2-payments:@dev
bin/magento module:enable CM_Payments
bin/magento setup:upgrade
Docker setup
https://github.com/markshust/docker-magento
Payment methods
Fetch payment methods by order
The CM.com API requires an order to retrieve all the payment methods, to accomplish this in the Magento checkout this module creates a temporary order based on the Magento quote. These temporary orders will always have a 'Q_' prefix.
Payment method configuration
General
Each payment method is configurable in Magento. There are a few default settings:
- Enabled
- Title
- Applicable countries
- Applicable currencies
- Minimum order total
- Maximum order total
- Sort order
Note The payment methods will only visible if they enabled in both Magento and the CM.com Portal.
CM.com redirect to Menu
This payment method redirects to the CM.com payment menu. In the payment menu you will see all available payment methods as configured in the CM.com Portal.
iDEAL
This payment method redirects to the ideal payment menu.
Paypal
This method directly redirects to the Paypal payment page.
ELV
ELV (Elektronisches Lastschriftverfahren) is a payment method used mainly in Germany. This method directly redirects to the ELV payment page.
Klarna
This method directly redirects to the Klarna payment page. Klarna requires a birthdate of the shopper which is requested in the Magento checkout.
Creditcard
All the 'Creditcard' payment methods are mapped under one Magento payment method called cm_payments_creditcard
This includes the following CM.com payment methods:
VISA
MASTERCARD
MAESTRO
Configuration
The creditcard payment redirects to the CM.com payment menu. It's recommended to create a separate 'Creditcard' payment profile in the CM.com portal to show only the credit card methods in the CM.com payment menu.
BanContact
The BanContact payment redirects to the CM.com payment menu. It's recommended to create a separate 'BanContact' payment profile in the CM.com portal to show only the BanContact method in the CM.com payment menu.
Afterpay
The BanContact payment redirects to the CM.com payment menu. It's recommended to create a separate 'Afterpay' payment profile in the CM.com portal to show only the Afterpay method in the CM.com payment menu.
KBC
The KBC payment redirects to the CM.com payment menu. It's recommended to create a separate 'KBC' payment profile in the CM.com portal to show only the KBC method in the CM.com payment menu.
Belfius
The Belfius payment redirects to the CM.com payment menu. It's recommended to create a separate 'Belfius' payment profile in the CM.com portal to show only the Belfius method in the CM.com payment menu.
Webhook
In order to get status updates from CM.com it's required to configure a webhook in the CM.com portal.
The url for this webhook is: {{shop_url}}/cmpayments/payment/notification?id={{increment_id}}
Issues and support
You can create issues on our Github repository. If you have other questions, or need specific payment methods in your test account, contact us at support.payments@cm.com
cmdotcom-plugins/magento2-payments 适用场景与选型建议
cmdotcom-plugins/magento2-payments 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 6.92k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2022 年 02 月 08 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「ideal」 「creditcard」 「visa」 「klarna」 「Maestro」 「bancontact」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 cmdotcom-plugins/magento2-payments 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 cmdotcom-plugins/magento2-payments 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 cmdotcom-plugins/magento2-payments 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
iDeal payment gateway for Omnipay
Fork Off inacho/php-credit-card-validator Because it looks like is not being manteined anymore --- Validates popular debit and credit cards numbers against regular expressions and Luhn algorithm. Also validates the CVC and the expiration date
iDeal driver for the Omnipay PHP payment processing library
Laravel >=5.6 integration for the PHP Credit Cards package that allows to perform operations on debit and credit cards like format, validate brand, number and Luhn algorithm.
Aktive-Merchant provides a common interface to process payments using multiple gateways.
CardGate API client library for PHP
统计信息
- 总下载量: 6.92k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 33
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: OSL-3.0
- 更新时间: 2022-02-08