Skip to content

Commit

Permalink
Merge pull request #17 from hans-thomas/fixing-config
Browse files Browse the repository at this point in the history
- Zarinapl removed from the config file
- New banner replaced
  • Loading branch information
hans-thomas authored Sep 24, 2023
2 parents 564f8af + d626207 commit 4a67239
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 32 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Lyra

<p align="center"><img alt="lyra banner" src="assets/starter-banner.png"></p>
<p align="center"><img alt="lyra banner" src="assets/lyra-banner.png"></p>

[![codecov](https://codecov.io/gh/hans-thomas/lyra/branch/master/graph/badge.svg?token=X1D6I0JLSZ)](https://codecov.io/gh/hans-thomas/lyra)
![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/hans-thomas/lyra/php.yml)
Expand Down
Binary file added assets/lyra-banner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed assets/starter-banner.png
Binary file not shown.
31 changes: 0 additions & 31 deletions config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,41 +2,10 @@

use Hans\Lyra\Gateways\IDPay;
use Hans\Lyra\Gateways\Payir;
use Hans\Lyra\Gateways\Zarinpal;

return [
'gateways' => [
'default' => Payir::class,
Zarinpal::class => [
'mode' => 'normal',

'merchant_id' => '',
'callback_url' => 'https://www.yoursite.com/verify.php',
'description' => '',
'metadata' => [
'email' => 'info@email.com',
'mobile' => '09121234567',
],

'modes' => [
'normal' => [
'purchase' => 'https://api.zarinpal.com/pg/v4/payment/request.json',
'payment' => 'https://www.zarinpal.com/pg/StartPay/:authority',
'verification' => 'https://api.zarinpal.com/pg/v4/payment/verify.json',
],
'sandbox' => [
'purchase' => 'https://sandbox.zarinpal.com/pg/v4/payment/request.json',
'payment' => 'https://sandbox.zarinpal.com/pg/StartPay/:authority',
'verification' => 'https://sandbox.zarinpal.com/pg/v4/payment/verify.json',
],
'zaringate' => [
'purchase' => 'https://api.zarinpal.com/pg/v4/payment/request.json',
'payment' => 'https://www.zarinpal.com/pg/StartPay/:authority/ZarinGate',
'verification' => 'https://api.zarinpal.com/pg/v4/payment/verify.json',
],
],

],
Payir::class => [
'mode' => 'normal',

Expand Down

0 comments on commit 4a67239

Please sign in to comment.