Skip to content
Snippets Groups Projects
Commit cfce34d9 authored by mattwire's avatar mattwire
Browse files

Change doRefund signature to match what is in CiviCRM core

parent d1aab466
No related branches found
No related tags found
No related merge requests found
...@@ -702,7 +702,7 @@ class CRM_Core_Payment_Stripe extends CRM_Core_Payment { ...@@ -702,7 +702,7 @@ class CRM_Core_Payment_Stripe extends CRM_Core_Payment {
* @return array * @return array
* @throws \Civi\Payment\Exception\PaymentProcessorException * @throws \Civi\Payment\Exception\PaymentProcessorException
*/ */
public function doRefund($params) { public function doRefund(&$params) {
$requiredParams = ['trxn_id', 'amount']; $requiredParams = ['trxn_id', 'amount'];
foreach ($requiredParams as $required) { foreach ($requiredParams as $required) {
if (!isset($params[$required])) { if (!isset($params[$required])) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment