shetabit / payment

simple laravel payment package , supports multiple drivers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

فرستادن status code تراکنش در verify idpay

yasermh opened this issue · comments

Detailed description

Provide a detailed description of the change or addition you are proposing.

Make it clear if the issue is a bug, an enhancement or just a question.

Context

Why is this change important to you? How would you use it?

How can it benefit other users?

Possible implementation

Not obligatory, but suggest an idea for implementing addition or change.

Your environment

Include as many relevant details about the environment you experienced the bug in and how to reproduce it.

  • Version used (e.g. PHP 7.2, HHVM 3):
  • Operating system and version (e.g. Ubuntu 19.04, Windows 10):
  • Link to your project:
  • ...
  • ...

سلام
میشه وقتی تراکنش رو داریم verify می کنیم status code یا همون errorCode هم throw بشه اگه خواستیم اونو تو دیتابیس ذخیره کنیم

توی این فایل
https://github.com/shetabit/multipay/blob/master/src/Drivers/Idpay/Idpay.php
تابع notVerified
status هم throw بشه

throw new InvalidPaymentException($translations[$status],$status); خط ۲۳۶

سلام. بعله باید این اتفاق بیوفته. نیاز به ریفکتور کردن داریم. اینکار رو در اولویت قرار میدیم.