Skip to content

Weryfikacja transakcji #5

Description

@wujekpiotr

Witam. Jak sprawdzić czy weryfikacja transakcji przebiegła pomyślnie? Gdyby ApiResponse::hasError była metodą publiczną możnaby jej użyć do weryfikacji:

$verified = $p24->verify([
                'session_id' => $order->getSessionId(), //unique order identifier from your application
                'order_id' => $webhook->orderId(),  // przelewy24 order id
                'amount' => round($order->getTotalSum() * 100), //transaction amount as an integer (1.25 PLN = 125)
            ]);
if (!$verified->hasError()) {
//$order->setAsPaid(); etc...
}

... ale metoda hasError jest chroniona. Może jest jakiś inny sposób?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions