Hi all,
We have a Payment Customization Function running in checkout for a client.
We do not want this function to run when the checkout is being used to pay an “Invoice” (sent via email when the customer adds an item / merchant edits an order).
Is there a way to achieve this? Can we read the type of checkout so that I can prevent our function from running?
Thanks,
Alex
I guess it depends on which type of function you are running. I think only the payment function has access via the run.graphql query direct access to the payment method name, then you can conditionally decide what to do based on that.
All other UI extensions do not have access to know what the selected payment method name is only the type e.g. credit card, manual payment etc.
Cheers
Hi Gary,
Yes it’s a Payment Function, and we do have access to the payment methods - but as far as I’m aware that won’t help us denote whether or not the checkout is being used to pay an “invoice” or an outstanding balance.
Thanks,
A