Skip to content

Commit

Permalink
Update config.php
Browse files Browse the repository at this point in the history
  • Loading branch information
hans-thomas committed Aug 22, 2023
1 parent fd555a8 commit 0202b38
Showing 1 changed file with 34 additions and 3 deletions.
37 changes: 34 additions & 3 deletions config/config.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,36 @@
<?php

return [
//
];
use Hans\Lyra\Gateways\Zarinpal;

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

'merchant_id' => '',
'callback_url' => '',
"email" => '',
"mobile" => '',

'modes' => [
'api' => [
'apiPurchaseUrl' => 'https://api.zarinpal.com/pg/v4/payment/request.json',
'apiPaymentUrl' => 'https://www.zarinpal.com/pg/StartPay/',
'apiVerificationUrl' => 'https://api.zarinpal.com/pg/v4/payment/verify.json',
],
'sandbox' => [
'apiPurchaseUrl' => 'https://sandbox.zarinpal.com/pg/services/WebGate/wsdl',
'apiPaymentUrl' => 'https://sandbox.zarinpal.com/pg/StartPay/',
'apiVerificationUrl' => 'https://sandbox.zarinpal.com/pg/services/WebGate/wsdl',
],
'zaringate' => [
'apiPurchaseUrl' => 'https://ir.zarinpal.com/pg/services/WebGate/wsdl',
'apiPaymentUrl' => 'https://www.zarinpal.com/pg/StartPay/:authority/ZarinGate',
'apiVerificationUrl' => 'https://ir.zarinpal.com/pg/services/WebGate/wsdl',
]
],

]
]
];

0 comments on commit 0202b38

Please sign in to comment.