• Home
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Create an article
  • Post an idea
  • Spaces
  • App Market Developer Platform
  • Clover GO
  • Ideas & Feedback
  • Semi-Integration
  • Explore
  • Topics
  • Questions
  • Articles
  • Ideas
Skip to main content
  • Create
    • Ask a question
    • Post an idea
    • App Market Developer Platform
    • Clover GO
    • Ideas & Feedback
    • Semi-Integration
    • Topics
    • Questions
    • Articles
    • Ideas
  • Sign in
  • Home
  • App Market Developer Platform
This question was closed Jul 03 at 11:03 PM by Lauren Worthington for the following reason: The question is answered, right answer was accepted

question

sanjay avatar image
sanjay asked · Jan 22 at 04:18 PM

Payment connector is not able to give the reason of refund failure.

Hi,
We are facing an issue when we send a refund request via following code:

RefundPaymentRequest refund = new RefundPaymentRequest();
refund.setPaymentId(paymentId);
refund.setOrderId(orderId);
refund.setAmount(amount);
refund.setFullRefund(false);
mPaymentConnector.refundPayment(refund);
We are not able to get the reason/status code in case of refund fail ure. We found only the following details:
{"message":null,"result":"FAIL","success":false,"reason":null,"refund":null}
Can you please suggest to us that how can we get the reason of failure-refund.

Thank you.
PaymentConnector
Comment
0
10 |2000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

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

2 Answers

  • Sort by Created Created
  • Sort by Oldest Oldest
  • Sort by Votes Votes
Raymond Lee avatar image
Raymond Lee answered · Feb 26 at 10:21 PM ACCEPTED ANSWER
The response you get from RefundPaymentResponse will not contain the failure reason in the "reason" field, but rather the "message" field. However as you have noted, that is also null.

The issue you are seeing is due to a bug where the refund failure message is not being passed back to PaymentConnector to provide in the RefundPaymentResponse. I will file a bug report for this issue.

As for now, unfortunately there is currently no work around to get the failure message from a failed refund.

Thanks for bringing this to our attention!
· 1 comment · Share
10 |2000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

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

sanjay avatar image sanjay · Feb 27 at 09:28 AM

OK Thanks @Raymond Lee

0 · ·
Raymond Lee avatar image
Raymond Lee answered · Feb 15 at 11:14 PM
If this is occurring on Station 2018, there was a recent bug found where a payment created through PaymentConnector on Station 2018 could not be refunded.

This has since been fixed on Sandbox, and will be rolled out to Production at a later date.

Can you verify if this issue is occuring for you on Station 2018?
· 4 comments · Share
10 |2000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

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

sanjay avatar image sanjay · Feb 20 at 10:06 AM

Hi @Raymond Lee

We are using clover flex and clover mobile device and the issue is still. In the case of failure, we didn't find reasion of failiour.

Thank you.

0 · ·
Raymond Lee avatar image Raymond Lee sanjay · Feb 20 at 07:00 PM

Can you provide the paymentId for the payment you are trying to refund? We can take a look as to why the refund failed, and why the reason is null.

0 · ·
sanjay avatar image sanjay Raymond Lee · Feb 21 at 09:24 AM

Hi @Raymond Lee

Thanks for your answer. But you can also try on your side via the following steps:

Let me clear you via the following example:

1. We did pay for $50.

2. We hit the refund request of $50 for the same transaction. (In that case, the refund will be successful).

3. We hit the refund again for the same transaction.

You will found:

{"message":null,"result":"FAIL","success":false,"reason":null,"refund":null}

Thanks.

0 · ·
Show more comments

Welcome to the
Clover Developer Community

question details

2 People are following this question.

sanjayprasad follows this question raymond.lee follows this question
Answers Subscribe to Answers Answers and Comments Subscribe to Comments and Answers

Related Questions

Loyalty/Payment App 1 Answer

Can we integrate payment connector in any tablet for application rather than any clover device ? 1 Answer

"Semi Custom" Receipt Printing 0 Answers

Android Secure Payment example out of date or deprecated package "remotepay"? 1 Answer

How can we disable debit card option via configuration 1 Answer

Answerhub Logo
  • About
  • ·
  • FAQ
  • ·
  • Privacy
  • ·
  • Copyright © 2010-19 DZone, Inc.