Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create new payment lazily to avoid creating to many transactions. #47

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pplotka
Copy link
Contributor

@pplotka pplotka commented Aug 18, 2022

The current implementation tries to create new transactions too fast. This is a problem, especially after coming back from PayU. In this case, we don't need to create a new payment. We should retrieve information and only create payment if necessary.

In our business case, we send payment id as extOrderId. When we come back from Payu in the current implementation we got the exception ERROR_ORDER_NOT_UNIQUE.

I think this might be related to #19

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant