sdk-php icon indicating copy to clipboard operation
sdk-php copied to clipboard

PHP SDK for Authorize.Net API

Results 93 sdk-php issues
Sort by recently updated
recently updated
newest added

PHP 8.1 outputs several deprecation messages because the `jsonSerialize()` methods implemented by this package do not specify the `mixed` return type nor use the `#[\ReturnTypeWillChange]` attribute. The message doesn't appear...

I am trying to upgrade our servers to php8.1 from php7.4 so I am using phpcs to run a compatibility scan and it is reporting the following issue FILE: vendor/authorizenet/authorizenet/lib/net/authorize/util/Log.php...

As mentioned in https://github.com/AuthorizeNet/sdk-php/issues/105

```bash ErrorException: Attempt to read property "className" on null /var/www/giving/vendor/authorizenet/authorizenet/lib/net/authorize/api/contract/v1/ARBSubscriptionType.php:295 /var/www/giving/vendor/authorizenet/authorizenet/lib/net/authorize/api/controller/base/ApiOperationBase.php:138 /var/www/giving/vendor/authorizenet/authorizenet/lib/net/authorize/api/controller/base/ApiOperationBase.php:104 /var/www/giving/app/Subscription.php:393 ``` The only thing I see different in our code for setting up ARB is we're passing...

Hey, I've been following the example documentation provided, but started running into issues across the project when response was null, which resulted in exception while attempting to read messages. https://github.com/AuthorizeNet/sample-code-php/blob/master/TransactionReporting/get-transaction-details.php#L40...

Response type class does not exist. Replacing with correct CreateCustomerProfileResponse

Fixes: `PHP Fatal error: Uncaught TypeError: get_parent_class(): Argument #1 ($object_or_class) must be an object or a valid class name, string given in /../authorizenet/authorizenet/lib/net/authorize/util/Mapper.php:95`

When I'm using sandbox.authorize.net merchant API and Signature it was working when it changes to production then IT sends this error. "message":[{"code":"E00007","text":"User authentication failed due to invalid authentication values."}] `$merchantAuthentication->setName("");`...

The file `lib/net/authorize/api/controller/CreateCustomerProfileFromTransactionController.php` uses the response type `net\authorize\api\contract\v1\CreateCustomerProfileFromTransactionResponse`, but a corresponding file does not exist in lib/net/authorize/api/contract/v1. Changing the line `$responseType = 'net\authorize\api\contract\v1\CreateCustomerProfileFromTransactionResponse';` to `$responseType = 'net\authorize\api\contract\v1\CreateCustomerProfileResponse';` fixes the issue....