Skip to content

Conversation

@Chilledson
Copy link
Contributor

This pull request introduces updates to the payment method configuration and expands the supported color options for checkout customization. The most notable changes are the addition of a default payment method and an extended set of color names.

Checkout customization:

  • Expanded the COLOR_NAMES array in src/checkout.ts to include new color options (background, surface, surface-variant, success, warning, error, green, red, fields, field-border).

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request expands the checkout customization capabilities by adding 10 new color configuration options to the COLOR_NAMES array, allowing developers to customize additional UI elements beyond just primary and secondary colors. The changes also include updates to example files demonstrating the use of the defaultPaymentMethod option with a hardcoded "paypal" value for demonstration purposes.

Key changes:

  • Extended COLOR_NAMES array with 10 new color options for more granular UI customization
  • Updated example files to demonstrate defaultPaymentMethod configuration
  • Updated compiled distribution files to reflect source changes

Reviewed changes

Copilot reviewed 2 out of 8 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/checkout.ts Added 10 new color names to COLOR_NAMES array: background, surface, surface-variant, success, warning, error, green, red, fields, field-border
example/index.js Added defaultPaymentMethod: "paypal" to configuration object for demonstration
example/dist/index.js Added defaultPaymentMethod: "paypal" and updated endpoint to production URL
dist/types/checkout.d.ts Updated TypeScript declaration to include new color names in COLOR_NAMES type
dist/tebex.mjs Updated ESM bundle with new color names
dist/tebex.cjs Updated CommonJS bundle with new color names

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Chilledson Chilledson merged commit 44ecdd9 into tebexio:main Dec 1, 2025
1 check passed
@Chilledson Chilledson deleted the TEBEX-1212-allow-more-theme-overrides branch December 1, 2025 10:00
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.

2 participants