Webhook data for Orders Paid
- by David Lazar
A client recently requested some fancy processing based off of the Gateway attribute registered with a Paid order. When I receive, validate and inspect the JSON of the order, I am logging the gateway attribute and finding it is nil at times.
When I check the order using the API after the Webhook, the gateway attribute is present and matches the one rendered in the Shop admin.
Is there an explanation for why the gateway can at times be nil? This prevents me from taking care of the client's requested processing.