Skip to content

1.1.0

Choose a tag to compare

@hdelaforce-payplug hdelaforce-payplug released this 28 Aug 14:18
· 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 to HostedFieldDto, for paying
    with an already-created alias (no hfToken). Both share one PaymentRequestPayload contract, so
    UnifiedApiPaymentService::createPayment() accepts either.
  • 🏷️ Create an alias from a hosted-fields payment β€” HostedFieldDto::$recurringMode +
    paymentMethod.saveFutureUsage create an alias for future reuse; PaymentOutput::$aliasId
    surfaces whichever alias was created or reused.
  • 🏠 Billing/shipping support β€” BillingDto/ShippingDto, composing AddressDto/ContactDto/
    ShippingScheduleDto, wired into CommonFieldsDto.
  • ↩️ Refunds β€” UnifiedApiPaymentService::createRefund() for a full or partial refund of a
    payment, validating accountId/orderId/description/submerchantExternalId locally before
    any HTTP call.

πŸ’₯ Breaking

  • UnifiedApiHostedPaymentService is removed; its method now lives directly on
    UnifiedApiPaymentService::createPayment().
  • description is 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