Delaying stripe feed so Gravitywiz uniqueID field is populated

Hi,

We are trying to use the gf_replace_charge_description filter to change the description visible within the Stripe payment form setup.

For this we removed, unset, the entriID from the strings array and have added a reference to the uniqueID field to the description.

issue:

  • The snippet runs before the entry is created
    • This means the uniqueID field is still empty

A feed could be delay using gform_is_delayed_pre_process_feed, but I’m not sure if this works for the Stripe feed and if it would break anything else.

UniqueID can be populated before entry creation, there is a snippet for it, but this may break the uniqueness of the ID value which is not what we want in this specific case.

Any suggestions on how to achieve:

  • Getting the uniqueID populated
    • Execute the stripe payment (or the code snippets setting the description and payment descriptor) after entry creation.

For now we have implemented this snippet set to the specific form.

Update:

First of all there was an error in the snippet, != vs. == :frowning:

Interestingly it seems the gform_stripe_charge_description hook is called at least twice.

We can see this as a rewrite with the rgar() function shows:

  • The placeholder in the webhook logs (Stripe dashboard)
    • The actual entry field value in the actual description.
    • Not sure if the descriptor is also rewritten twice

Not tested with the above snippet yet.

Not sure it will make any difference.