Payment context

Categories

Component ID

2409831

Component name

Payment context

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Downloads

2020

Component created

Component changed

Component body

This module defines a common interface between payment contexts that can be used in payment methods. It also provides auto-loading for those contexts so they are available on any payment object.

Payment methods can use the interface to …

  • get values from the payment context (ie. the form surrounding the payment widget)
  • use the redirect-function of the interface to use ajax-aware redirects.

Payment contexts …

  • can provide an as-seemless-as-possible integration of the payment process into the user-flow.
  • get autoloading (nearly) for free.