Integrate Adyen Payment with Commercetools
there isn’t a lot of commercetools content available online so I’m going to document some of the issues that I’ve faced while working with CT and the solutions that I have found.
when integrating CT GraphQL with Adyen Payments, it requires you to set a custom field with the makePaymentRequest
field. however, its not as straightforward as a simple assignment operation.
this post abstracts a lot of the details around Adyen-CT integration, a lot of which I would consider the easy part.
however, it solves a very important step — the documentation on which is not clear and the errors aren’t helpful.
creating a payment
everything else is quite straightforward except line 27. it’s this combination of commas and stringification that will get this part to work.
updating payment
same story here. focus on line 12.