From 3eed328eb432d50a881a029da016606c8a114806 Mon Sep 17 00:00:00 2001 From: Bastien Ho Date: Wed, 28 Jun 2023 11:44:32 +0200 Subject: [PATCH] Get name from entity instead of form data Project60/org.project60.sepapp#19 --- sepapp.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sepapp.php b/sepapp.php index 2be5381..26a7fcf 100644 --- a/sepapp.php +++ b/sepapp.php @@ -249,7 +249,7 @@ function sepapp_civicrm_postProcess($formName, &$form) $paymentProcessor = civicrm_api3( 'PaymentProcessor', 'getsingle', - array('name' => $form->_submitValues['name'], 'is_test' => 0) + array('name' => $pp['name'], 'is_test' => 0) ); $creditor_id = $form->_submitValues['user_name'];