payment processing in drupal 8 (drupalcamp ghent 2014)
TRANSCRIPT
Plugin types• Payment method *
• Payment method configuration
• Line item
• Payment status *
• Payment method selector
• Payment type *
New features/improvements
• Create custom payment statuses through the UI
• Payments have bundles
• Refund & postponed capture support
• No unnecessary opening of new windows
• Scheduled/recurring payments (work in progress)
Payment method configuration plugins
• Contain form elements to configure payment method configuration entities
• One instance per payment method configuration entity
Payment type plugins
• Contain metadata and provide functionality for the payment’s type/bundle
• One instance for every payment entity
Payment status plugins
• Describe payment’s current and previous statuses
• Multiple instances for every payment entity
From payment method configuration to payment method
• Write a payment method configuration plugin.
• Write a payment method that takes the payment method configuration plugin’s configuration as its definition.
• Write a plugin deriver to provide payment method definitions based on the configuration in payment method configuration entities.
What have you learned?
• How Payment helps development.
• The differences between Payment 7.x-1.x and 8.x-2.x.
• 6 plugin types and 4 entity types.
• How to create your own payment method.
Q&A
• http://twitter.com/BartFeenstra
• Xano on drupal.org and IRC
• Questions may also be asked on Twitter or http://drupal.org/project/issues/payment.