Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d9fb3bbde6 | ||
|
|
26b4c5bfd7 |
@@ -4,6 +4,17 @@ All notable changes to this project will be documented in this file.
|
|||||||
|
|
||||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
|
||||||
|
|
||||||
|
## [0.17.1] - 2026-09-15
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
- `Modules\Core\Payment\Drivers\StripePaymentDriver::createAndConfirm()` only set
|
||||||
|
`automatic_payment_methods` when no `payment_method` was given — the actual checkout flow always
|
||||||
|
sends one, so it was omitted, and Stripe fell back to whatever payment methods are enabled in the
|
||||||
|
Dashboard and demanded a `return_url` on confirm. Fixed by setting `automatic_payment_methods`
|
||||||
|
unconditionally with `allow_redirects: never` — the storefront's Payment Element already restricts
|
||||||
|
itself to `paymentMethodTypes: ['card']`, so this just tells Stripe the same thing server-side,
|
||||||
|
which drops the `return_url` requirement.
|
||||||
|
|
||||||
## [0.17.0] - 2026-09-14
|
## [0.17.0] - 2026-09-14
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|||||||
+1
-1
@@ -2,7 +2,7 @@
|
|||||||
"name": "boboko/core",
|
"name": "boboko/core",
|
||||||
"description": "Core module — authentication and shared panel behaviour",
|
"description": "Core module — authentication and shared panel behaviour",
|
||||||
"type": "library",
|
"type": "library",
|
||||||
"version": "0.17.0",
|
"version": "0.17.1",
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"psr-4": {
|
"psr-4": {
|
||||||
"Modules\\Core\\": "src/"
|
"Modules\\Core\\": "src/"
|
||||||
|
|||||||
@@ -100,12 +100,18 @@ class StripePaymentDriver implements
|
|||||||
'currency' => $amount->currency->code,
|
'currency' => $amount->currency->code,
|
||||||
'capture_method' => $captureMethod,
|
'capture_method' => $captureMethod,
|
||||||
'confirm' => true,
|
'confirm' => true,
|
||||||
|
// 'never' rather than the client-side paymentMethodTypes: ['card']
|
||||||
|
// restriction alone — the storefront's Payment Element already
|
||||||
|
// excludes every redirect-based method, but without this Stripe
|
||||||
|
// still falls back to whatever's enabled in the Dashboard and
|
||||||
|
// demands a return_url on confirm. Setting this unconditionally
|
||||||
|
// (not only when no payment_method is given) matches the actual
|
||||||
|
// flow: a payment_method is always supplied here.
|
||||||
|
'automatic_payment_methods' => ['enabled' => true, 'allow_redirects' => 'never'],
|
||||||
];
|
];
|
||||||
|
|
||||||
if (isset($data['payment_method'])) {
|
if (isset($data['payment_method'])) {
|
||||||
$params['payment_method'] = $data['payment_method'];
|
$params['payment_method'] = $data['payment_method'];
|
||||||
} else {
|
|
||||||
$params['automatic_payment_methods'] = ['enabled' => true];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user