mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Rename AuthorizationFactory file and fix variable
This commit is contained in:
parent
d1af783f34
commit
6c1dec1c3a
1 changed files with 3 additions and 3 deletions
|
@ -8,7 +8,7 @@ use Inpsyde\PayPalCommerce\ApiClient\Entity\Authorization;
|
|||
use Inpsyde\PayPalCommerce\ApiClient\Entity\AuthorizationStatus;
|
||||
use Inpsyde\PayPalCommerce\ApiClient\Exception\RuntimeException;
|
||||
|
||||
class AuthorizationsFactory
|
||||
class AuthorizationFactory
|
||||
{
|
||||
public function fromPayPalRequest(\stdClass $data): Authorization
|
||||
{
|
||||
|
@ -21,10 +21,10 @@ class AuthorizationsFactory
|
|||
);
|
||||
}
|
||||
|
||||
if (!isset($orderData->status)) {
|
||||
if (!isset($data->status)) {
|
||||
throw new RuntimeException(
|
||||
__(
|
||||
'Des not contain status.',
|
||||
'Does not contain status.',
|
||||
'woocommerce-paypal-commerce-gateway'
|
||||
)
|
||||
);
|
Loading…
Add table
Add a link
Reference in a new issue