Skip to content

Commit

Permalink
Merge pull request #6 from dystcz/feature/lunar-api-0.8.1
Browse files Browse the repository at this point in the history
Comply with Lunar API 0.8.1
  • Loading branch information
repl6669 authored Feb 9, 2024
2 parents bef07f3 + f599ba9 commit a50a8e9
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 36 deletions.
70 changes: 35 additions & 35 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 19 additions & 0 deletions config/stripe.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,25 @@
<?php

return [
/*
|--------------------------------------------------------------------------
| Sripe payment driver
|--------------------------------------------------------------------------
|
| Drivers for lunar are set in lunar.payments.types.
| When stripe is set as a driver, this adapter will be used.
|
*/
'driver' => 'stripe',

/*
|--------------------------------------------------------------------------
| Sripe payment type
|--------------------------------------------------------------------------
|
| This key serves is an identification for this adapter.
| That means that stripe driver is handled by this adapter if configured.
|
*/
'type' => 'stripe',
];
2 changes: 1 addition & 1 deletion src/StripePaymentAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function getType(): string
/**
* Create payment intent.
*/
public function createIntent(Cart $cart, array $meta = []): PaymentIntentContract
public function createIntent(Cart $cart, array $meta = [], ?int $amount = null): PaymentIntentContract
{
$cart = $this->updateCartMeta($cart, $meta);

Expand Down

0 comments on commit a50a8e9

Please sign in to comment.