Skip to content

Commit ae406d7

Browse files
authored
Update StripeController.php
1 parent bd79992 commit ae406d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Http/Controllers/Api/Client/Store/StripeController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function purchase(StripeRequest $request): JsonResponse
3535

3636
$client = new StripeClient(config('gateways.stripe.secret'));
3737
$amount = $request->input('amount');
38-
$cost = number_format(config('gateways.stripe.cost', 1.00) / 100 * $amount, 2);
38+
$cost = number_format(config('gateways.cost', 1.00) / 100 * $amount, 2);
3939
$currency = config('gateways.currency', 'BRL');
4040

4141
$checkout = $client->checkout->sessions->create([

0 commit comments

Comments
 (0)