-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 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]>
- Loading branch information
1 parent
facac66
commit f7ccb9d
Showing
15 changed files
with
737 additions
and
281 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Contributing | ||
|
||
Contributions are welcome, and are accepted via pull requests. Please review these guidelines before submitting any pull requests. | ||
|
||
## Guidelines | ||
|
||
* Please follow the [PSR-2 Coding Standard](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md). | ||
* Ensure that the current tests pass, and if you've added something new, add the tests where relevant. | ||
* Remember that we follow [SemVer](http://semver.org). If you are changing the behaviour, or the public api, you may need to update the docs. | ||
* Send a coherent commit history, making sure each individual commit in your pull request is meaningful. If you had to make multiple intermediate commits while developing, please [squash](http://git-scm.com/book/en/Git-Tools-Rewriting-History) them before submitting. | ||
* You may also need to [rebase](http://git-scm.com/book/en/Git-Branching-Rebasing) to avoid merge conflicts. | ||
|
||
## Running Tests | ||
|
||
You will need an install of [Composer](https://getcomposer.org) before continuing. | ||
|
||
First, install the dependencies: | ||
|
||
```bash | ||
$ composer install | ||
``` | ||
|
||
Then run phpunit: | ||
|
||
```bash | ||
$ vendor/bin/phpunit | ||
``` | ||
|
||
If the test suite passes on your local machine you should be good to go. | ||
|
||
When you make a pull request, the tests will automatically be run again by [Github Actions](https://github.com/shabayekdes/laravel-payment/actions) on multiple php versions and hhvm. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.