Hi !
Many thanks for your answer !
Unfortunately I still have a problem.
Indeed I have randomly an error message on the checkout page when I submit the form (the problem never happen if the user/customer has already a MangoPay Account/Wallet). I have the following error :
Payment error:Could not create the MANGOPAY payment URL
Could not create the MANGOPAY payment URL
So it come from gateway.inc.php and especially from this part :
$redirect_url = mpAccess::getInstance()->card_payin_url( $order_id, $wp_user_id,($order->order_total * 100),$order->order_currency,0,$return_url,$locale,$mp_card_type);
I have this error in my console :
<div class="error"><p>Error: MANGOPAY API returned: ?Cannot put token to file?</p></div>
and this error in my Error Log :
PHP Warning: error_log(/nas/content/live/chnew/wp-content/uploads/mp_tmp/sandbox/mp-transactions.log.php): failed to open stream: Permission denied in /nas/content/live/website/wp-content/plugins/mangopay-woocommerce/inc/mangopay.inc.php on line 679, referer: https://website.com/checkout
I have seen this post : https://github.com/MangoPay/mangopay2-php-sdk/issues/45
So it seems to be a permission problem. My file has the 664 permission and I can’t change it due to my server provider (WPEngine).
What’s weird is that I have not this error everytime, it’s totally random so I don’t know if the problem comes from your plugin or if it comes from my server provider.
If you have any idea, I’m more than interested !
Thanks !
All the error in my Error Log :
[Thu Aug 18 13:38:13.332046 2016] [:error] [pid 31102] [client 212.238.212.216:47012] PHP Warning: in_array() expects parameter 2 to be array, string given in /nas/content/live/website/wp-content/plugins/mangopay-woocommerce/inc/mangopay.inc.php on line 269, referer: https://website.com/checkout/
[Thu Aug 18 13:38:13.475538 2016] [:error] [pid 31102] [client 212.238.212.216:47012] PHP Warning: _wpe_old_file_put_contents(/nas/content/live/website/wp-content/uploads/mp_tmp/sandbox//MangoPaySdkStorage.tmp.php): failed to open stream: Permission denied in /opt/nas/www/common/production/php_prevent_flock.php on line 58, referer: https://website.com/checkout/
[Thu Aug 18 13:38:13.476411 2016] [:error] [pid 31102] [client 212.238.212.216:47012] PHP Warning: error_log(/nas/content/live/website/wp-content/uploads/mp_tmp/sandbox/mp-transactions.log.php): failed to open stream: Permission denied in /nas/content/live/website/wp-content/plugins/mangopay-woocommerce/inc/mangopay.inc.php on line 679, referer: https://website.com/checkout/
[Thu Aug 18 13:38:13.477576 2016] [:error] [pid 31102] [client 212.238.212.216:47012] PHP Warning: in_array() expects parameter 2 to be array, string given in /nas/content/live/website/wp-content/plugins/mangopay-woocommerce/inc/mangopay.inc.php on line 269, referer: https://website.com/checkout/
[Thu Aug 18 13:38:13.699633 2016] [:error] [pid 31102] [client 212.238.212.216:47012] PHP Warning: _wpe_old_file_put_contents(/nas/content/live/website/wp-content/uploads/mp_tmp/sandbox//MangoPaySdkStorage.tmp.php): failed to open stream: Permission denied in /opt/nas/www/common/production/php_prevent_flock.php on line 58, referer: https://website.com/checkout/
[Thu Aug 18 13:38:13.700203 2016] [:error] [pid 31102] [client 212.238.212.216:47012] PHP Warning: error_log(/nas/content/live/website/wp-content/uploads/mp_tmp/sandbox/mp-transactions.log.php): failed to open stream: Permission denied in /nas/content/live/website/wp-content/plugins/mangopay-woocommerce/inc/mangopay.inc.php on line 679, referer: https://website.com/checkout/
[Thu Aug 18 13:38:13.802027 2016] [:error] [pid 31102] [client 212.238.212.216:47012] PHP Warning: in_array() expects parameter 2 to be array, string given in /nas/content/live/website/wp-content/plugins/mangopay-woocommerce/inc/mangopay.inc.php on line 269, referer: https://website.com/checkout/
[Thu Aug 18 13:38:13.936870 2016] [:error] [pid 31102] [client 212.238.212.216:47012] PHP Warning: _wpe_old_file_put_contents(/nas/content/live/website/wp-content/uploads/mp_tmp/sandbox//MangoPaySdkStorage.tmp.php): failed to open stream: Permission denied in /opt/nas/www/common/production/php_prevent_flock.php on line 58, referer: https://website.com/checkout/
[Thu Aug 18 13:38:13.937240 2016] [:error] [pid 31102] [client 212.238.212.216:47012] PHP Warning: error_log(/nas/content/live/website/wp-content/uploads/mp_tmp/sandbox/mp-transactions.log.php): failed to open stream: Permission denied in /nas/content/live/website/wp-content/plugins/mangopay-woocommerce/inc/mangopay.inc.php on line 679, referer: https://website.com/checkout/
[Thu Aug 18 13:38:13.937547 2016] [:error] [pid 31102] [client 212.238.212.216:47012] PHP Warning: Invalid argument supplied for foreach() in /nas/content/live/website/wp-content/plugins/mangopay-woocommerce/inc/mangopay.inc.php on line 972, referer: https://website.com/checkout/