Closed sohaieb closed 3 years ago
Looking at your dump, it look like you have an issue with your setMoney function. Instead of setting the amount, you created a new Money object for the amount, containing amount + currency.
Your dump look like this:
+DebitedFunds: MangoPay\Money^ {#196
+Currency: "EUR"
+Amount: MangoPay\Money^ {#249
+Currency: "EUR"
+Amount: 1450
And it should look like this:
+DebitedFunds: MangoPay\Money^ {#196
+Currency: "EUR"
+Amount: 1450
Looking at your dump, it look like you have an issue with your setMoney function. Instead of setting the amount, you created a new Money object for the amount, containing amount + currency.
Your dump look like this:
+DebitedFunds: MangoPay\Money^ {#196 +Currency: "EUR" +Amount: MangoPay\Money^ {#249 +Currency: "EUR" +Amount: 1450
And it should look like this:
+DebitedFunds: MangoPay\Money^ {#196 +Currency: "EUR" +Amount: 1450
Hello Sir, I will test it with our parameters, and i will give you a feedback concerning to this issue as soon as possible.
Feel free to reopen if needed
@mangomaxoasis i confirm the solution of @H4wKs , the amount was not defined correctly. thank you a lot.
Hello,
When i wanted to perform a PayOut operation i got this error:
here is my PayOut object informations:
here is my code in Laravel (PHP):