Repository navigation
6.9.1
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 underCheckout\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::$billingwith the newPaymentSetupBillingclass ($address).PaymentSetupPaymentTypewith the six Payment Setup values:regular,recurring,moto,installment,pay_later,unscheduled.Checkout\Common\EmptyAsObject, a class attribute that makesJsonSerializerwrite an object with nothing set as{}instead of[].
Payouts and unreferenced refunds (#401)
PaymentsClient::requestUnreferencedRefund()andUnreferencedRefundRequest, sent toPOST /paymentswithpayment_typeset toUnreferencedRefund.- Card payout destinations
PaymentRequestCardDestination,PaymentRequestTokenDestinationandPaymentRequestNetworkTokenDestination. PaymentDestinationType::$network_token.NetworkTokenTypewithvts,mdes,applepayandgooglepay.PayoutRequest::$billing_descriptor(PayoutBillingDescriptor).Checkout\Payments\Request\PaymentInstruction::$remittance.PaymentSender::$reference, inherited by every sender type.PaymentBankAccountDestination::$bban.AccountHolderIdentification::$date_of_expiry.
PaymentType::$pay_later(PayLater) (#401).Checkout\Payments\PaymentInstruction::$purpose, for regular payments and payment sessions (#401).CustomerRetrywith$max_attempts(0 to 5, default 5) (#400).
Changed
RequestNetworkTokenSource::$token_typeis documented as aNetworkTokenTypevalue (#401).- Payment Setups
MerchantAccount::$last_payment_amountis documented asfloatinstead ofint, matching the API'snumbertype (#398). customer_retryonHostedPaymentsSessionRequest,PaymentLinkRequestandPaymentSessionsRequestis documented asCustomerRetryinstead ofPaymentRetryRequest. Only the PHPDoc type changes; arrays such as['max_attempts' => 3]keep working (#400).- Payment Setups
initializationdocs now state that an update replaces the payment methods, so sendenabledagain to keep a method enabled (#398).
Fixed
customer_retryon hosted payments, payment links and payment sessions can now carrymax_attempts. It was typed as theretryobject ofPOST /payments, whoseenabled,dunninganddowntimethe API rejects incustomer_retry. UseCustomerRetry(#400).
Deprecated
All of these will be removed in the next major version.
Bizum::$initialization,PayByBank::$initializationandStablecoin::$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 acceptslocalandinstant. No replacement (#401).Checkout\Payments\Request\PaymentInstruction::$charge_bearer,$repairand$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: userisk.device.network.ipv4orrisk.device.network.ipv6instead (#400).HostedPaymentsSessionRequest::$payment_ipandPaymentLinkRequest::$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_invalidfor most of these objects. This covers every class underPayments\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_typedefaults to"regular"instead of"Regular". The API accepts both. Migration: compare withPaymentSetupPaymentType::$regularinstead of"Regular"(#398).