Keep save_payment_method to true.

Keep it to true because i see no reason to not save the credit card on Stripe side.
This commit is contained in:
Laurent Destailleur 2019-07-19 03:18:53 +02:00 committed by GitHub
parent 4235f0b352
commit 8857d0acf5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -392,6 +392,7 @@ class Stripe extends CommonObject
"payment_method_types" => array("card"), "payment_method_types" => array("card"),
"description" => $description, "description" => $description,
"statement_descriptor" => dol_trunc($tag, 10, 'right', 'UTF-8', 1), // 22 chars that appears on bank receipt (company + description) "statement_descriptor" => dol_trunc($tag, 10, 'right', 'UTF-8', 1), // 22 chars that appears on bank receipt (company + description)
"save_payment_method" => true,
"setup_future_usage" => "on_session", "setup_future_usage" => "on_session",
"metadata" => $metadata "metadata" => $metadata
); );