Skip to content

Apple Pay demo: log the card token, and select List when typing card countries - #174

Closed
ragarwal-spreedly wants to merge 2 commits into
stagingfrom
fix/apple-pay-demo-card-token-log
Closed

ragarwal-spreedly wants to merge 2 commits into
stagingfrom
fix/apple-pay-demo-card-token-log

Conversation

@ragarwal-spreedly

Copy link
Copy Markdown
Contributor

Two small fixes to the Apple Pay demo page:

  • After a card payment in Express Checkout, the event log now shows the card's token. It read the token from the wrong place in the tokenGenerated payload, so it logged {}.
  • Typing in the card countries box now selects the List option, so the list is sent without ticking it by hand.

🤖 Generated with Claude Code

ragarwal-spreedly and others added 2 commits November 27, 2026 18:32
The Card countries setting only sends supportedCountries when List is
selected, so typing a code while "Not sent" was selected did nothing.
Typing in the box now selects List.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Express Checkout's tokenGenerated payload holds the card's payment method
under tokenResponse, as the other demo pages read it. The Apple Pay demo read
payload.payment_method, so its log showed an empty object after a card payment.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ragarwal-spreedly

Copy link
Copy Markdown
Contributor Author

Folded into #175, which moves the Apple Pay checkout page and includes both of these fixes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant