File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
src/components/elements/payment-method Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " @schematichq/schematic-components" ,
3- "version" : " 1.1.2 " ,
3+ "version" : " 1.1.3 " ,
44 "main" : " dist/schematic-components.cjs.js" ,
55 "module" : " dist/schematic-components.esm.js" ,
66 "types" : " dist/schematic-components.d.ts" ,
Original file line number Diff line number Diff line change @@ -186,11 +186,13 @@ export const PaymentMethodDetails = ({
186186
187187 useEffect ( ( ) => {
188188 if ( ! stripe && setupIntent ) {
189- const publishableKey =
189+ let publishableKey =
190190 setupIntent . publishableKey || setupIntent . schematicPublishableKey ;
191+
191192 const stripeOptions : StripeConstructorOptions = { } ;
192193
193194 if ( setupIntent . accountId ) {
195+ publishableKey = setupIntent . schematicPublishableKey ;
194196 stripeOptions . stripeAccount = setupIntent . accountId ;
195197 }
196198
You can’t perform that action at this time.
0 commit comments