#apebk

1 messages · Page 1 of 1 (latest)

woeful fableBOT
vague stag
#

hi, do you have an example where this happened, like the cs_test_xxx ID involved.

wary pagoda
#

'id' => 'cs_test_a1wNiBnEdSf1g60eagWE3tOliMUSM4x4xExDGFJDxddh9RpmsHG9CNlnPb',

vague stag
#

hmm I don't 100% understand this integration. Can you show me the code where you set the client_reference_id on your side?

wary pagoda
#

public function getSession() {

    $stripe = new \Stripe\StripeClient('MyTest Id');
    $account = Auth::guard('company')->user();
    $id = $account->id;
    //\Log::info($account);
    $checkout = $stripe->checkout->sessions->create([
        'mode' => 'subscription',
        'success_url' => 'MyWebPage',
        'cancel_url' => 'my_Web_Page',
        'line_items' => [
            [
            'price' => 'price_1JMwCtLLMk1va9PUwZ7lgT4a', 
            'quantity' => 1,
            ],
        ],
          'client_reference_id' => $id,
      ]);
      \Log::info($checkout);
      return $checkout;
}
vague stag
#

hmm it's strange because the CheckoutSession ID you shared was not created that way

#

maybe you have a different way of accepting a payment that does not go through that PHP code

#

try searching your complete front and backend code for "price_1JMwCtLLMk1va9PUwZ7lgT4a" to find where else you're doing this

wary pagoda
#

Im using vueStripe in laravel if that helps

woeful fableBOT
plucky fractal
#

Hi! I'm taking over this thread.