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

Handle return exception with array data #12

Closed
shabayekdes opened this issue Jan 13, 2022 · 1 comment
Closed

Handle return exception with array data #12

shabayekdes opened this issue Jan 13, 2022 · 1 comment

Comments

@shabayekdes
Copy link
Owner

Throw an exception if payment fails in order to return data array with success => false and message => "reason fail"

shabayekdes added a commit that referenced this issue Jan 15, 2022
* Change on paymob fake request helper

* Add Item by one function

* Apply fixes from StyleCI

* Add PaymobOrderTest class for order paymob unit test

* Apply fixes from StyleCI

* Add nunomaduro/collision package

* Add Invalid Credentials Exception

* Refactor define Environment in test case class

* Add CONTRIBUTING md

* Apply fixes from StyleCI

* Update README

* Change purchase return type

* Handle errors in paymob payment

* Refactor paymob test case with excepted exception

* Apply fixes from StyleCI

* Handel errors in get order data from paymobb #12

* Fix paymob installment test case

* Apply fixes from StyleCI

* Add handle error payment method test case

* Test if customer details is not set

* Apply fixes from StyleCI (#18)

Co-authored-by: StyleCI Bot <[email protected]>

* Change handle error test to paymob handle error

* Add isSuccess of payment status

Co-authored-by: StyleCI Bot <[email protected]>
@shabayekdes
Copy link
Owner Author

Fixed #14

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

No branches or pull requests

1 participant