os2forms/os2forms_payment
最新稳定版本:1.1.2
Composer 安装命令:
composer require os2forms/os2forms_payment
包简介
OS2Forms payment
README 文档
README
Installation
composer require os2forms/payment drush pm:enable os2forms_payment
Define settings in settings.local.php:
// CHECKOUT_KEY, both test and production, can be retrieved from Nets admin panel $settings['os2forms_payment']['checkout_key'] = ''; // SECRET_KEY, both test and production, can be retrieved from Nets admin panel $settings['os2forms_payment']['secret_key'] = ''; // Page containing terms and conditions URL, including protocol. $settings['os2forms_payment']['terms_url'] = ''; // Page containing merchant terms URL, including protocol. $settings['os2forms_payment']['merchant_terms_url'] = ''; // Boolean describing whether the module is operated in test mode $settings['os2forms_payment']['test_mode'] = TRUE;
Setup
Make sure that the setting values described above are set.
- Create a new webform
- Goto Indstillinger -> Formular -> Form preview settings -> Enable preview page (Obligatorisk)
- Add a payent element on the form
- Go to the payment element settings and select the element containing the amount to pay (field types: Skjult, Vælg).
- Test the form. The Nets gateway should appear on the Review page.
Coding standards
docker run --rm --interactive --tty --volume ${PWD}:/app itkdev/php8.3-fpm:latest composer install docker run --rm --interactive --tty --volume ${PWD}:/app itkdev/php8.3-fpm:latest composer coding-standards-check docker run --rm --interactive --tty --volume ${PWD}:/app node:20 yarn --cwd /app install docker run --rm --interactive --tty --volume ${PWD}:/app node:20 yarn --cwd /app coding-standards-check
Code analysis
docker run --rm --interactive --tty --volume ${PWD}:/app itkdev/php8.3-fpm:latest composer install docker run --rm --interactive --tty --volume ${PWD}:/app itkdev/php8.3-fpm:latest composer code-analysis
统计信息
- 总下载量: 2.1k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-10-24