@@ -2,9 +2,8 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Goodoneuz\PayUz\Http\Classes\Click; |
| 4 | 4 | |
| 5 | -use Goodoneuz\PayUz\Models\PaymentSystem; |
|
| 6 | -use Goodoneuz\PayUz\Services\PaymentService; |
|
| 7 | 5 | use Goodoneuz\PayUz\Http\Classes\PaymentException; |
| 6 | +use Goodoneuz\PayUz\Models\PaymentSystem; |
|
| 8 | 7 | use Goodoneuz\PayUz\Services\PaymentSystemService; |
| 9 | 8 | |
| 10 | 9 | class Response{ |
@@ -6,9 +6,9 @@ |
||
| 6 | 6 | use App\Transaction; |
| 7 | 7 | use Goodoneuz\PayUz\Classes\DataFormat; |
| 8 | 8 | use Goodoneuz\PayUz\Classes\Oson\Merchant; |
| 9 | +use Goodoneuz\PayUz\Classes\Oson\OsonException; |
|
| 9 | 10 | use Goodoneuz\PayUz\Classes\Paycom\Request; |
| 10 | 11 | use Goodoneuz\PayUz\Http\Classes\BaseGateway; |
| 11 | -use Goodoneuz\PayUz\Classes\Oson\OsonException; |
|
| 12 | 12 | |
| 13 | 13 | class Oson extends BaseGateway |
| 14 | 14 | { |
@@ -69,6 +69,10 @@ |
||
| 69 | 69 | header("Location: ". $this->request->url); |
| 70 | 70 | echo "<script>window.location.href='".$this->request->url."';</script>"; |
| 71 | 71 | } |
| 72 | + |
|
| 73 | + /** |
|
| 74 | + * @param integer $currency |
|
| 75 | + */ |
|
| 72 | 76 | public function getRedirectParams($model, $amount, $currency, $url){ |
| 73 | 77 | return [ |
| 74 | 78 | 'config' => $this->config, |
@@ -1,17 +1,14 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | namespace Goodoneuz\PayUz\Http\Classes\Stripe; |
| 3 | 3 | |
| 4 | -use Session; |
|
| 5 | -use Stripe as StripeGateway; |
|
| 6 | -use Illuminate\Http\Request; |
|
| 7 | -use Goodoneuz\PayUz\Models\Transaction; |
|
| 8 | -use Goodoneuz\PayUz\Models\PaymentSystem; |
|
| 4 | +use Goodoneuz\PayUz\Http\Classes\BaseGateway; |
|
| 9 | 5 | use Goodoneuz\PayUz\Http\Classes\DataFormat; |
| 6 | +use Goodoneuz\PayUz\Models\PaymentSystem; |
|
| 7 | +use Goodoneuz\PayUz\Models\Transaction; |
|
| 10 | 8 | use Goodoneuz\PayUz\Services\PaymentService; |
| 11 | -use Goodoneuz\PayUz\Http\Classes\BaseGateway; |
|
| 12 | -use Goodoneuz\PayUz\Models\PaymentSystemParam; |
|
| 13 | 9 | use Goodoneuz\PayUz\Services\PaymentSystemService; |
| 14 | -use Goodoneuz\PayUz\Http\Classes\PaymentException; |
|
| 10 | +use Session; |
|
| 11 | +use Stripe as StripeGateway; |
|
| 15 | 12 | |
| 16 | 13 | class Stripe extends BaseGateway |
| 17 | 14 | { |
@@ -4,11 +4,10 @@ |
||
| 4 | 4 | |
| 5 | 5 | use App\Order; |
| 6 | 6 | use App\Transaction; |
| 7 | +use Goodoneuz\PayUz\Http\Classes\BaseGateway; |
|
| 7 | 8 | use Goodoneuz\PayUz\Http\Classes\Paycom\Format; |
| 8 | -use Goodoneuz\PayUz\Http\Classes\Paycom\Request; |
|
| 9 | 9 | use Goodoneuz\PayUz\Http\Classes\Uzcard\Merchant; |
| 10 | 10 | use Goodoneuz\PayUz\Http\Classes\Uzcard\WoywoException; |
| 11 | -use Goodoneuz\PayUz\Http\Classes\BaseGateway; |
|
| 12 | 11 | |
| 13 | 12 | |
| 14 | 13 | class WoywoController extends BaseGateway |
@@ -2,9 +2,9 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Goodoneuz\PayUz\Http\Controllers; |
| 4 | 4 | |
| 5 | -use Illuminate\Http\Request; |
|
| 6 | -use Goodoneuz\PayUz\Models\Project; |
|
| 7 | 5 | use App\Http\Controllers\Controller; |
| 6 | +use Goodoneuz\PayUz\Models\Project; |
|
| 7 | +use Illuminate\Http\Request; |
|
| 8 | 8 | |
| 9 | 9 | class ProjectController extends Controller |
| 10 | 10 | { |
@@ -8,9 +8,9 @@ |
||
| 8 | 8 | |
| 9 | 9 | namespace Goodoneuz\PayUz\Http\Controllers; |
| 10 | 10 | |
| 11 | -use Illuminate\Http\Request; |
|
| 12 | 11 | use App\Http\Controllers\Controller; |
| 13 | 12 | use Goodoneuz\PayUz\Models\Transaction; |
| 13 | +use Illuminate\Http\Request; |
|
| 14 | 14 | |
| 15 | 15 | class TransactionController extends Controller |
| 16 | 16 | { |