From 87229ad04f0bb520aa79fd69d57782cac7ab84eb Mon Sep 17 00:00:00 2001 From: Daniel Subiabre Date: Mon, 29 Sep 2025 17:35:16 +0200 Subject: [PATCH 1/4] Update example STRIPE_API_KEY value --- .env | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.env b/.env index ce2bdc4..07500aa 100644 --- a/.env +++ b/.env @@ -39,7 +39,7 @@ CRYPTO_SECRET="" ###< doctrineencryptbundle/doctrine-encrypt-bundle ### ###> App\Gateway\Stripe\StripeGateway ### -STRIPE_API_KEY="" +STRIPE_API_KEY="!ChangeMe!" STRIPE_WEBHOOK_SECRET="" ###< App\Gateway\Stripe\StripeGateway ### From 22724b68e7a6af702f02554ddbfbeb606f9fce04 Mon Sep 17 00:00:00 2001 From: Daniel Subiabre Date: Mon, 29 Sep 2025 17:38:34 +0200 Subject: [PATCH 2/4] Add semicolon at end of SQL command example --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8fd6c7c..5efdf35 100644 --- a/README.md +++ b/README.md @@ -111,5 +111,5 @@ bin/docker mariadb mysql -u root -pgoteo goteo 2. Grant *goteo* all privileges. ```mysql -GRANT ALL PRIVILEGES ON *.* TO 'goteo'@'%' +GRANT ALL PRIVILEGES ON *.* TO 'goteo'@'%'; ``` From 77626a858bdfb089ceba6ff5f4809eb82839783f Mon Sep 17 00:00:00 2001 From: Daniel Subiabre Date: Mon, 29 Sep 2025 17:47:51 +0200 Subject: [PATCH 3/4] Force checkout charges as embedded objects in api payload --- src/ApiResource/Gateway/CheckoutApiResource.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ApiResource/Gateway/CheckoutApiResource.php b/src/ApiResource/Gateway/CheckoutApiResource.php index 45c73b8..bbd0684 100644 --- a/src/ApiResource/Gateway/CheckoutApiResource.php +++ b/src/ApiResource/Gateway/CheckoutApiResource.php @@ -60,7 +60,7 @@ class CheckoutApiResource * * @var ChargeApiResource[] */ - #[API\ApiProperty(readableLink: true)] + #[API\ApiProperty(readableLink: true, writableLink: true)] #[Assert\NotBlank()] #[Assert\Count(min: 1)] public array $charges = []; From ce52273f51601f1fdd54a17cb25193a20eaa2056 Mon Sep 17 00:00:00 2001 From: Daniel Subiabre Date: Mon, 29 Sep 2025 17:48:43 +0200 Subject: [PATCH 4/4] Fix Doctrine access to property of embeddable object --- src/Entity/EmbeddableMoney.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Entity/EmbeddableMoney.php b/src/Entity/EmbeddableMoney.php index 353981c..e75073f 100644 --- a/src/Entity/EmbeddableMoney.php +++ b/src/Entity/EmbeddableMoney.php @@ -20,16 +20,16 @@ class EmbeddableMoney implements MoneyInterface * Expressed as the minor unit, e.g: cents, pennies, etc. */ #[ORM\Column(type: 'integer', nullable: true)] - private ?int $amount; + public ?int $amount; /** * 3-letter ISO 4217 currency code. */ #[ORM\Column(type: 'string', nullable: true)] - private ?string $currency; + public ?string $currency; #[ORM\Column(type: 'json', nullable: true)] - private ?array $conversion; + public ?array $conversion; public function __construct( ?int $amount = null,