Cards
Card API Specification
Create Payment Using Token
code examples curl location 'https //sand api monoova com/au/card/ccm/creditcardtransaction/payment' \\ \ header 'accept application/json' \\ \ header 'content type application/json' \\ \ data '{ "clienttransactionuniquereference" "", "customer" { "billingaddress" { "firstname" "", "lastname" "", "street" \[], "suburb" "", "state" "", "postalcode" "", "countrycode" "" } }, "paymentdetails" { "description" "" }, "amount" { "currencyamount" "" } }'var options = new restclientoptions("https //sand api monoova com") { maxtimeout = 1, }; var client = new restclient(options); var request = new restrequest("/au/card/ccm/creditcardtransaction/payment", method post); request addheader("accept", "application/json"); request addheader("content type", "application/json"); var body = @"{" + "\n" + @" ""clienttransactionuniquereference"" """"," + "\n" + @" ""customer"" {" + "\n" + @" ""billingaddress"" {" + "\n" + @" ""firstname"" """"," + "\n" + @" ""lastname"" """"," + "\n" + @" ""street"" \[]," + "\n" + @" ""suburb"" """"," + "\n" + @" ""state"" """"," + "\n" + @" ""postalcode"" """"," + "\n" + @" ""countrycode"" """"" + "\n" + @" }" + "\n" + @" }," + "\n" + @" ""paymentdetails"" {" + "\n" + @" ""description"" """"" + "\n" + @" }," + "\n" + @" ""amount"" {" + "\n" + @" ""currencyamount"" """"" + "\n" + @" }" + "\n" + @"}"; request addstringbody(body, dataformat json); restresponse response = await client executeasync(request); console writeline(response content);var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("content type", "application/json"); var raw = json stringify({ "clienttransactionuniquereference" "", "customer" { "billingaddress" { "firstname" "", "lastname" "", "street" \[], "suburb" "", "state" "", "postalcode" "", "countrycode" "" } }, "paymentdetails" { "description" "" }, "amount" { "currencyamount" "" } }); var requestoptions = { method 'post', headers myheaders, body raw, redirect 'follow' }; fetch("https //sand api monoova com/au/card/ccm/creditcardtransaction/payment", requestoptions) then(response => response text()) then(result => console log(result)) catch(error => console log('error', error));\<?php $curl = curl init(); curl setopt array($curl, array( curlopt url => 'https //sand api monoova com/au/card/ccm/creditcardtransaction/payment', curlopt returntransfer => true, curlopt encoding => '', curlopt maxredirs => 10, curlopt timeout => 0, curlopt followlocation => true, curlopt http version => curl http version 1 1, curlopt customrequest => 'post', curlopt postfields =>'{ "clienttransactionuniquereference" "", "customer" { "billingaddress" { "firstname" "", "lastname" "", "street" \[], "suburb" "", "state" "", "postalcode" "", "countrycode" "" } }, "paymentdetails" { "description" "" }, "amount" { "currencyamount" "" } }', curlopt httpheader => array( 'accept application/json', 'content type application/json' ), )); $response = curl exec($curl); curl close($curl); echo $response; responses // ok { "traceid" "", "clienttransactionuniquereference" "", "clientpaymenttokenuniquereference" "", "clienttokenuniquereference" "", "surchargeamount" "", "status" "", "statusreasoncode" "", "statusreasondescription" "", "paymentmethodstatus" "" }// created { "traceid" "", "clienttransactionuniquereference" "", "clientpaymenttokenuniquereference" "", "clienttokenuniquereference" "", "surchargeamount" "", "status" "", "statusreasoncode" "", "statusreasondescription" "", "paymentmethodstatus" "" }// bad request { "traceid" "", "errors" \[ { "errorcode" "", "errormessage" "", "sourceerrorcode" "", "sourceerrormessage" "" } ] }// forbidden { "traceid" "", "errors" \[ { "errorcode" "", "errormessage" "", "sourceerrorcode" "", "sourceerrormessage" "" } ] }// not found { "traceid" "", "errors" \[ { "errorcode" "", "errormessage" "", "sourceerrorcode" "", "sourceerrormessage" "" } ] }// internal server error // bad gateway // gateway timeout