Discussing Shopify Functions development, deployment, and usage in Shopify apps.
Hello team,
We found this bug in our payment-customization function, and can be reproduced for most of the time:
1. in payment function, we are reading the cart attribute:
query Input { cart { sample_attr: attribute(key: "sample_attr") { key value }
2. in customer frontend, we add attributes via cart ajax api.
3. then customer click the pay now button after input payment info
4. in function execution log, we see the attributes are empty.
And the strange point is, before customer click PayNow button, we found the payment function also has executed, but the attributes works well and are available in function input.
We have tested several times, and we are sure it's very easy to reproduce.
Seems to be a bug that happened starting last week or earlier.
Please help check since this is impacting our app's core feature, thank you!