-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Everything is now in API section in config
Removed unused route
- Loading branch information
axotion
committed
Nov 22, 2017
1 parent
e4f14b9
commit a73addf
Showing
3 changed files
with
4 additions
and
14 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,7 +43,6 @@ Dodaj rezpozytorium do composer.json | |
**Note! This and next step are optional if you use laravel>=5.5 with package | ||
auto discovery feature.** | ||
|
||
Add service provider to `config/app.php` in `providers` section | ||
```php | ||
Liteweb\LaravelDotpay\ServiceProvider::class, | ||
``` | ||
|
@@ -74,6 +73,7 @@ DOTPAY_PIN= | |
DOTPAY_BASE_URL= | ||
DOTPAY_URL= | ||
DOTPAY_CURL= | ||
DOTPAY_EXPIRATION_DATETIME= | ||
``` | ||
|
||
|
@@ -95,19 +95,13 @@ public function pay(Request $request) | |
'description' => 'Payment for internal_id order', | ||
'control' => $transaction->id, //ID that dotpay will pong you in the answer | ||
'language' => 'pl', | ||
'ch_lock' => '1', | ||
'url' => '', | ||
'urlc' => '', | ||
'expiration_datetime' => '2017-12-01T16:48:00', | ||
'payer' => [ | ||
'first_name' => 'John', | ||
'last_name' => 'Smith', | ||
'email' => '[email protected]', | ||
'phone' => '+48123123123' | ||
], | ||
'recipient' => '' | ||
|
||
]; | ||
]; | ||
|
||
$response = $this->dotpayApi->createPayment(new Payment($data)); | ||
return $response->getPaymentUrl(); | ||
|
@@ -124,8 +118,6 @@ Dane do wysłania | |
"description" : "Payment for internal_id order", | ||
"control" : "12345", | ||
"language" : "pl", | ||
"ch_lock" : "0", | ||
"expiration_datetime" : "2017-12-01T16:48:00", | ||
"payer" : { | ||
"first_name" : "John", | ||
"last_name" : "Smith", | ||
|
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 |
---|---|---|
@@ -1,5 +1,4 @@ | ||
<?php | ||
|
||
Route::post('dotpay/pay', 'Liteweb\LaravelDotpay\Controllers\DotpayController@pay'); | ||
Route::post('/dotpay/callback', 'Liteweb\LaravelDotpay\Controllers\DotpayController@callback'); | ||
|