Getting the Customer ID and Date

To finish the function, we need 2 things:

  • the payment date (to update the custom field we created)
  • the Customer ID (to specify which customer record to update)

We use simple “get” commands to pull that information from the variable we created, “paymentRecord”.

After that, a simple “info” command and test run will let us know that we pulled the right information.