#Jitendra

1 messages · Page 1 of 1 (latest)

wide currentBOT
mental hinge
#

Hi! Let me help you with this.

#

while cancel action API call for remove display amount from terminal
i'm calling this api after cancel payment intent

hushed sandal
#

hi

#

where i can get request Id

#

?

mental hinge
hushed sandal
#

req_hpJB31CKnt60uO

#

i just want to remove the display amount from the reader.. if i cancel the payment

#

i have called cancel payment intent

#

after this i'm calling cancel action API as suggested in doc

#

but i'm getting this error

#

Reader is currently processing a transaction from a different integration mode

#

would you please suggest,, why i'm getting this error

#

POST /v1/terminal/readers/tmr_EKBegYziIqs8TM/cancel_action

mental hinge
#

How does you Terminal integration look like?

hushed sandal
#

integration is ok... i can make payment with terminal in positive case..

#

but if i cancel the payment then i have to remove displayed amount from the reader

#

so i called the cancel action api....

#

at the time.. i'm getting this error

#

would you please let me know in which case this erorr is occoured

#

any suggestion?

mental hinge
hushed sandal
#

server-driven

mental hinge
#

Please delete your secret key from the chat

#

I deleted the message for you

#

That's how you're cancelling it, but how do you accept payments?

wide currentBOT
hushed sandal
#

that was sample code

#

any reason of this error?

surreal timber
#

Sounds like your Reader is engaged in activity initiated from a different integration (not server-side, which is what that API you called)

#

Can you share details on how you handle payments with Terminal today?

hushed sandal
#

i'm creating the requet through the this.terminal.connectReader(this.selectedReader)

#

with sdk process

surreal timber
#

Yes, that's a non- server flow. The cancel_action API is for server-driven flows

hushed sandal
#

you mean we have to call cancel collect payment instead of cancel_action service driven

#

we can not canel action by passing terminal id?

#

from server side call

surreal timber
hushed sandal
#

so in cancelCollectPaymentMethod do we need to pass payment intent id.. i mean how will it cancel the payment...

surreal timber
#

You call it on the Terminal connection/instance you've initiated in your code

hushed sandal
#

okay