Skip to content
Snippets Groups Projects
Commit 6ddc0550 authored by mattwire's avatar mattwire Committed by mattwire
Browse files

Fix PHP notices

parent 26b943dc
No related branches found
No related tags found
1 merge request!1526.6 to master
...@@ -142,9 +142,9 @@ function civicrm_api3_stripe_paymentintent_process($params) { ...@@ -142,9 +142,9 @@ function civicrm_api3_stripe_paymentintent_process($params) {
_civicrm_api3_stripe_paymentintent_returnInvalid(); _civicrm_api3_stripe_paymentintent_returnInvalid();
} }
} }
$paymentMethodID = CRM_Utils_Type::validate($params['payment_method_id'], 'String'); $paymentMethodID = CRM_Utils_Type::validate($params['payment_method_id'] ?? '', 'String');
$paymentIntentID = CRM_Utils_Type::validate($params['payment_intent_id'], 'String'); $paymentIntentID = CRM_Utils_Type::validate($params['payment_intent_id'] ?? '', 'String');
$capture = CRM_Utils_Type::validate($params['capture'], 'Boolean', FALSE); $capture = CRM_Utils_Type::validate($params['capture'] ?? NULL, 'Boolean', FALSE);
$amount = CRM_Utils_Type::validate($params['amount'], 'String'); $amount = CRM_Utils_Type::validate($params['amount'], 'String');
// $capture is normally true if we have already created the intent and just need to get extra // $capture is normally true if we have already created the intent and just need to get extra
// authentication from the user (eg. on the confirmation page). So we don't need the amount // authentication from the user (eg. on the confirmation page). So we don't need the amount
......
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