activatePayment
activatePayment is used for activating payments and get payout from Qvickly shortly.
An example can be found here Activate payment example
Request
Data
Property | Required | Type | Description |
---|---|---|---|
number | true | int | The payment number of the payment you wish to activate. |
Function
Property | Required | Type | Description |
---|---|---|---|
function | true | string | The function name to be used, for this page it’s activatePayment |
{
"credentials": {
"id": "12345",
"hash": "24632112c18c6fbf7fce6409deda1d4824140c0059fbc108ed6190934c47709caffcb8f8c47fd770ab53e4637e5dac1b8679faa30a248353775dbf336a67d202",
"version": "2.5.0",
"client": "Pluginname:Qvickly:1.0",
"language": "sv",
"serverdata": {"HTTP_HOST":"developer.qvickly.io","HTTP_CONNECTION":"keep-alive","HTTP_CACHE_CONTROL":"max-age=0","HTTP_ACCEPT":"text\/html,application\/xhtml+xml,application\/xml;q=0.9,image\/webp,*\/*;q=0.8","HTTP_USER_AGENT":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/39.0.2171.95 Safari\/537.36","HTTP_ACCEPT_ENCODING":"gzip, deflate, sdch","HTTP_ACCEPT_LANGUAGE":"en-US,en;q=0.8","PATH":"\/sbin:\/usr\/sbin:\/bin:\/usr\/bin","SERVER_SOFTWARE":"Apache\/2.2.26 (Amazon)","SERVER_NAME":"developer.qvickly.io","SERVER_ADDR":"172.31.22.88","SERVER_PORT":"80","REMOTE_ADDR":"2.71.114.219","REMOTE_PORT":"53241","GATEWAY_INTERFACE":"CGI\/1.1","SERVER_PROTOCOL":"HTTP\/1.1","REQUEST_METHOD":"GET","QUERY_STRING":"","REQUEST_TIME":1421313644},
"time": "1417004339.9291 ",
"test": "true"
},
"data":{
"number":"1000235"
},
"function":"activatePayment"
}
Response
Property | Type | Description |
---|---|---|
number | int | Number is the payment/invoice number for the purchase. |
orderid | string | The unique order id generated by the shop as a reference. |
status | string | Statuses can be: Paid, Factoring, or Handling |
url | string | “Payment.url” to the pdf of the invoice. |
{
"credentials": {
"hash": "54c3928bd58ea07eec2b82b6f3075df85f9bc5846f737feee5e497dcf96df26097258b30447df4627f97fcd4100fa86f7dbe9dd4a753da29939d34c9afae013f"
},
"data": {
"number": "1000235",
"orderid": "12345",
"status": "Paid",
"url": "https://api.qvickly.io/invoice/140544658153c38f1cdf279"
}
}
Response where the invoice doesn't exist
{
"credentials": {
"hash": "54c3928bd58ea07eec2b82b6f3075df85f9bc5846f737feee5e497dcf96df26097258b30447df4627f97fcd4100fa86f7dbe9dd4a753da29939d34c9afae013f"
},
"data": {
"code": "5201",
"message": "Faktura med nummer 12345 som du efterfrågade existerar inte.",
"logid": "123456789"
}
}
Response for unknown payment method
{
"credentials": {
"hash": "54c3928bd58ea07eec2b82b6f3075df85f9bc5846f737feee5e497dcf96df26097258b30447df4627f97fcd4100fa86f7dbe9dd4a753da29939d34c9afae013f"
},
"data": {
"code": "5207",
"message": "Okänd betalningsmetod. Undefined method: 2048",
"logid": "123456789"
}
}
Last modified: 13 September 2024