@waffo/pancake-ts 0.14.0 → 0.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -4,6 +4,35 @@ All notable changes to `@waffo/pancake-ts` will be documented in this file.
4
4
 
5
5
  Format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), versioning follows [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## [0.16.0] - 2026-07-28
8
+
9
+ Per-transaction payment method selection on the hosted checkout page.
10
+
11
+ ### Added
12
+
13
+ - `PaymentMethod` — payment methods offered on the checkout page: `card` / `applepay` / `googlepay` / `wechat`
14
+ - `CreateCheckoutSessionParams.includePaymentMethods` — whitelist: offer only these. Every value must be supported by the product type × currency pair, otherwise the request is rejected with a 400.
15
+ - `CreateCheckoutSessionParams.excludePaymentMethods` — blacklist: offer everything the currency supports except these. Values the currency does not offer are ignored, so one blacklist can be reused across currencies. Mutually exclusive with `includePaymentMethods`; omit both to offer every method the currency supports.
16
+
17
+ ### Changed
18
+
19
+ - Currencies outside the payment method matrix are now rejected at checkout session creation (400) instead of falling through to the provider. One-time supports `USD` / `EUR` / `GBP` / `HKD` / `JPY` / `CNY`; subscription supports `USD` / `EUR` / `GBP` / `HKD` / `JPY`. Affects one-time `THB` and subscription `CNY`, neither of which has ever produced a successful charge.
20
+ - Both fields require API Key authentication. Store Slug (visitor) sessions ignore them and always offer every method the currency supports — payment method selection is a merchant-side commercial decision (channel fees, settlement terms).
21
+
22
+ ---
23
+
24
+ ## [0.15.0] - 2026-07-27
25
+
26
+ Notification settings contract update for platform-managed payout notifications.
27
+
28
+ ### Added
29
+
30
+ - `NotificationSettings.emailUpcomingCharge` — platform-managed toggle for the upcoming-charge reminder email (renewal notice sent before a subscription charge).
31
+
32
+ ### Removed
33
+
34
+ - **Breaking**: `NotificationSettings.notifyPayoutCompleted` / `notifyPayoutFailed` and their entries in `MerchantWritableNotificationSettings`. Payout result emails are platform-managed and always delivered (merchant-level platform notification) — they have no toggle. The `update-store` endpoint silently drops the legacy keys with a `warnings[]` entry.
35
+
7
36
  ## [0.14.0] - 2026-07-18
8
37
 
9
38
  Adds content-safety prompt scanning for AIGC generation.
package/README.md CHANGED
@@ -134,6 +134,7 @@ const result = await client.checkout.anonymous.create({
134
134
  withTrial: false, // skip trial for this session
135
135
  orderMerchantExternalId: "ORDER-2026-00891", // optional, API Key auth only
136
136
  language: "pt-BR", // optional, sets the default checkout language (IETF BCP 47)
137
+ includePaymentMethods: ["card", "applepay"], // optional whitelist; or excludePaymentMethods to drop specific ones
137
138
  });
138
139
 
139
140
  window.open(result.checkoutUrl, "_blank", "noopener,noreferrer");