Skip to content

An example on how to implement a custom field within the Magento 2 Braintree module.

Notifications You must be signed in to change notification settings

genecommerce/module-braintree-customfields-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Braintree Custom Fields Example for Magento 2

This is an example module demonstrating how to add a custom field to the Braintree transaction request within Magento 2.

Custom fields provide an easy way to collect additional information about your customers or their purchase, like the name of the product they purchased. They can be included when creating a transaction or adding a customer to the Vault, and can be stored in the Braintree gateway for reporting purposes.

Useful Links

Instructions

  1. Define a class that implements Magento\Braintree\Model\CustomFields\CustomFieldInterface [Example]
  2. Within di.xml define an additional argument for the Magento\Braintree\Model\CustomFields\Pool passing through an instance of your object [Example]

About

An example on how to implement a custom field within the Magento 2 Braintree module.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages