-
Notifications
You must be signed in to change notification settings - Fork 31
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
Implement allowed wallets feature. #12
base: main
Are you sure you want to change the base?
Conversation
@3m1n3nc3 can you rebase this? I tried, but I saw it has a conflict. I think you can resolve it. |
@HPWebdeveloper I resolved the errors, you probably missed it. |
@3m1n3nc3 I will check it |
Update tree
Merge to stay up to date.
Update Laravel version
You never merged this pull request, I've never used the main package in my projects because of this missing feature, just the branch I made the pull request from as a vcs, maybe the feature is too opinionated and may never be needed by anyone else but so was the custom reference feature, you may never know. |
This is not an opinionated feature. Could you please confirm my understanding. And clarify those point I misunderstood or it is not implemented. Thank you. The explanation in the PR suggests adding a feature to the package where only certain wallets can be used for making payments during a transaction. This means you can specify which wallets are permitted to be charged, and the system will ignore any wallets not included in this list. This can be useful in scenarios like an escrow system, where you want to ensure funds are not released from the escrow wallet until a specific condition (like closing a deal) is met. Here's a breakdown of the key points:
To clarify, this feature ensures that during a transaction, only wallets that are explicitly allowed will be considered for making payments. This prevents unauthorized or premature transactions from certain wallets, providing better control over fund flow, especially in sensitive scenarios like escrow arrangements. |
Okay,
|
The screenshot is not part of this library, it's from a project I'm worked on but using this library as the wallet system (I am using the branch on my repo as a vcs since the pull request is not yet closed) The pull request has nothing to do with the This PR does not have any side effects besides the fact that it will throw the SUGGESTION: Instead of returning a meaningful message from the pay method, I suggest that it should return all |
About backwards compatibility, apps will be broken if the developer is already implementing the |
that means having new tag 3.0.0, No problem. A question, I want |
Yes, that's exactly how it works. If no wallet list is provided it falls back to the default functionality. |
Your suggestion seems good. Can you work on this specific return general response ( |
Yeah sure |
This PR allows wallets to be marked as
allowed
during apay()
transaction, this will prevent the system from attempting to charge from wallets which have not been added to the allowed array of wallets, a possible use case for this is for an escrow system where you may want to restrict the outflow of funds from the escrow wallet before a deal is closed.See #8