Issue #1258, Invoice creation after paypal

This commit is contained in:
rahul shukla 2019-09-17 16:22:53 +05:30
parent 5f8ea65835
commit b13a82efaf
2 changed files with 6 additions and 6 deletions

View File

@ -105,9 +105,9 @@ class Ipn
*/
protected function processOrder()
{
if ($this->post['payment_status'] == 'completed') {
if ($this->post['payment_status'] == 'Completed') {
if ($this->post['mc_gross'] != $this->order->grand_total) {
} else {
$this->orderRepository->update(['status' => 'processing'], $this->order->id);

View File

@ -8,9 +8,9 @@ Route::group(['middleware' => ['web']], function () {
Route::get('/success', 'Webkul\Paypal\Http\Controllers\StandardController@success')->name('paypal.standard.success');
Route::get('/cancel', 'Webkul\Paypal\Http\Controllers\StandardController@cancel')->name('paypal.standard.cancel');
Route::get('/ipn', 'Webkul\Paypal\Http\Controllers\StandardController@ipn')->name('paypal.standard.ipn');
Route::post('/ipn', 'Webkul\Paypal\Http\Controllers\StandardController@ipn')->name('paypal.standard.ipn');
});
});
Route::get('paypal/standard/ipn', 'Webkul\Paypal\Http\Controllers\StandardController@ipn')->name('paypal.standard.ipn');
Route::post('paypal/standard/ipn', 'Webkul\Paypal\Http\Controllers\StandardController@ipn')->name('paypal.standard.ipn');