Use Postfinance API v4

Created on 16 May 2024, 4 months ago
Updated 30 May 2024, 4 months ago

Problem/Motivation

Postfinance PHP-SDK supports PHP 8.2. Looking through the diff, the following changes stand out:

  • Added ApiClient::getCardProcessingService(): CardProcessingService. Related new files: lib/Service/CardProcessingService.php, lib/Model/AuthenticatedCardData.php, lib/Model/AuthenticatedCardDataCreate.php, lib/Model/CardAuthenticationResponse.php, lib/Model/CardAuthenticationVersion.php, lib/Model/CardCryptogram.php, lib/Model/CardCryptogramCreate.php, lib/Model/CardCryptogramType.php, lib/Model/CardholderAuthentication.php, lib/Model/CardholderAuthenticationCreate.php, lib/Model/RecurringIndicator.php, lib/Model/TokenizedCardData.php, lib/Model/TokenizedCardDataCreate.php
  • The primary_account field in lib/Model/ApplicationUser.php and lib/Model/HumanUser.php were changed from \PostFinanceCheckout\Sdk\Model\Account type to int.
  • The scope field in lib/Model/HumanUser.php and lib/Model/User.php was changed from \PostFinanceCheckout\Sdk\Model\Scope to int.
  • The display_name field was removed from lib/Model/LocalizedString.php.
  • The space_id field was removed from lib/Model/ManualTask.php.
  • Removed lib/Model/DatabaseTranslatedString.php and lib/Model/DatabaseTranslatedStringItem.php. Instead use map[string,string] in lib/Model/PaymentMethodConfiguration.php (title, description), lib/Model/Role.php (name). This shouldn't break anything since DatabaseTranslatedString implemented AraryAccess

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Feature request
Status

Fixed

Version

1.0

Component

Code

Created by

🇨🇭Switzerland znerol

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024