[Discussion] Design of gateway-specific interfaces #24
Replies: 1 comment
-
Hi @jalallinux :) Thank you for submitting this issue. The topic at hand is indeed worthy of discussion. While developing the package API, I grappled with how best to structure it. I opted to adhere to driver-specific requirements for both requests and callbacks, while also generalizing certain shared components. This approach allows developers to clearly discern the unique requirements and expectations of each driver. For example, it can help prevent issues like assuming the presence of Conversely, when we consider ease of use, Laravel Socialite serves as a pertinent reference. This package standardizes callbacks (similar to ours) but leaves the associated logic to developers. However, its providers are not entirely interchangeable due to differences in attributes. We face a comparable challenge on the request side. Still, this architecture seems to have its merits. In conclusion, I'm ambivalent. Whichever route we choose, developers will need to implement their logic for interchangeability. Let's keep this issue open; it's a fascinating subject. |
Beta Was this translation helpful? Give feedback.
-
Hello @AmirrezaNasiri ✌🏻
Describe the bug
Two method are not existing for zarinpal driver, and only work on idpay.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
This package a multi pay driver package and it should have the same usage. but
orderId
,name
method only work for idpay driver.Screenshots
Exact Versions:
Beta Was this translation helpful? Give feedback.
All reactions