Skip to content

Feed's customer first/last name mapping is never sent to Paystack #27

Open

Description

@jules-paystack

Customer first and last names mapped in a Paystack feed never reach Paystack.

get_customer_fields() reads the feed meta keys customerInformation_firstName and customerInformation_lastName. Gravity Forms saves field-map values as <map>_<field name>, so the keys it actually saves are customerInformation_first_name and customerInformation_last_name. The lookup always returns empty.

This was found while testing on real Gravity Forms 2.7.0.2. It is also present on main, so it is not caused by the restricted-keys work in #26.

Fix: read the first_name/last_name keys. Fall back to the camelCase keys in case an older feed saved them. Add a test that uses a feed saved with the real key names.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions