Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [3.6.0] - 2026-05-22
## [3.6.1] - 2026-06-23
### Added
- Add support for new parameters in `cardWallet/session` and `cardWallet/authorize`.

Expand Down
2 changes: 1 addition & 1 deletion src/AbstractApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ abstract class AbstractApi
/**
* PHP API version
*/
const PHP_API_VERSION = '3.6.0';
const PHP_API_VERSION = '3.6.1';

/**
* Event dispatcher
Expand Down
12 changes: 11 additions & 1 deletion src/Api/Ecommerce/PaymentRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ public function setSessionId($sessionId)
*/
protected function configureOptions(OptionsResolver $resolver)
{
$resolver->setRequired(['terminal', 'shop_orderid', 'amount', 'currency']);
$this->setupRequirements($resolver);
$resolver->setDefined([
'language',
'transaction_info',
Expand Down Expand Up @@ -359,6 +359,16 @@ protected function configureOptions(OptionsResolver $resolver)
});
}

/**
* @param OptionsResolver $resolver
*
* @return void
*/
protected function setupRequirements(OptionsResolver $resolver)
{
$resolver->setRequired(['terminal', 'shop_orderid', 'amount', 'currency']);
}

/**
* Handle response
*
Expand Down
19 changes: 18 additions & 1 deletion src/Api/Payments/CardWalletSession.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,15 @@ public function setApplePayRequestData(array $applePayRequestData)
return $this;
}

/**
* @param OptionsResolver $resolver
*
* @return void
*/
protected function setupRequirements(OptionsResolver $resolver)
{
}

/**
* Configure options
*
Expand All @@ -79,7 +88,15 @@ protected function configureOptions(OptionsResolver $resolver)
{
parent::configureOptions($resolver);

$resolver->setDefined(['validationUrl', 'domain', 'applePayRequestData']);
$resolver->setDefined([
'terminal',
'shop_orderid',
'amount',
'currency',
'validationUrl',
'domain',
'applePayRequestData'
]);

$resolver->addAllowedTypes('validationUrl', 'string');
$resolver->addAllowedTypes('domain', 'string');
Expand Down
Loading