Repository navigation
1.1.0
·
7 commits
to master
since this release
π UPC 1.1.0
Feature release adding card-alias payments (create-and-store, or pay with a saved alias) alongside
the existing hosted-fields flow, plus full/partial refunds against the Unified API.
β¨ Added
- π³ Pay with a saved card alias β new
PaymentDto, sibling toHostedFieldDto, for paying
with an already-created alias (nohfToken). Both share onePaymentRequestPayloadcontract, so
UnifiedApiPaymentService::createPayment()accepts either. - π·οΈ Create an alias from a hosted-fields payment β
HostedFieldDto::$recurringMode+
paymentMethod.saveFutureUsagecreate an alias for future reuse;PaymentOutput::$aliasId
surfaces whichever alias was created or reused. - π Billing/shipping support β
BillingDto/ShippingDto, composingAddressDto/ContactDto/
ShippingScheduleDto, wired intoCommonFieldsDto. - β©οΈ Refunds β
UnifiedApiPaymentService::createRefund()for a full or partial refund of a
payment, validatingaccountId/orderId/description/submerchantExternalIdlocally before
any HTTP call.
π₯ Breaking
UnifiedApiHostedPaymentServiceis removed; its method now lives directly on
UnifiedApiPaymentService::createPayment().descriptionis now sent unconditionally in every payment-creation request instead of being
omitted when unset.
β Quality
PHPStan level 8, PHP-CS-Fixer, PHPUnit, and CI verifying PHP 7.1β8.2 compatibility β all clean on
this release branch.
π Requirements
- PHP β₯7.4 to install/develop (build-tooling floor only β shipped source runs on PHP 7.1)
- Runtime dependency:
giggsey/libphonenumber-for-php
π Full Changelog: 1.0.1...1.1.0