Skip to content

Livewire component on Stripe package doesn't work with different decimal values #2516

Description

@JonBarakMierke
  • Lunar version: 1.3.0
  • Laravel Version: 12.56.0
  • PHP Version: 8.4.16
  • Database Driver & Version: MySQL 8.0.32

Expected Behaviour:

Should respect/follow the decimals for the currency.

\Lunar\Stripe\Facades\Stripe::createIntent() OR \Lunar\Stripe\Facades\Stripe::syncintent()

Actual Behaviour:

Seems to default to 2 decimals. So if I have a product that is $60.0000 it charges the customer $6000.00

Steps To Reproduce:

Change the currency you are using to 4 decimals.
Setup a checkout flow using the Livewire component provided by the Lunar Stripe package.
Have the Payment page call:

\Lunar\Stripe\Facades\Stripe::syncintent($cart);

Complete payment using a Stripe sandbox.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Fields

    No fields configured for Bug.

    Projects

    Status
    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions