Exterbal URL
Question

I am working on a Application, where I am calling an external URL for the Payment,
After the Successful payment it will return the Application and call one API.

So issue I am facing here is , whenever I tried to refresh the payment Successful page, The API is calling again..


Any help will be appreciated here

You can manage this using client variable. Create a client variable and set default value as a false. 

After calling the API set this client variable value as True. While calling API check if client variable value is false then call API.

Reset the client variable value when user go for the another payment.


Thanks

Vinod

I encountered the same problem. Tried to do everything according to the recommendations of the previous commenter, but the problem remains unsolved. Maybe I'm doing something wrong?

Hey,

I think you should try to create flag attribute(Boolean) in entity, whenever you come back to application set that flag to true and then call API. 

After that when you will refresh the payment Successful page check for flag in entity if it is true then don't call API else call API.

Thanks

Yogesh

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.