Skip to content

6.9.1

Choose a tag to compare

@github-actions github-actions released this 03 Nov 10:30
aaad989

Release 6.9.1 (#405)

This release completes the Payment Setups request model with the 29 missing payment methods, billing and a dedicated payment type (#398). It adds card, token and network token payout destinations, unreferenced refunds and the remaining payout and payment request fields (#401), and fixes customer_retry on hosted payments, payment links and payment sessions so max_attempts can be sent (#400). Members that the API no longer accepts in requests are deprecated, not removed.

Added

Payment Setups (#398)

  • 29 payment methods on PaymentMethods, each with its own class under Checkout\Payments\Setups\Common\PaymentMethods: $ach (Ach), $alipay_cn (AlipayCn), $alipay_hk (AlipayHk), $alma (Alma), $bancontact (Bancontact), $benefit (Benefit), $blik (Blik), $dana (Dana), $eps (Eps), $gcash (GCash), $ideal (Ideal), $kakaopay (KakaoPay), $knet (Knet), $mbway (MbWay), $mobilepay (MobilePay), $multibanco (Multibanco), $octopus (Octopus), $p24 (P24), $paynow (PayNow), $qpay (Qpay), $sepa (Sepa), $sequra (Sequra), $swish (Swish), $tamara (Tamara), $tng (Tng), $truemoney (TrueMoney), $twint (Twint), $vipps (Vipps), $wechatpay (WeChatPay).
  • Nested classes: AchAccountHolder, AchAccountHolderIdentification, P24AccountHolder, SwishAccountHolder, SepaAccountHolder, SepaMandate, TamaraRiskAssessment.
  • Constants classes: KnetLanguage, AchAccountHolderType, PaymentSetupAchAccountType, SepaAccountHolderType, PaymentSetupSepaMandateType, PaymentSetupTerminalType, PaymentSetupOsType.
  • PaymentSetupRequest::$billing with the new PaymentSetupBilling class ($address).
  • PaymentSetupPaymentType with the six Payment Setup values: regular, recurring, moto, installment, pay_later, unscheduled.
  • Checkout\Common\EmptyAsObject, a class attribute that makes JsonSerializer write an object with nothing set as {} instead of [].

Payouts and unreferenced refunds (#401)

  • PaymentsClient::requestUnreferencedRefund() and UnreferencedRefundRequest, sent to POST /payments with payment_type set to UnreferencedRefund.
  • Card payout destinations PaymentRequestCardDestination, PaymentRequestTokenDestination and PaymentRequestNetworkTokenDestination.
  • PaymentDestinationType::$network_token.
  • NetworkTokenType with vts, mdes, applepay and googlepay.
  • PayoutRequest::$billing_descriptor (PayoutBillingDescriptor).
  • Checkout\Payments\Request\PaymentInstruction::$remittance.
  • PaymentSender::$reference, inherited by every sender type.
  • PaymentBankAccountDestination::$bban.
  • AccountHolderIdentification::$date_of_expiry.

Payments (#401, #400)

  • PaymentType::$pay_later (PayLater) (#401).
  • Checkout\Payments\PaymentInstruction::$purpose, for regular payments and payment sessions (#401).
  • CustomerRetry with $max_attempts (0 to 5, default 5) (#400).

Changed

  • RequestNetworkTokenSource::$token_type is documented as a NetworkTokenType value (#401).
  • Payment Setups MerchantAccount::$last_payment_amount is documented as float instead of int, matching the API's number type (#398).
  • customer_retry on HostedPaymentsSessionRequest, PaymentLinkRequest and PaymentSessionsRequest is documented as CustomerRetry instead of PaymentRetryRequest. Only the PHPDoc type changes; arrays such as ['max_attempts' => 3] keep working (#400).
  • Payment Setups initialization docs now state that an update replaces the payment methods, so send enabled again to keep a method enabled (#398).

Fixed

  • customer_retry on hosted payments, payment links and payment sessions can now carry max_attempts. It was typed as the retry object of POST /payments, whose enabled, dunning and downtime the API rejects in customer_retry. Use CustomerRetry (#400).

Deprecated

All of these will be removed in the next major version.

  • Bizum::$initialization, PayByBank::$initialization and Stablecoin::$initialization (Payment Setups): not in their API schemas. No replacement (#398).
  • Bizum::$payment_method_options (Payment Setups): not in the Bizum schema. No replacement (#398).
  • AccountHolder::$gender: not in any request account holder schema. No replacement (#401).
  • PaymentBankAccountDestination::$bank: not in the bank account payout destination schema. No replacement (#401).
  • InstructionScheme::$swift: the request scheme only accepts local and instant. No replacement (#401).
  • Checkout\Payments\Request\PaymentInstruction::$charge_bearer, $repair and $quote_id: not in the request schema. No replacement (#401).
  • PayoutRequestSource::$amount: not in any payout or unreferenced refund source schema. No replacement (#401).
  • PaymentRequest::$payment_ip: use risk.device.network.ipv4 or risk.device.network.ipv6 instead (#400).
  • HostedPaymentsSessionRequest::$payment_ip and PaymentLinkRequest::$payment_ip: deprecated by the API. No replacement (#400).
  • PaymentSessionsRequest::$ip_address: deprecated by the API. No replacement (#400).

Breaking changes required by the API ⚠️

  • A Payment Setup object with nothing set is now sent as {} instead of []; the API rejects [] with 422 <path>_property_invalid for most of these objects. This covers every class under Payments\Setups, including existing ones; objects with values and lists are sent as before. Migration: none needed unless your code depends on the [] output (#398).

Breaking changes (SDK alignment) ⚠️

  • PaymentSetupRequest::$payment_type defaults to "regular" instead of "Regular". The API accepts both. Migration: compare with PaymentSetupPaymentType::$regular instead of "Regular" (#398).