#genericunitedfan_api

1 messages ¡ Page 1 of 1 (latest)

shut orchidBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1250344609444532236

📝 Have more to share? Add details, code, screenshots, videos, etc. below.

crimson patrol
#
    {
        return $this->stripe->setupIntents->create(
            [
                'customer' => $customer->id,
                // In the latest version of the API, specifying the `automatic_payment_methods` parameter is optional because Stripe enables its functionality by default.
                'automatic_payment_methods' => ['enabled' => true],
                'payment_method_options' => [
                    'card' => [
                        'moto' => (bool) auth()->user()->is_admin
                    ]
                ],
                'usage' => 'off_session',
                'metadata' => [
                    'booking_id' => !empty($booking) ? $booking->id : null,
                    'initiated_url' => $request->get('url')
                ]
            ]
        );
    }```
#

The error displayed is "Received unknown parameter: payment_method_options[card][moto]"