a2nt/userdefinedforms-payments

SilverStripe Userdefined Forms Payments

1.0.0 2021-09-07 11:23 UTC

This package is auto-updated.

Last update: 2024-11-24 02:47:24 UTC


README

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

Screenshot from 2021-07-07 00-04-03