VivaPayments/API

Get device as a demo account

Closed this issue · 8 comments

I just want to send the amount to viva wallet device

I have managed to get the accesstoken
From the dashboard, I've created the store (if needed)
$params= array(
"statusId" => 1,
"sourceCode" => "9504"
);
$headers[] = 'Authorization: Bearer ' . $ac;
$headers[] = 'ClientID: ' . $sid;
$headers[] = 'ClientSecret: ' . $secret;
$headers[] = 'application/x-www-form-urlencoded';
curl_setopt($ch, CURLOPT_POSTFIELDS, $params);
tried above - internal server error being returned from curl

tried
$headers[] = 'Content-Type: application/json';
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($params));
only [] is being returned

Is there any test device sourcode that I can use ?

Thanks

Hello @jspit,

Thank you for your message and apologies for the late response.
Can you please clarify which API call are you trying to implement?

Kind regards,
Viva E-commerce Support Team

Hello @jspit,

This call allows you to discover the current status of the EFT POS devices. If you want to send the amount to a POS device please check the initiate a Sales Request API call.

Kind regards,
Viva E-commerce Support Team

jspit commented

Hello @jspit,

Thank you for your prompt response.
Please share your gmail account at support@viva.com , it will be added to our whitelist. You will then be able to download the demo APP and create a virtual terminal for testing purposes,

Kind regards,
Viva E-commerce Support Team

jspit commented

Hello @jspit,

Thank you for your swift response.
Please share your gmail account at support@viva.com , we can't access it here.

Kind regards,
Viva E-commerce Support Team

This ticket will close for now. Please don't hesitate to raise a new ticket if you need further assistance.

Kind regards,
Viva E-commerce Support Team