File tree Expand file tree Collapse file tree 4 files changed +34
-22
lines changed
Expand file tree Collapse file tree 4 files changed +34
-22
lines changed Original file line number Diff line number Diff line change 3939 <input type =" hidden" name =" no_note" value =" 1" />
4040 <input type =" hidden" name =" no_shipping" value =" 1" />
4141 <input type =" hidden" name =" charset" value =" utf-8" />
42- <input type =" hidden" name =" return" value =" {{ route (' portal.invoices. paypal-standard.return' , $invoice -> id ) } }" />
43- <input type =" hidden" name =" notify_url" value =" {{ route (' portal.invoices. paypal-standard.complete' , $invoice -> id ) } }" />
42+ <input type =" hidden" name =" return" value =" {{ route (' portal.paypal-standard.invoices .return' , $invoice -> id ) } }" />
43+ <input type =" hidden" name =" notify_url" value =" {{ route (' portal.paypal-standard.invoices .complete' , $invoice -> id ) } }" />
4444 <input type =" hidden" name =" cancel_return" value =" {{ $invoice_url } }" />
4545 <input type =" hidden" name =" paymentaction" value =" {{ $setting [' transaction' ] } }" />
4646 <input type =" hidden" name =" custom" value =" {{ $invoice -> id } }" />
Original file line number Diff line number Diff line change 11<?php
22
3- Route::group ([
4- 'prefix ' => '{company_id}/portal ' ,
5- 'middleware ' => 'guest ' ,
6- 'namespace ' => 'Modules\PaypalStandard\Http\Controllers '
7- ], function () {
8- Route::post ('invoices/{invoice}/paypal-standard/return ' , 'Payment@return ' )->name ('portal.invoices.paypal-standard.return ' );
9- Route::post ('invoices/{invoice}/paypal-standard/complete ' , 'Payment@complete ' )->name ('portal.invoices.paypal-standard.complete ' );
10- });
3+ use Illuminate \Support \Facades \Route ;
4+
5+ /**
6+ * 'guest' middleware and 'portal/paypal-standard' prefix applied to all routes (including names)
7+ *
8+ * @see \App\Providers\Route::register
9+ */
10+
11+ Route::portal ('paypal-standard ' , function () {
12+ Route::get ('invoices/{invoice}/complete ' , 'Payment@return ' )->name ('invoices.return ' );
13+ Route::post ('invoices/{invoice}/complete ' , 'Payment@complete ' )->name ('invoices.complete ' );
14+ }, ['middleware ' => 'guest ' ]);
Original file line number Diff line number Diff line change 11<?php
22
3- Route::group ([
4- 'prefix ' => '{company_id}/portal ' ,
5- 'middleware ' => 'portal ' ,
6- 'namespace ' => 'Modules\PaypalStandard\Http\Controllers '
7- ], function () {
8- Route::get ('invoices/{invoice}/paypal-standard ' , 'Payment@show ' )->name ('portal.invoices.paypal-standard.show ' );
3+ use Illuminate \Support \Facades \Route ;
4+
5+ /**
6+ * 'portal' middleware and 'portal/paypal-standard' prefix applied to all routes (including names)
7+ *
8+ * @see \App\Providers\Route::register
9+ */
10+
11+ Route::portal ('paypal-standard ' , function () {
12+ Route::get ('invoices/{invoice} ' , 'Payment@show ' )->name ('invoices.show ' );
913});
Original file line number Diff line number Diff line change 11<?php
22
3- Route::group ([
4- 'prefix ' => '{company_id}/signed ' ,
5- 'middleware ' => 'signed ' ,
6- 'namespace ' => 'Modules\PaypalStandard\Http\Controllers '
7- ], function () {
8- Route::get ('invoices/{invoice}/paypal-standard ' , 'Payment@show ' )->name ('signed.invoices.paypal-standard.show ' );
3+ use Illuminate \Support \Facades \Route ;
4+
5+ /**
6+ * 'signed' middleware and 'signed/paypal-standard' prefix applied to all routes (including names)
7+ *
8+ * @see \App\Providers\Route::register
9+ */
10+
11+ Route::signed ('paypal-standard ' , function () {
12+ Route::get ('invoices/{invoice} ' , 'Payment@show ' )->name ('invoices.show ' );
913});
You can’t perform that action at this time.
0 commit comments