I’ve Paypal sandbox account to test transaction.
I have passed all the required params as follows-
$paypalConfig = [ 'email' => '[email protected]', 'return_url' => $site_url.'/dashboard/payments/paypal/payment-successful.php', 'cancel_url' => $site_url.'/dashboard/payments/paypal/payment-cancelled.html', 'notify_url' => $site_url.'/dashboard/payments/paypal/payments.php' ];
It did return transaction id initially for a couple of times but, stopped later on.
I have also enabled IPN on paypal, but it didn’t work either.