Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
If a user figures out a way to get to the payment processing system without adding an address, the error message returned is the generic "you didn't pass me a parameter I require" message, but somehow less helpful:
Object reference not set to an instance of an object.
Since we're adding an address in a function that returns false anyway, why not kick out of the payment processing at that point, and display a more helpful error message?
Attaching a patch for that. The same patch applies to 7.3 and 7.2.
Comment | File | Size | Author |
---|---|---|---|
commerce_iats_add_no_address_message.patch | 711 bytes | mariacha1 | |
Comments
Comment #2
mariacha1 CreditAttribution: mariacha1 as a volunteer commentedComment #4
ruscoe CreditAttribution: ruscoe at ThinkShout for Mailchimp commentedThank you!