I have made a custom module in Magento 2 (my issue is not per se Magento 2 bound!). In this module I have moved the Terms and Conditions checkbox in the checkout to another place:
Now, unfortunately when selecting a payment method and checking the box (which is required), I get a 400 error. When I look at the payload (payment-information), I see that the value passed to
agreement_ids is empty:
This stops me from placing the order. When using the 'normal' checkout procedure, the
argreement_ids key get's passed the value
1 to the payload upon submitting the order? I have searched for some similar posts but they are a litte vague to me since my knowledge of this stuff (JSON /
parsing values etc.) isn't that advanced.
Thank you in advance.