Page History
...
| Code Block | ||
|---|---|---|
| 
 | ||
|   $.post("/pay/tokenpay_widget_gp.cfm", JSON.stringify(data)).then(function (result) {
     //here should be processing the response from the payment service
     // this is an response example {"order":{"ordernumber":"2019.03.11-664","orderstate":"Approved"}}
  }); | 
If for some reason the order payment was unsuccessful, then the service will return error messages (with appropriated values of the firstcode and secondcode parameters).
