dynamic / foxystripe

FoxyStripe is a SilverStripe ecommerce module that integrates with FoxyCart.
http://foxystripe.org
BSD 3-Clause "New" or "Revised" License
8 stars 11 forks source link

REFACTOR FoxyStripePurchaseForm fields to use setValue() for encrypted values #367

Closed muskie9 closed 2 years ago

muskie9 commented 5 years ago

Summary Extending the current FoxyStripePurchaseForm is difficult due to the field names having the encrypted value in them. This update would change the structure from FormField::create('encrypted_value') to FormField::create('foxystripe_field')->setValue('encrypted_value'). This should allow for stronger extensibility as well as align the fields' name to Foxy's API.