Skip to content

Add an option to control setup_future_usage Stripe setting #929

Closed Answered by david-lobo
david-lobo asked this question in Help
Discussion options

You must be logged in to vote

Hi Duncan, Thanks verry much for the quick response. Yes that suggestion works well and i've now managed to remove the text. In case it helps anyone else, the setting needs to be 'null' in order for the text to be removed.

// config/simple-commerce.php

\DoubleThreeDigital\SimpleCommerce\Gateways\Builtin\StripeGateway::class => [
    'key' => env('STRIPE_KEY'),
    'secret' => env('STRIPE_SECRET'),
    'payment_intent_data' => function (ContractsOrder $order) {
        return [
            'setup_future_usage' => null,
        ];
    },
],

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@david-lobo
Comment options

Answer selected by david-lobo
@duncanmcclean
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
2 participants