Skip to content

Commit

Permalink
Fix PMME appearance in shortcode checkout
Browse files Browse the repository at this point in the history
  • Loading branch information
gpressutto5 committed Oct 23, 2024
1 parent 7f0ec7b commit 4d8d5b5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion client/checkout/classic/event-handlers.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,8 @@ jQuery( function ( $ ) {
decimalPlaces:
cartData?.totals?.currency_minor_unit,
country: currentCountry,
}
},
'shortcode_checkout'
);
}
}
Expand Down
5 changes: 3 additions & 2 deletions client/checkout/classic/payment-processing.js
Original file line number Diff line number Diff line change
Expand Up @@ -453,10 +453,11 @@ export async function mountStripePaymentElement(
export async function mountStripePaymentMethodMessagingElement(
api,
domElement,
cartData
cartData,
location
) {
const paymentMethodType = domElement.dataset.paymentMethodType;
const appearance = await initializeAppearance( api );
const appearance = await initializeAppearance( api, location );

try {
const paymentMethodMessagingElement = api
Expand Down

0 comments on commit 4d8d5b5

Please sign in to comment.