Mastercard Integration

I am currently trying to integrate a hosted session checkout in Wix using Mastercard. I am fairly new to this. How do I add this code to Wix? Is it possible? Wix only supports Javascript and I am currently stuck. Thank you.

curl https://ap - gateway.mastercard.com/api/nvp/version/57 \
-d “apiOperation=CREATE_CHECKOUT_SESSION” \
-d “apiPassword=$PWD” \
-d “apiUsername=merchant.<your_merchant_id>” \
-d “merchant=<your_merchant_id>” \
-d “interaction.operation=AUTHORIZE” \
-d “order.id=<unique_order_id>” \
-d “order.amount=100.00” \
-d “order.currency=USD”

You will need to read about how to access 3rd party services in the article Corvid: How to Access 3rd-Party Services with the Fetch API . You should find out from the service provider what you need in order to interface to their service.

You might find that Wix already supplies a solution that is suitable for your needs. See the documentation for Accepting Payments for details.