Skip to content

Commit 2d8d886

Browse files
feat(payment): Added PPCP FL 3DS
2 parents 93ce48f + d78dd54 commit 2d8d886

35 files changed

+377
-321
lines changed

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,20 @@
22

33
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
44

5+
### [1.744.1](https://github.com/bigcommerce/checkout-sdk-js/compare/v1.744.0...v1.744.1) (2025-06-10)
6+
7+
8+
### Bug Fixes
9+
10+
* **payment:** Google Pay billing address update customFields added ([925cefa](https://github.com/bigcommerce/checkout-sdk-js/commit/925cefad0ef0a0bb6c676d23661f6ebe70f0dec1))
11+
12+
## [1.744.0](https://github.com/bigcommerce/checkout-sdk-js/compare/v1.743.2...v1.744.0) (2025-06-10)
13+
14+
15+
### Features
16+
17+
* **payment:** Move all Stripe OCS styling configs to checkout-js side ([2241704](https://github.com/bigcommerce/checkout-sdk-js/commit/2241704b2463ffcefce528dd3b21d64ae303a6e5))
18+
519
### [1.743.2](https://github.com/bigcommerce/checkout-sdk-js/compare/v1.743.1...v1.743.2) (2025-06-04)
620

721
### [1.743.1](https://github.com/bigcommerce/checkout-sdk-js/compare/v1.743.0...v1.743.1) (2025-06-04)

dist/checkout-button.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/checkout-button.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/checkout-button.umd.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/checkout-button.umd.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/checkout-sdk.d.ts

Lines changed: 63 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5151,6 +5151,19 @@ declare interface CreditCardPlaceHolder {
51515151
encryptedSecurityCode: string;
51525152
}
51535153

5154+
/**
5155+
* This object is used to pass custom fonts when creating an [Elements](https://stripe.com/docs/js/elements_object/create) object.
5156+
*/
5157+
declare interface CssFontSource {
5158+
/**
5159+
* A relative or absolute URL pointing to a CSS file with [@font-face](https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face) definitions, for example:
5160+
* `https://fonts.googleapis.com/css?family=Open+Sans`
5161+
* Note that if you are using a [content security policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy) (CSP),
5162+
* [additional directives](https://stripe.com/docs/security#content-security-policy) may be necessary.
5163+
*/
5164+
cssSrc: string;
5165+
}
5166+
51545167
declare interface CssProperties {
51555168
background?: string;
51565169
caretColor?: string;
@@ -5208,6 +5221,37 @@ declare interface CustomError extends Error {
52085221
subtype?: string;
52095222
}
52105223

5224+
/**
5225+
* This object is used to pass custom fonts when creating an [Elements](https://stripe.com/docs/js/elements_object/create) object.
5226+
*/
5227+
declare interface CustomFontSource {
5228+
/**
5229+
* The name to give the font.
5230+
*/
5231+
family: string;
5232+
/**
5233+
* A valid [src](https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/src) value pointing to your
5234+
* custom font file. This is usually (though not always) a link to a file with a .woff , .otf, or .svg suffix.
5235+
*/
5236+
src: string;
5237+
/**
5238+
* A valid [font-display](https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display) value.
5239+
*/
5240+
display?: string;
5241+
/**
5242+
* One of normal, italic, oblique. Defaults to normal.
5243+
*/
5244+
style?: string;
5245+
/**
5246+
* A valid [unicode-range](https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/unicode-range) value.
5247+
*/
5248+
unicodeRange?: string;
5249+
/**
5250+
* A valid [font-weight](https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight). Note that this is a string, not a number.
5251+
*/
5252+
weight?: string;
5253+
}
5254+
52115255
declare interface CustomItem {
52125256
id: string;
52135257
listPrice: number;
@@ -8599,6 +8643,18 @@ declare class StoredCardHostedFormService {
85998643
deinitialize(): void;
86008644
}
86018645

8646+
/**
8647+
* All available options are here https://stripe.com/docs/stripe-js/appearance-api#supported-css-properties
8648+
*/
8649+
declare interface StripeAppearanceOptions {
8650+
variables?: Record<string, StripeAppearanceValues>;
8651+
rules?: Record<string, Record<string, StripeAppearanceValues>>;
8652+
}
8653+
8654+
declare type StripeAppearanceValues = string | string[] | number | undefined;
8655+
8656+
declare type StripeCustomFont = CssFontSource | CustomFontSource;
8657+
86028658
declare interface StripeCustomerEvent extends StripeEvent {
86038659
collapsed?: boolean;
86048660
authenticated: boolean;
@@ -8798,9 +8854,13 @@ declare interface StripeOCSPaymentInitializeOptions {
87988854
*/
87998855
layout?: Record<string, string | number | boolean>;
88008856
/**
8801-
* Checkout styles from store theme
8857+
* Stripe OCS appearance options for styling the accordion.
8858+
*/
8859+
appearance?: StripeAppearanceOptions;
8860+
/**
8861+
* Stripe OCS fonts options for styling the accordion.
88028862
*/
8803-
style?: Record<string, StripeUPEAppearanceValues>;
8863+
fonts?: StripeCustomFont[];
88048864
onError?(error?: Error): void;
88058865
render(): void;
88068866
initStripeElementUpdateTrigger?(updateTriggerFn: (payload: StripeElementUpdateOptions) => void): void;
@@ -8834,8 +8894,6 @@ declare interface StripeShippingEvent extends StripeEvent {
88348894
};
88358895
}
88368896

8837-
declare type StripeUPEAppearanceValues = string | string[] | number | undefined;
8838-
88398897
declare interface StripeUPECustomerInitializeOptions {
88408898
/**
88418899
* The ID of a container which the stripe iframe should be inserted.
@@ -8899,7 +8957,7 @@ declare interface StripeUPEPaymentInitializeOptions {
88998957
/**
89008958
* Checkout styles from store theme
89018959
*/
8902-
style?: Record<string, StripeUPEAppearanceValues>;
8960+
style?: Record<string, StripeAppearanceValues>;
89038961
onError?(error?: Error): void;
89048962
render(): void;
89058963
initStripeElementUpdateTrigger?(updateTriggerFn: (payload: StripeElementUpdateOptions) => void): void;

dist/checkout-sdk.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/checkout-sdk.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/checkout-sdk.umd.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/checkout-sdk.umd.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/hosted-form-v2-iframe-host.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/hosted-form-v2-iframe-host.umd.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/README.md

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -223,9 +223,11 @@
223223
- [CreditCardInstrument](interfaces/CreditCardInstrument.md)
224224
- [CreditCardPaymentInitializeOptions_2](interfaces/CreditCardPaymentInitializeOptions_2.md)
225225
- [CreditCardPlaceHolder](interfaces/CreditCardPlaceHolder.md)
226+
- [CssFontSource](interfaces/CssFontSource.md)
226227
- [CssProperties](interfaces/CssProperties.md)
227228
- [Currency](interfaces/Currency.md)
228229
- [CustomError](interfaces/CustomError.md)
230+
- [CustomFontSource](interfaces/CustomFontSource.md)
229231
- [CustomItem](interfaces/CustomItem.md)
230232
- [Customer](interfaces/Customer.md)
231233
- [CustomerAccountRequestBody](interfaces/CustomerAccountRequestBody.md)
@@ -439,6 +441,7 @@
439441
- [StoredCardHostedFormBillingAddress](interfaces/StoredCardHostedFormBillingAddress.md)
440442
- [StoredCardHostedFormData](interfaces/StoredCardHostedFormData.md)
441443
- [StoredCardHostedFormInstrumentFields](interfaces/StoredCardHostedFormInstrumentFields.md)
444+
- [StripeAppearanceOptions](interfaces/StripeAppearanceOptions.md)
442445
- [StripeCustomerEvent](interfaces/StripeCustomerEvent.md)
443446
- [StripeElementCSSProperties](interfaces/StripeElementCSSProperties.md)
444447
- [StripeElementClasses](interfaces/StripeElementClasses.md)
@@ -590,9 +593,10 @@
590593
- [PaymentInstrument](README.md#paymentinstrument)
591594
- [PaymentProviderCustomer](README.md#paymentprovidercustomer)
592595
- [ReadableCheckoutStore](README.md#readablecheckoutstore)
596+
- [StripeAppearanceValues](README.md#stripeappearancevalues)
597+
- [StripeCustomFont](README.md#stripecustomfont)
593598
- [StripeElementOptions](README.md#stripeelementoptions)
594599
- [StripeEventType](README.md#stripeeventtype)
595-
- [StripeUPEAppearanceValues](README.md#stripeupeappearancevalues)
596600
- [WithGooglePayButtonInitializeOptions](README.md#withgooglepaybuttoninitializeoptions)
597601
- [WithGooglePayCustomerInitializeOptions](README.md#withgooglepaycustomerinitializeoptions)
598602
- [WithGooglePayPaymentInitializeOptions](README.md#withgooglepaypaymentinitializeoptions)
@@ -946,21 +950,27 @@ ___
946950

947951
___
948952

949-
### StripeElementOptions
953+
### StripeAppearanceValues
950954

951-
Ƭ **StripeElementOptions**: [`CardElementOptions`](interfaces/CardElementOptions.md) \| [`CardExpiryElementOptions`](interfaces/CardExpiryElementOptions.md) \| [`CardNumberElementOptions`](interfaces/CardNumberElementOptions.md) \| [`CardCvcElementOptions`](interfaces/CardCvcElementOptions.md) \| [`IdealElementOptions`](interfaces/IdealElementOptions.md) \| [`IbanElementOptions`](interfaces/IbanElementOptions.md) \| [`ZipCodeElementOptions`](interfaces/ZipCodeElementOptions.md)
955+
Ƭ **StripeAppearanceValues**: `string` \| `string`[] \| `number` \| `undefined`
952956

953957
___
954958

955-
### StripeEventType
959+
### StripeCustomFont
956960

957-
Ƭ **StripeEventType**: [`StripeShippingEvent`](interfaces/StripeShippingEvent.md) \| [`StripeCustomerEvent`](interfaces/StripeCustomerEvent.md)
961+
Ƭ **StripeCustomFont**: [`CssFontSource`](interfaces/CssFontSource.md) \| [`CustomFontSource`](interfaces/CustomFontSource.md)
962+
963+
___
964+
965+
### StripeElementOptions
966+
967+
Ƭ **StripeElementOptions**: [`CardElementOptions`](interfaces/CardElementOptions.md) \| [`CardExpiryElementOptions`](interfaces/CardExpiryElementOptions.md) \| [`CardNumberElementOptions`](interfaces/CardNumberElementOptions.md) \| [`CardCvcElementOptions`](interfaces/CardCvcElementOptions.md) \| [`IdealElementOptions`](interfaces/IdealElementOptions.md) \| [`IbanElementOptions`](interfaces/IbanElementOptions.md) \| [`ZipCodeElementOptions`](interfaces/ZipCodeElementOptions.md)
958968

959969
___
960970

961-
### StripeUPEAppearanceValues
971+
### StripeEventType
962972

963-
Ƭ **StripeUPEAppearanceValues**: `string` \| `string`[] \| `number` \| `undefined`
973+
Ƭ **StripeEventType**: [`StripeShippingEvent`](interfaces/StripeShippingEvent.md) \| [`StripeCustomerEvent`](interfaces/StripeCustomerEvent.md)
964974

965975
___
966976

docs/interfaces/CssFontSource.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
[@bigcommerce/checkout-sdk](../README.md) / CssFontSource
2+
3+
# Interface: CssFontSource
4+
5+
This object is used to pass custom fonts when creating an [Elements](https://stripe.com/docs/js/elements_object/create) object.
6+
7+
## Table of contents
8+
9+
### Properties
10+
11+
- [cssSrc](CssFontSource.md#csssrc)
12+
13+
## Properties
14+
15+
### cssSrc
16+
17+
**cssSrc**: `string`
18+
19+
A relative or absolute URL pointing to a CSS file with [@font-face](https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face) definitions, for example:
20+
`https://fonts.googleapis.com/css?family=Open+Sans`
21+
Note that if you are using a [content security policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy) (CSP),
22+
[additional directives](https://stripe.com/docs/security#content-security-policy) may be necessary.

docs/interfaces/CustomFontSource.md

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
[@bigcommerce/checkout-sdk](../README.md) / CustomFontSource
2+
3+
# Interface: CustomFontSource
4+
5+
This object is used to pass custom fonts when creating an [Elements](https://stripe.com/docs/js/elements_object/create) object.
6+
7+
## Table of contents
8+
9+
### Properties
10+
11+
- [display](CustomFontSource.md#display)
12+
- [family](CustomFontSource.md#family)
13+
- [src](CustomFontSource.md#src)
14+
- [style](CustomFontSource.md#style)
15+
- [unicodeRange](CustomFontSource.md#unicoderange)
16+
- [weight](CustomFontSource.md#weight)
17+
18+
## Properties
19+
20+
### display
21+
22+
`Optional` **display**: `string`
23+
24+
A valid [font-display](https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display) value.
25+
26+
___
27+
28+
### family
29+
30+
**family**: `string`
31+
32+
The name to give the font.
33+
34+
___
35+
36+
### src
37+
38+
**src**: `string`
39+
40+
A valid [src](https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/src) value pointing to your
41+
custom font file. This is usually (though not always) a link to a file with a .woff , .otf, or .svg suffix.
42+
43+
___
44+
45+
### style
46+
47+
`Optional` **style**: `string`
48+
49+
One of normal, italic, oblique. Defaults to normal.
50+
51+
___
52+
53+
### unicodeRange
54+
55+
`Optional` **unicodeRange**: `string`
56+
57+
A valid [unicode-range](https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/unicode-range) value.
58+
59+
___
60+
61+
### weight
62+
63+
`Optional` **weight**: `string`
64+
65+
A valid [font-weight](https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight). Note that this is a string, not a number.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
[@bigcommerce/checkout-sdk](../README.md) / StripeAppearanceOptions
2+
3+
# Interface: StripeAppearanceOptions
4+
5+
All available options are here https://stripe.com/docs/stripe-js/appearance-api#supported-css-properties
6+
7+
## Table of contents
8+
9+
### Properties
10+
11+
- [rules](StripeAppearanceOptions.md#rules)
12+
- [variables](StripeAppearanceOptions.md#variables)
13+
14+
## Properties
15+
16+
### rules
17+
18+
`Optional` **rules**: `Record`<`string`, `Record`<`string`, [`StripeAppearanceValues`](../README.md#stripeappearancevalues)\>\>
19+
20+
___
21+
22+
### variables
23+
24+
`Optional` **variables**: `Record`<`string`, [`StripeAppearanceValues`](../README.md#stripeappearancevalues)\>

docs/interfaces/StripeOCSPaymentInitializeOptions.md

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,10 @@ service.initializePayment({
2727

2828
### Properties
2929

30+
- [appearance](StripeOCSPaymentInitializeOptions.md#appearance)
3031
- [containerId](StripeOCSPaymentInitializeOptions.md#containerid)
32+
- [fonts](StripeOCSPaymentInitializeOptions.md#fonts)
3133
- [layout](StripeOCSPaymentInitializeOptions.md#layout)
32-
- [style](StripeOCSPaymentInitializeOptions.md#style)
3334

3435
### Methods
3536

@@ -41,6 +42,14 @@ service.initializePayment({
4142

4243
## Properties
4344

45+
### appearance
46+
47+
`Optional` **appearance**: [`StripeAppearanceOptions`](StripeAppearanceOptions.md)
48+
49+
Stripe OCS appearance options for styling the accordion.
50+
51+
___
52+
4453
### containerId
4554

4655
**containerId**: `string`
@@ -49,19 +58,19 @@ The location to insert the credit card number form field.
4958

5059
___
5160

52-
### layout
61+
### fonts
5362

54-
`Optional` **layout**: `Record`<`string`, `string` \| `number` \| `boolean`\>
63+
`Optional` **fonts**: [`StripeCustomFont`](../README.md#stripecustomfont)[]
5564

56-
Stripe OCS layout options
65+
Stripe OCS fonts options for styling the accordion.
5766

5867
___
5968

60-
### style
69+
### layout
6170

62-
`Optional` **style**: `Record`<`string`, [`StripeUPEAppearanceValues`](../README.md#stripeupeappearancevalues)\>
71+
`Optional` **layout**: `Record`<`string`, `string` \| `number` \| `boolean`\>
6372

64-
Checkout styles from store theme
73+
Stripe OCS layout options
6574

6675
## Methods
6776

docs/interfaces/StripeUPEPaymentInitializeOptions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ ___
4747

4848
### style
4949

50-
`Optional` **style**: `Record`<`string`, [`StripeUPEAppearanceValues`](../README.md#stripeupeappearancevalues)\>
50+
`Optional` **style**: `Record`<`string`, [`StripeAppearanceValues`](../README.md#stripeappearancevalues)\>
5151

5252
Checkout styles from store theme
5353

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@bigcommerce/checkout-sdk",
3-
"version": "1.743.2",
3+
"version": "1.744.1",
44
"description": "BigCommerce Checkout JavaScript SDK",
55
"license": "MIT",
66
"main": "dist/checkout-sdk.js",

0 commit comments

Comments
 (0)