When i have a check-out, i can see in my dashboard of mangopay that finally ==> i have one pay-in is done, then 2 transfer requests are done ==> Why 2 transfert requests ?
And finally i have an error because i don’t have enough money on the wallet of the customer for the second transfer
“MANGOPAY API returned:
MangoPay\Exception Message: Bad request. One or several required parameters are missing or incorrect. An incorrect resource ID also raises this kind of error.
——————————-”
Hi @Adrien,
This `MangoPay\Exception Message: Bad request. One or several required parameters are missing or incorrect. An incorrect resource ID’s errors only come when you have entered any wrong information. Here is the link https://github.com/MangoPay/mangopay2-php-sdk/issues/46.So can you please your details again.
And for your multiple Transfer request issues: We just send order details to MANGOPAY. After that, this response came from MANGOPAY.So can you please ask MANGOPAY why this is coming for 2 times. Then let us know. Then we will help you out.
I asked already, and they said it’s because i’m doing 2 requests
This is what is happening :
1 – The customer pay ==> Pay-in Mangopay ==> The money of the customer go to his wallet ==> OK
2 – Request to transfer the money from the wallet of the customer to the waller of the website ==> OK
3 – Second request to transfer the money. But the money has already been transfered ==> The wallet of the customer is empty ==> MangoPay\Exception Message: Bad request
The root cause doesn’t come from Mangopay ==> The root cause is the second request coming from the plugin