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 ### 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'@'%'; ``` 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 = []; 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,