Skip to content

Fix missing summary items in recurring & disbursement payment fallback - #69

Merged
ana-maksimovskikh merged 4 commits into
mainfrom
ana/apple-pay-fix-recurring-payment-summary-fallback
Aug 23, 2026
Merged

Fix missing summary items in recurring & disbursement payment fallback#69
ana-maksimovskikh merged 4 commits into
mainfrom
ana/apple-pay-fix-recurring-payment-summary-fallback

Conversation

@ana-maksimovskikh

@ana-maksimovskikh ana-maksimovskikh commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

Bug

getPaymentSummaryItems() is the fallback PassKit calls whenever the merchant delegate doesn't handle a shipping/payment-method/coupon-code update itself. For recurring and disbursement transactions, it only returned the plain paymentSummaryItems list — it never included:

  • Recurring: regularBilling and trialBilling
  • Disbursement: disbursementItem and the instant-funds-out fee

So any mid-sheet update (changing shipping address, switching card, entering a coupon) would silently drop these required line items — including the total — from the Apple Pay sheet.

Fix

getPaymentSummaryItems() now appends the same items buildPaymentRequest already builds for these transaction types, so the fallback stays consistent with the initial request.

Tests

Added regression tests covering all three fallback entry points (didChangeCouponCode, didSelectShippingContact, didSelectPaymentMethod) against both affected transaction types.

Before / After

Screenshot 2026-08-20 at 16 27 55 Screenshot 2026-08-20 at 16 32 24

@ana-maksimovskikh
ana-maksimovskikh marked this pull request as ready for review August 20, 2026 15:37
@ana-maksimovskikh
ana-maksimovskikh requested a review from a team as a code owner August 20, 2026 15:37

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ana-maksimovskikh
ana-maksimovskikh force-pushed the ana/apple-pay-fix-recurring-payment-summary-fallback branch from 97b591c to 5c81d2e Compare August 23, 2026 11:33
@ana-maksimovskikh
ana-maksimovskikh merged commit 43afcd6 into main Aug 23, 2026
8 checks passed
@ana-maksimovskikh
ana-maksimovskikh deleted the ana/apple-pay-fix-recurring-payment-summary-fallback branch August 23, 2026 11:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants