Hi all, I'm tinkering with a single page app (NextJS/React) using Miva as the backend. It's working well so far, but I hit a minor snag on the OPAY screen. Normally the app communicates with Miva by post/get requests, and I have Miva set up to respond with JSON objects that tell the app what to display etc.
But for the payment fields on OPAY, I don't see an easy way to get Miva to return a JSON object that lists the fields (like credit card number, expiration, etc) so I can then render them. Anyone have any ideas on a good way to go about it? I suppose I could write a Miva module that outputs what I need as JSON, but it would be nice if there were a way to do it with mvt and built-in functions.
But for the payment fields on OPAY, I don't see an easy way to get Miva to return a JSON object that lists the fields (like credit card number, expiration, etc) so I can then render them. Anyone have any ideas on a good way to go about it? I suppose I could write a Miva module that outputs what I need as JSON, but it would be nice if there were a way to do it with mvt and built-in functions.