Announcement

Collapse
No announcement yet.

Payment fields for single page app

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Payment fields for single page app

    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.
    Looking for work as of March 2024! I've been a web developer for going on 20 years, with most of that time spent on Miva sites.
Working...
X