#vergeilt-checkout-php

1 messages · Page 1 of 1 (latest)

mossy pewterBOT
#

Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

broken cove
#

vergeilt-checkout-php

#

line_items is an array or arrays

terse ledge
#

yeah i made it an array

#
$stripe = new StripeClient(Env::get('STRIPE_SECRET_KEY'));
        $checkout = $stripe->checkout->sessions->create([
            'success_url' => route('plot.show', $plot->id),
            'return_url' => route('plot.show', $plot->id),
            'line_items' => [
                'price_data' => [
                    'currency' => 'cad',
                    'unit_amount' => $plot->price * 100,
                    'recurring' => [
                        'interval' => 'month',
                    ],
                    'product_data' => [
                        'name' => $plot->title,
                    ]
                ],
                'quantity' => 1,
            ],
            'mode' => 'subscription',
        ], ['stripe_account' => $plot->user->stripe_connect_account_id]);
broken cove
#

it's an array of arrays

#

you made it an array

terse ledge
#

oh

#

okay

#

thanks it works now