gestoria/Payment.php
Showing 8 of 8 total issues
Avoid using static access to class '\Stripe\PaymentIntent' in method 'create_payment_intent'. Open
Open
return PaymentIntent::create([ 'description' => $info["description"], 'amount' => filter_var($info["amount"], FILTER_SANITIZE_NUMBER_FLOAT), 'currency' => 'eur', 'metadata' => ['integration_check' => 'accept_a_payment'],
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
Avoid using static access to class '\Stripe\Stripe' in method 'create_payment_intent'. Open
Open
Stripe::setApiKey(STRIPE_API_SECRET);
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks
syntax error, unexpected '?', expecting function (T_FUNCTION) or const (T_CONST)
Open
Open
private static ?Payment $instance = null;
- Create a ticketCreate a ticket
- Exclude checks
Each class must be in a namespace of at least one level (a top-level vendor name) Open
Open
class Payment
- Create a ticketCreate a ticket
- Exclude checks
A file should declare new symbols (classes, functions, constants, etc.) and cause no other side effects, or it should execute logic with side effects, but should not do both. The first symbol is defined on line 10 and the first side effect is on line 7. Open
Open
<?php
- Create a ticketCreate a ticket
- Exclude checks
Method name "Payment::create_payment_intent" is not in camel caps format Open
Open
public static function create_payment_intent(array $info)
- Create a ticketCreate a ticket
- Exclude checks
The method create_payment_intent is not named in camelCase. Open
Open
public static function create_payment_intent(array $info) { Stripe::setApiKey(STRIPE_API_SECRET); try { return PaymentIntent::create([
- Read upRead up
- Create a ticketCreate a ticket
- Exclude checks