Require custom field for payment method [RESOLVED]

Hi everyone,

I’m working on a payment addon that captures a direct debit (non-US equivalent of ACH).

To do this, I’ve created a custom field type that collects the account details in one hit (like a credit card field would).

What I’m looking to do next, and am having trouble working out via the docs, is one of the following:

  • Require the account details field (direct_debit_account) be present to be able to create a feed; or
  • Require certain fields be mapped to specific field types (the usual field_map options aren’t doing anything

Any ideas? :slight_smile:

I needed another coffee…

Just needed to treat the array in billing_info_fields as a field_map field itself… :roll_eyes: