Skip to content

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

Notifications You must be signed in to change notification settings

wiktorkoscielny/Magento2-braintree-cardholdername-custommodule

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Braintree Cardholder Name Field Example for Magento 2

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

Additional Information

Instructions

  • Override Braintree form and add a new field [Exaple]
  • Render a new hosted field in overridden method renderer [Exaple]
  • Add a preference for class that implements PayPal\Braintree\Gateway\Response\VaultDetailsHandler [Example]
  • Extend VaultDetailsHandler class and add new get payment token [Exaple]
  • At the end you can render new data in e.g. Magento\Vault\Block\CardRendererInterface template like $block->getCardHolderName()

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages