Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect 'price-id' parameter in StripeService.php? #2

Closed
dnrdigital opened this issue Jan 18, 2024 · 1 comment
Closed

Incorrect 'price-id' parameter in StripeService.php? #2

dnrdigital opened this issue Jan 18, 2024 · 1 comment

Comments

@dnrdigital
Copy link

I'm on the latest Stripe API (2023-10-16). I get an error from stripe when using the the price option in the stripe checkout fieldset. Stripe says:

Received unknown parameter: line_items[0][price_id]. Did you mean price?

If I change 'price_id' to 'price' at line 139 of StripeService.php it seems to work:

  $lineItems[] = [
      'price' => $price['price_id'],
      'quantity' => $quantity,
  ];

Haven't fully tested with prices yet, so YMMV...

@martyf
Copy link
Contributor

martyf commented Jan 18, 2024

Thanks for raising this, and apologies for missing it. This has been resolved in 1.0.2.

@martyf martyf closed this as completed Jan 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants