Skip to content

Commit

Permalink
feat/New error code for payments (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
vifer authored May 1, 2024
1 parent 10bdc72 commit bb0339f
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 14 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

Check our main [developer changelog](https://developer.paddle.com/?utm_source=dx&utm_medium=paddle-php-sdk) for information about changes to the Paddle Billing platform, the Paddle API, and other developer tools.

## [1.1.0] - 2024-04-30

### Added

- New error code for payments `declined_not_retryable`, see [related changelog](https://developer.paddle.com/changelog/2024/declined-not-retryable-error-code?utm_source=dx&utm_medium=paddle-php-sdk).

## [1.0.1] - 2024-03-13

### Added
Expand Down
15 changes: 2 additions & 13 deletions LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -175,18 +175,7 @@

END OF TERMS AND CONDITIONS

APPENDIX: How to apply the Apache License to your work.

To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright [yyyy] [name of copyright owner]
Copyright 2024 Paddle.com Market Limited

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand All @@ -198,4 +187,4 @@
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
limitations under the License.
2 changes: 1 addition & 1 deletion src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@

class Client
{
private const SDK_VERSION = '1.0.1';
private const SDK_VERSION = '1.1.0';

public readonly LoggerInterface $logger;
public readonly Options $options;
Expand Down
2 changes: 2 additions & 0 deletions src/Entities/Shared/ErrorCode.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
* @method static ErrorCode BlockedCard()
* @method static ErrorCode Canceled()
* @method static ErrorCode Declined()
* @method static ErrorCode DeclinedNotRetryable()
* @method static ErrorCode ExpiredCard()
* @method static ErrorCode Fraud()
* @method static ErrorCode InvalidAmount()
Expand All @@ -40,6 +41,7 @@ final class ErrorCode extends PaddleEnum
private const BlockedCard = 'blocked_card';
private const Canceled = 'canceled';
private const Declined = 'declined';
private const DeclinedNotRetryable = 'declined_not_retryable';
private const ExpiredCard = 'expired_card';
private const Fraud = 'fraud';
private const InvalidAmount = 'invalid_amount';
Expand Down

0 comments on commit bb0339f

Please sign in to comment.