Gravity Forms empty amount (0
) » No payment » Action gform_ideal_fulfillment
hook
#28
Labels
0
) » No payment » Action gform_ideal_fulfillment
hook
#28
As mentioned in pronamic/wp-pronamic-pay#188 (comment) Gravity Forms does not handle empty payment amounts (
0
) by default:In Pronamic Pay we have created payments with a
0
amount that were automatically marked as successful. This allowed developers to use thegform_ideal_fulfillment
action hook for Gravity Forms entries with amount (> 0
), but also for entries without amount (= 0
). We will probably change this in the future. Developers usinggform_ideal_fulfillment
action hook may need to take action. In this issue we can discuss possible future-proof solutions. Some preparations have already been made:The
gform_post_payment_completed
action will probably not run for entries with an empty amount.Developers could use the
gform_post_payment_completed
action for entries where amount> 0
andgform_entry_created
for entries where amount= 0
.Perhaps the best solution is to develop a https://docs.gravityforms.com/gffeedaddon/ which executes the code from the
gform_ideal_fulfillment
action.The text was updated successfully, but these errors were encountered: