pronamic / wp-pronamic-pay-formidable-forms

Formidable Forms driver for the WordPress payment processing library.
http://www.wp-pay.org/extensions/formidable-forms/
2 stars 1 forks source link

Add support for order ID setting #4

Closed remcotolsma closed 10 months ago

remcotolsma commented 10 months ago

In Dutch:

Met Gravity Forms hebben gebruikers ook de mogelijkheid om de bestelling ID aan te passen met behulp van Gravity Forms merge tags. Gisteren kwam er een pre-sale vraag binnen of dit ook mogelijk is in combinatie met Ingenico/Ogone en Formidable Forms. Op dit moment is dit echter niet mogelijk, de feed/actie instellingen zijn bij Formidable Forms een stuk beperkter:

pay local_wp-admin_admin php_page=formidable frm_action=settings id=2

Source: https://github.com/pronamic/pronamic-pay/issues/48#issuecomment-1655349154

In Gravity Forms we have already a settings for this:

https://github.com/pronamic/wp-pronamic-pay-gravityforms/blob/0be7f4a377f77bdb7af2b1c2f8c94c5efb0e3a9e/views/html-admin-feed-settings.php#L158-L217

We could also make the settings a bit more DRY:

https://github.com/pronamic/wp-pronamic-pay-formidable-forms/blob/2063767038380d4d6e9aa6c5d338eaab28c026df/views/payment-settings.php#L50-L189

remcotolsma commented 10 months ago

Did some work in https://github.com/pronamic/wp-pronamic-pay-formidable-forms/commit/91e03d4d16736333d8007e236b98d64afa523748.