-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23 from dena-a/development
Development
- Loading branch information
Showing
13 changed files
with
193 additions
and
84 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
@extends('iranpayment::layouts.master') | ||
|
||
@php | ||
if ($status === \Dena\IranPayment\Models\IranPaymentTransaction::T_SUCCEED) { | ||
$title = 'پرداخت با موفقیت انجام شد'; | ||
} else { | ||
$title = 'پرداخت با خطا مواجه شد'; | ||
} | ||
@endphp | ||
|
||
@section('title', $title) | ||
|
||
@section('content') | ||
<div class="container"> | ||
<div class="content"> | ||
<h1>{{ $title }}</h1> | ||
|
||
<h2>شناسه خرید شما</h2> | ||
<h2 class="content-head">{{ $transaction_code }}</h2> | ||
@if (isset($image)) | ||
<div class="l-box-lrg is-center pure-u-1 pure-u-md-1-2 pure-u-lg-2-5"> | ||
<img class="pure-img-responsive" src="{{ $image }}"> | ||
</div> | ||
@endif | ||
|
||
<a class="pure-button pure-button-default" href="{{ $button_url }}">{{ $button_text }}</a> | ||
</div> | ||
</div> | ||
@endsection |
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
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
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,17 @@ | ||
<?php | ||
|
||
namespace Dena\IranPayment\Gateways\Test; | ||
|
||
use Dena\IranPayment\Exceptions\GatewayException; | ||
|
||
class TestException extends GatewayException | ||
{ | ||
public static array $errors = [ | ||
-100 => 'تراکنش ناموفق میباشد', | ||
]; | ||
|
||
public static function error($error_code) | ||
{ | ||
return new self(self::$errors[$error_code] ?? self::$errors[-100], $error_code); | ||
} | ||
} |
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
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.