diff --git a/htdocs/includes/triggers/interface_modPaypal_PaypalWorkflow.class.php b/htdocs/includes/triggers/interface_modPaypal_PaypalWorkflow.class.php index ac69330b90f..14a7f1dbd63 100644 --- a/htdocs/includes/triggers/interface_modPaypal_PaypalWorkflow.class.php +++ b/htdocs/includes/triggers/interface_modPaypal_PaypalWorkflow.class.php @@ -121,6 +121,10 @@ class InterfacePaypalWorkflow $ret = $obj->fetch('',$object->ref); if ($ret < 0) return -1; + // Add payer id + $soc->updateObjectField('societe', $obj->socid, 'ref_int', $object->payerID); + + // Add transaction id $obj->updateObjectField($obj->table_element,$obj->id,'ref_int',$object->resArray["TRANSACTIONID"]); }