Fix stripe warning
This commit is contained in:
parent
18708dfdee
commit
116cf440de
@ -466,11 +466,13 @@ class Stripe extends CommonObject
|
||||
"payment_method_types" => $paymentmethodtypes,
|
||||
"description" => $description,
|
||||
"statement_descriptor_suffix" => $descriptor, // For card payment, 22 chars that appears on bank receipt (prefix into stripe setup + this suffix)
|
||||
"statement_descriptor" => $descriptor, // For SEPA, it will take only statement_descriptor, not statement_descriptor_suffix
|
||||
//"save_payment_method" => true,
|
||||
"setup_future_usage" => "on_session",
|
||||
"metadata" => $metadata
|
||||
);
|
||||
if ($descriptor) {
|
||||
$dataforintent["statement_descriptor"] = $descriptor; // For SEPA, it will take only statement_descriptor, not statement_descriptor_suffix
|
||||
}
|
||||
if (!is_null($customer)) {
|
||||
$dataforintent["customer"] = $customer;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user