Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
khanzadimahdi committed Jun 15, 2020
1 parent 5707a51 commit 2b39318
Show file tree
Hide file tree
Showing 4 changed files with 184 additions and 127 deletions.
20 changes: 10 additions & 10 deletions README-FA.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ $ composer require shetabit/payment

```php
// At the top of the file.
use Shetabit\Payment\Invoice;
use Shetabit\Multipay\Invoice;
...

// Create new invoice.
Expand Down Expand Up @@ -201,7 +201,7 @@ $invoice->detail('detailName1','your detail1 goes here')

```php
// At the top of the file.
use Shetabit\Payment\Invoice;
use Shetabit\Multipay\Invoice;
use Shetabit\Payment\Facade\Payment;
...

Expand Down Expand Up @@ -237,7 +237,7 @@ Payment::callbackUrl('http://yoursite.com/verify')->purchase(

```php
// At the top of the file.
use Shetabit\Payment\Invoice;
use Shetabit\Multipay\Invoice;
use Shetabit\Payment\Facade\Payment;
...

Expand Down Expand Up @@ -280,7 +280,7 @@ return Payment::purchase(
```php
// At the top of the file.
use Shetabit\Payment\Facade\Payment;
use Shetabit\Payment\Exceptions\InvalidPaymentException;
use Shetabit\Multipay\Exceptions\InvalidPaymentException;
...

// You need to verify the payment to ensure the invoice has been paid successfully.
Expand Down Expand Up @@ -335,9 +335,9 @@ try {
```php
namespace App\Packages\PaymentDriver;

use Shetabit\Payment\Abstracts\Driver;
use Shetabit\Payment\Exceptions\InvalidPaymentException;
use Shetabit\Payment\{Contracts\ReceiptInterface, Invoice, Receipt};
use Shetabit\Multipay\Abstracts\Driver;
use Shetabit\Multipay\Exceptions\InvalidPaymentException;
use Shetabit\Multipay\{Contracts\ReceiptInterface, Invoice, Receipt};

class MyDriver extends Driver
{
Expand Down Expand Up @@ -421,7 +421,7 @@ class MyDriver extends Driver

```php
// At the top of the file.
use Shetabit\Payment\Invoice;
use Shetabit\Multipay\Invoice;
use Shetabit\Payment\Facade\Payment;
...

Expand All @@ -445,7 +445,7 @@ class MyDriver extends Driver

```php
// At the top of the file.
use Shetabit\Payment\Invoice;
use Shetabit\Multipay\Invoice;
use Shetabit\Payment\Facade\Payment;
...

Expand All @@ -466,7 +466,7 @@ class MyDriver extends Driver

```php
// At the top of the file.
use Shetabit\Payment\Invoice;
use Shetabit\Multipay\Invoice;
use Shetabit\Payment\Facade\Payment;
...

Expand Down
22 changes: 11 additions & 11 deletions README-ZH.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ b. 然后运行 `php artisan vendor:publish` 来发布 `config/payment.php` 文

```php
// At the top of the file.
use Shetabit\Payment\Invoice;
use Shetabit\Multipay\Invoice;
...

// Create new invoice.
Expand Down Expand Up @@ -192,7 +192,7 @@ $invoice->detail('detailName1','your detail1 goes here')

```php
// At the top of the file.
use Shetabit\Payment\Invoice;
use Shetabit\Multipay\Invoice;
use Shetabit\Payment\Facade\Payment;
...

Expand Down Expand Up @@ -224,7 +224,7 @@ Payment::callbackUrl('http://yoursite.com/verify')->purchase(

```php
// At the top of the file.
use Shetabit\Payment\Invoice;
use Shetabit\Multipay\Invoice;
use Shetabit\Payment\Facade\Payment;
...

Expand Down Expand Up @@ -262,7 +262,7 @@ return Payment::purchase(
```php
// At the top of the file.
use Shetabit\Payment\Facade\Payment;
use Shetabit\Payment\Exceptions\InvalidPaymentException;
use Shetabit\Multipay\Exceptions\InvalidPaymentException;
...

// 您需要验证支付机构的回传数据,以确保付款成功
Expand Down Expand Up @@ -293,7 +293,7 @@ getMessage方法,返回可在用户界面中使用的适当消息。

```php
// At the top of the file.
use Shetabit\Payment\Invoice;
use Shetabit\Multipay\Invoice;
use Shetabit\Payment\Facade\Payment;
...

Expand All @@ -313,7 +313,7 @@ getMessage方法,返回可在用户界面中使用的适当消息。

```php
// At the top of the file.
use Shetabit\Payment\Invoice;
use Shetabit\Multipay\Invoice;
use Shetabit\Payment\Facade\Payment;
...

Expand All @@ -330,7 +330,7 @@ getMessage方法,返回可在用户界面中使用的适当消息。

```php
// At the top of the file.
use Shetabit\Payment\Invoice;
use Shetabit\Multipay\Invoice;
use Shetabit\Payment\Facade\Payment;
...

Expand All @@ -350,7 +350,7 @@ getMessage方法,返回可在用户界面中使用的适当消息。

```php
// At the top of the file.
use Shetabit\Payment\Invoice;
use Shetabit\Multipay\Invoice;
use Shetabit\Payment\Facade\Payment;
...

Expand Down Expand Up @@ -395,9 +395,9 @@ getMessage方法,返回可在用户界面中使用的适当消息。
```php
namespace App\Packages\PaymentDriver;

use Shetabit\Payment\Abstracts\Driver;
use Shetabit\Payment\Exceptions\InvalidPaymentException;
use Shetabit\Payment\{Contracts\ReceiptInterface, Invoice, Receipt};
use Shetabit\Multipay\Abstracts\Driver;
use Shetabit\Multipay\Exceptions\InvalidPaymentException;
use Shetabit\Multipay\{Contracts\ReceiptInterface, Invoice, Receipt};

class MyDriver extends Driver
{
Expand Down
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ In your code, use it like the below:

```php
// At the top of the file.
use Shetabit\Payment\Invoice;
use Shetabit\Multipay\Invoice;
...

// Create new invoice.
Expand Down Expand Up @@ -191,7 +191,7 @@ We purchase the invoice to retrieve transaction id:

```php
// At the top of the file.
use Shetabit\Payment\Invoice;
use Shetabit\Multipay\Invoice;
use Shetabit\Payment\Facade\Payment;
...

Expand Down Expand Up @@ -223,7 +223,7 @@ After purchasing the invoice, we can redirect the user to the bank payment page:

```php
// At the top of the file.
use Shetabit\Payment\Invoice;
use Shetabit\Multipay\Invoice;
use Shetabit\Payment\Facade\Payment;
...

Expand Down Expand Up @@ -261,7 +261,7 @@ When user has completed the payment, the bank redirects them to your website, th
```php
// At the top of the file.
use Shetabit\Payment\Facade\Payment;
use Shetabit\Payment\Exceptions\InvalidPaymentException;
use Shetabit\Multipay\Exceptions\InvalidPaymentException;
...

// You need to verify the payment to ensure the invoice has been paid successfully.
Expand Down Expand Up @@ -290,7 +290,7 @@ try {

```php
// At the top of the file.
use Shetabit\Payment\Invoice;
use Shetabit\Multipay\Invoice;
use Shetabit\Payment\Facade\Payment;
...

Expand All @@ -310,7 +310,7 @@ try {

```php
// At the top of the file.
use Shetabit\Payment\Invoice;
use Shetabit\Multipay\Invoice;
use Shetabit\Payment\Facade\Payment;
...

Expand All @@ -327,7 +327,7 @@ try {

```php
// At the top of the file.
use Shetabit\Payment\Invoice;
use Shetabit\Multipay\Invoice;
use Shetabit\Payment\Facade\Payment;
...

Expand All @@ -347,7 +347,7 @@ try {

```php
// At the top of the file.
use Shetabit\Payment\Invoice;
use Shetabit\Multipay\Invoice;
use Shetabit\Payment\Facade\Payment;
...

Expand Down Expand Up @@ -392,9 +392,9 @@ Eg. You created a class: `App\Packages\PaymentDriver\MyDriver`.
```php
namespace App\Packages\PaymentDriver;

use Shetabit\Payment\Abstracts\Driver;
use Shetabit\Payment\Exceptions\InvalidPaymentException;
use Shetabit\Payment\{Contracts\ReceiptInterface, Invoice, Receipt};
use Shetabit\Multipay\Abstracts\Driver;
use Shetabit\Multipay\Exceptions\InvalidPaymentException;
use Shetabit\Multipay\{Contracts\ReceiptInterface, Invoice, Receipt};

class MyDriver extends Driver
{
Expand Down
Loading

0 comments on commit 2b39318

Please sign in to comment.