question

superdave avatar image
superdave asked

Update Payment failed

I am using REST API and e-commerce api for this development.

My test merchant in PROD, is under Payment Plus Plan.


Here is my goal, each successful transaction, MUST attached to an Employee of my choice, and attached to a Customer of my choice.


I have an Employee, set in web portal.

I have an existed PaymentID, created by E-Comm /v1/charges endpoint.


I ran the following code in c#

--------------------

var client = new RestClient("https://api.clover.com/v3/merchants/mID/payments/paymentID?access_token=token");

var request = new RestRequest(Method.POST);

request.AddHeader("content-type", "application/json");

request.AddParameter("application/json", "{\"employee\":{\"id\":\""+ EmployeeIDOfMyChoice + "\"}}", ParameterType.RequestBody);

IRestResponse response = client.Execute(request);

--------------------------

The status return as "SUCCESS", but nothing has changed........


Same story, but I want to attach a customer id of my choice to a payment, so reporting works perfectly.

Paymentse-commerce apiCustomersEmployees
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

0 Answers

·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community