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

extraData is actually a string

parent 78174982
Branches
Tags
No related merge requests found
......@@ -642,7 +642,7 @@ class CRM_Core_Payment_Stripe extends CRM_Core_Payment {
$stripePaymentIntent = new CRM_Stripe_PaymentIntent($this);
$stripePaymentIntent->setDescription($this->getDescription($params));
$stripePaymentIntent->setReferrer($_SERVER['HTTP_REFERER'] ?? '');
$stripePaymentIntent->setExtraData($params['extra_data'] ?? []);
$stripePaymentIntent->setExtraData($params['extra_data'] ?? '');
$paymentIntentParams = [
'paymentMethodID' => $paymentMethodID,
......
......@@ -35,7 +35,7 @@ class CRM_Stripe_PaymentIntent {
/**
* @var array
*/
protected $extraData = [];
protected $extraData = '';
/**
* @param \CRM_Core_Payment_Stripe $paymentProcessor
......
......@@ -204,7 +204,7 @@ function civicrm_api3_stripe_paymentintent_process($params) {
$stripePaymentIntent = new CRM_Stripe_PaymentIntent($paymentProcessor);
$stripePaymentIntent->setDescription($description);
$stripePaymentIntent->setReferrer($_SERVER['HTTP_REFERER'] ?? '');
$stripePaymentIntent->setExtraData($params['extra_data'] ?? []);
$stripePaymentIntent->setExtraData($params['extra_data'] ?? '');
if ($setup) {
$params = [
// Optional paymentMethodID
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment