User Defined Forms Conditional Payments Let's you add conditions to calculate amount and require payment using omnipay module
-
Install it using composer
composer require a2nt/userdefinedforms-payments
-
Define Payment configuration app/_config/api-payment.yml
---
Name: 'webapp-api-payment'
---
SilverStripe\Omnipay\Model\Payment:
allowed_gateways:
- 'PayPal_Express'
SilverStripe\Omnipay\GatewayInfo:
PayPal_Express:
parameters:
username: ''
password: ''
signature: ''
testMode: true # Make sure to override this to false
-
Run /dev/build?flush
-
Define Payment Rules of a specific User Form at the CMS