Skip to content

Commit

Permalink
fix hard-coded processor id! thanks @cmmadmin
Browse files Browse the repository at this point in the history
  • Loading branch information
adixon committed Sep 23, 2020
1 parent 94e286c commit e2ffb68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CRM/Iats/Form/IATSOneTimeCharge.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ protected function processCreditCardCustomer($values) {
throw new Exception($error);
}
try {
$paymentProcessor = civicrm_api3('PaymentProcessor', 'getsingle', array('id' => 3));
$paymentProcessor = civicrm_api3('PaymentProcessor', 'getsingle', array('id' => $payment_processor_id));
}
catch (Exception $e) {
$error = E::ts('Unexpected error getting payment processor information for recurring schedule id %1', array(1 => $contribution_recur_id));
Expand Down

0 comments on commit e2ffb68

Please sign in to comment.