Skip to content

Commit

Permalink
Pass blocks checkout appearance on first party auth
Browse files Browse the repository at this point in the history
  • Loading branch information
hsingyuc committed Jul 16, 2024
1 parent 3fe78b8 commit 464ade4
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import {
deleteSkipWooPayCookie,
} from 'wcpay/checkout/woopay/utils';
import WooPayFirstPartyAuth from 'wcpay/checkout/woopay/express-button/woopay-first-party-auth';
import { getAppearance } from 'wcpay/checkout/upe-styles';

const BUTTON_WIDTH_THRESHOLD = 140;

Expand Down Expand Up @@ -268,6 +269,7 @@ export const WoopayExpressCheckoutButton = ( {
order_id: getConfig( 'order_id' ),
key: getConfig( 'key' ),
billing_email: getConfig( 'billing_email' ),
appearance: getAppearance( 'blocks_checkout' ),
} )
.then( async ( response ) => {
if ( response?.blog_id && response?.data?.session ) {
Expand Down

0 comments on commit 464ade4

Please sign in to comment.