Commit 3a37f696 by Julien Jorry

HelloAsso : fix error in synchro 3

parent c72fed9f
......@@ -131,6 +131,13 @@ class HelloAssoController extends CRUDController
// type : "Donation", "Payment", "Registration", "Membership", "MonthlyDonation", "MonthlyPayment", "OfflineDonation", "Contribution", "Bonus"
$itemType = $item['type'];
$itemState = $item['state'];
$payments = isset($item['payments']) ? $item['payments'] : null;
// statePayment : "Pending", "Authorized", "Refused", "Unknown", "Registered", "Error", "Refunded", "Refunding", "Waiting", "Canceled", "Contested", "WaitingBankValidation", "WaitingBankWithdraw"
$statePayment = 'NONE';
$paymentReceiptUrl = '';
if (null != $payments) {
$statePayment = isset($payments[0]['state']) ? $payments[0]['state'] : 'NONE';
}
$helloasso->setType($itemType);
$userFirstname = '';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment