I'm intergrating with the Stripe Payment Gateway - the latest version of the API.
It's all working apart from the 'client_reference_id' does not get passed to either the webhook or the transaction (Does not appear in the log) - I need this to update the order in the database.
My code is:
$session = \Stripe\Checkout\Session::create([
'billing_address_collection' => 'required',
'payment_method_types' => ['card'],
'line_items' => [[
'amount' => 1011,
'currency' => 'GBP',
'name' => 'Purchase',
'description' => 'test',
'quantity' => 1,
]],
'client_reference_id' => 'TEST1111223',
'mode' => 'payment',
'success_url' => 'https://example.com/success',
'cancel_url' => 'https://example.com/cancel'
]);
According to the documentation this should be passed: https://stripe.com/docs/api/checkout/sessions/create
Am I doing something wrong?
Someone else asked the same question but was not answered: The "client_reference_id" argument is not passed