Skip to content

Commit

Permalink
update readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
azishapidin committed Oct 25, 2018
1 parent 9ec7c44 commit f97ba1d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 58 deletions.
Binary file added .DS_Store
Binary file not shown.
Binary file added docs/payment-flow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
72 changes: 14 additions & 58 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,65 +1,21 @@
<p align="center"><img src="https://laravel.com/assets/img/components/logo-laravel.svg"></p>

<p align="center">
<a href="https://travis-ci.org/laravel/framework"><img src="https://travis-ci.org/laravel/framework.svg" alt="Build Status"></a>
<a href="https://packagist.org/packages/laravel/framework"><img src="https://poser.pugx.org/laravel/framework/d/total.svg" alt="Total Downloads"></a>
<a href="https://packagist.org/packages/laravel/framework"><img src="https://poser.pugx.org/laravel/framework/v/stable.svg" alt="Latest Stable Version"></a>
<a href="https://packagist.org/packages/laravel/framework"><img src="https://poser.pugx.org/laravel/framework/license.svg" alt="License"></a>
</p>

## About Laravel
## About

Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel attempts to take the pain out of development by easing common tasks used in the majority of web projects, such as:
Ini adalah contoh implementasi Payment Gateway Midtrans di Laravel. Contoh kasus yang diambil adalah web donasi online, semua sistem/manajemen donasi yang ada disini dibuat sesederhana mungkin agar kita bisa lebih fokus untuk mepelajari cara kerja Payment Gateway Midtransnya.

- [Simple, fast routing engine](https://laravel.com/docs/routing).
- [Powerful dependency injection container](https://laravel.com/docs/container).
- Multiple back-ends for [session](https://laravel.com/docs/session) and [cache](https://laravel.com/docs/cache) storage.
- Expressive, intuitive [database ORM](https://laravel.com/docs/eloquent).
- Database agnostic [schema migrations](https://laravel.com/docs/migrations).
- [Robust background job processing](https://laravel.com/docs/queues).
- [Real-time event broadcasting](https://laravel.com/docs/broadcasting).
## Snap Midtrans Flow

Laravel is accessible, yet powerful, providing tools needed for large, robust applications.
![Midtrans Payment Flow](docs/payment-flow.png "Payment Flow")

## Learning Laravel

Laravel has the most extensive and thorough [documentation](https://laravel.com/docs) and video tutorial library of any modern web application framework, making it a breeze to get started learning the framework.

If you're not in the mood to read, [Laracasts](https://laracasts.com) contains over 1100 video tutorials on a range of topics including Laravel, modern PHP, unit testing, JavaScript, and more. Boost the skill level of yourself and your entire team by digging into our comprehensive video library.

## Laravel Sponsors

We would like to extend our thanks to the following sponsors for helping fund on-going Laravel development. If you are interested in becoming a sponsor, please visit the Laravel [Patreon page](https://patreon.com/taylorotwell):

- **[Vehikl](https://vehikl.com/)**
- **[Tighten Co.](https://tighten.co)**
- **[Kirschbaum Development Group](https://kirschbaumdevelopment.com)**
- **[Cubet Techno Labs](https://cubettech.com)**
- **[British Software Development](https://www.britishsoftware.co)**
- **[Webdock, Fast VPS Hosting](https://www.webdock.io/en)**
- [UserInsights](https://userinsights.com)
- [Fragrantica](https://www.fragrantica.com)
- [SOFTonSOFA](https://softonsofa.com/)
- [User10](https://user10.com)
- [Soumettre.fr](https://soumettre.fr/)
- [CodeBrisk](https://codebrisk.com)
- [1Forge](https://1forge.com)
- [TECPRESSO](https://tecpresso.co.jp/)
- [Runtime Converter](http://runtimeconverter.com/)
- [WebL'Agence](https://weblagence.com/)
- [Invoice Ninja](https://www.invoiceninja.com)
- [iMi digital](https://www.imi-digital.de/)
- [Earthlink](https://www.earthlink.ro/)
- [Steadfast Collective](https://steadfastcollective.com/)

## Contributing

Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the [Laravel documentation](https://laravel.com/docs/contributions).

## Security Vulnerabilities

If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell via [taylor@laravel.com](mailto:taylor@laravel.com). All security vulnerabilities will be promptly addressed.

## License

The Laravel framework is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).
<ol>
<li>User performs the checkout operation</li>
<li>Merchant server makes an <a href="#backend-integration">api request</a> to the snap backend to get the <code class="prettyprint">SNAP_TOKEN</code></li>
<li>Snap backend responds to the api call with the <code class="prettyprint">SNAP_TOKEN</code></li>
<li>Merchant server constructs the <a href="#summary">html</a> page and sends it back to the browser</li>
<li>User verifies the details and clicks the pay button. Merchant&rsquo;s javascript code calls <a href="#snap-js"><code class="prettyprint">snap.pay(SNAP_TOKEN, options)</code></a>. User then fills up the payment details and clicks the confirm button.</li>
<li>Snap JS sends the payment details to the snap backend</li>
<li>Snap backend processes the details and responds with the charge status. Snap JS then calls the corresponding <a href="#snap-js">callback</a> provided by the merchant&rsquo;s javascript code.</li>
<li>Snap backend notifies the merchant server about the charge status</li>
</ol>

0 comments on commit f97ba1d

Please sign in to comment.