Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion packages/core/src/app/customer/getSupportedMethods.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ export const SUPPORTED_METHODS: string[] = [
'braintreevisacheckout',
'braintreepaypal',
'braintreepaypalcredit',
'masterpass',
'paypalcommerce',
'paypalcommercevenmo',
'paypalcommercecredit',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { type CheckoutSupport, NoopCheckoutSupport } from '../checkout';
import EmbeddedCheckoutSupport from './EmbeddedCheckoutSupport';
import isEmbedded from './isEmbedded';

const UNSUPPORTED_METHODS = ['afterpay', 'applepay', 'amazonpay', 'googlepay', 'klarna', 'masterpass'];
const UNSUPPORTED_METHODS = ['afterpay', 'applepay', 'amazonpay', 'googlepay', 'klarna'];

export default function createEmbeddedCheckoutSupport(language: LanguageService): CheckoutSupport {
return isEmbedded()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,6 @@ export function getPaymentMethodTitle(
logoUrl: cdnPath('/img/payment-providers/laybuy-checkout-header.png'),
titleText: '',
},
[PaymentMethodId.Masterpass]: {
logoUrl: 'https://masterpass.com/dyn/img/acc/global/mp_mark_hor_blk.svg',
titleText: '',
},
[PaymentMethodType.Paypal]: {
// TODO: method.id === PaymentMethodId.BraintreeVenmo should be removed after the PAYPAL-1380.checkout_button_strategies_update experiment removal
logoUrl:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ enum PaymentMethodType {
CreditCard = 'credit-card',
GooglePay = 'googlepay',
PayWithGoogle = 'paywithgoogle',
Masterpass = 'masterpass',
MultiOption = 'multi-option',
Paypal = 'paypal',
PaypalCredit = 'paypal-credit',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,35 +71,6 @@
padding: $payment-step-spacing-top 0;
}

%button-masterpass-base {
background-color: color("greys", "lightest");
background-image: url(https://masterpass.com/dyn/img/btn/global/mp_chk_btn_180x042px.svg);
background-position: 50% 50%;
background-repeat: no-repeat;
background-size: 100% 100%;
border-color: color("greys", "lightest");
border-radius: remCalc(5px);
height: remCalc(42px);
padding: 0;
width: remCalc(180px);
}

/* Masterpass accordion button */
.button-masterpass {
@extend %button-masterpass-base;

cursor: pointer;
display: none;
}

/* Masterpass widget button */
.button-masterpass-mark {
@extend %button-masterpass-base;

cursor: default;
margin: auto;
}

// KLUDGE: We need this override when Klarna modal is open because
// `scroll-behavior: smooth` conflicts with the styles injected by Klarna JS,
// cropping the content of the modal in Firefox as a result.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ export const beforeSignIn =
'{"id":"2ed45a0b-6100-4721-9098-e055ff07bd87","cart":{"id":"2ed45a0b-6100-4721-9098-e055ff07bd87","customerId":0,"email":"","currency":{"name":"US Dollars","code":"USD","symbol":"$","decimalPlaces":2},"isTaxIncluded":false,"baseAmount":225,"discountAmount":0,"cartAmount":225,"coupons":[],"discounts":[{"id":"06a16b80-81f7-46c7-810b-2a95364da824","discountedAmount":0}],"lineItems":{"physicalItems":[{"id":"06a16b80-81f7-46c7-810b-2a95364da824","parentId":null,"variantId":66,"productId":86,"sku":"ABS","name":"[Sample] Able Brewing System","url":"https://tools1696258269-testly-the-third.my-integration.zone/able-brewing-system","quantity":1,"brand":"","isTaxable":true,"imageUrl":"https://cdn.integration.zone/s-6zjee94utd/products/86/images/286/ablebrewingsystem4.1696258370.220.290.jpg?c=1","discounts":[],"discountAmount":0,"couponAmount":0,"originalPrice":225,"listPrice":225,"salePrice":225,"retailPrice":null,"extendedListPrice":225,"extendedSalePrice":225,"comparisonPrice":225,"extendedComparisonPrice":225,"isShippingRequired":true,"giftWrapping":null,"addedByPromotion":false,"isMutable":true,"options":[],"categoryNames":["Shop All","Kitchen"]}],"digitalItems":[],"giftCertificates":[],"customItems":[]},"createdTime":"2023-10-02T16:40:47+00:00","updatedTime":"2023-10-02T16:40:47+00:00","locale":"en"},"billingAddress":{},"consignments":[],"orderId":null,"shippingCostTotal":0,"shippingCostBeforeDiscount":0,"handlingCostTotal":0,"taxTotal":0,"giftWrappingCostTotal":0,"coupons":[],"taxes":[{"name":"Tax","amount":0}],"subtotal":225,"grandTotal":225,"outstandingBalance":225,"isStoreCreditApplied":true,"shouldExecuteSpamCheck":false,"giftCertificates":[],"createdTime":"2023-10-02T16:40:47+00:00","updatedTime":"2023-10-02T16:40:47+00:00","customerMessage":"","channelId":1,"fees":[],"customer":{"id":0,"isGuest":true,"email":"","firstName":"","lastName":"","fullName":"","addresses":[],"storeCredit":0,"shouldEncourageSignIn":false,"customerGroup":[]},"promotions":[],"payments":[{}]}';

export const authResponse =
'{"data":{"clientConfiguration":{"analyticsUrl":"https://origin-analytics-sand.sandbox.braintree-api.com/merchant_numeric_id","environment":"SANDBOX","merchantId":"merchant_numeric_id","assetsUrl":"https://assets.braintreegateway.com","clientApiUrl":"https://api.sandbox.braintreegateway.com:443/merchants/merchant_numeric_id/client_api","creditCard":{"supportedCardBrands":["DISCOVER","MASTERCARD","VISA","AMERICAN_EXPRESS","JCB","UNION_PAY"],"challenges":["CVV","POSTAL_CODE"],"threeDSecureEnabled":true,"threeDSecure":{"cardinalAuthenticationJWT":"authJWT"}},"applePayWeb":null,"googlePay":{"displayName":"Bigcommerce","supportedCardBrands":["VISA","MASTERCARD","AMERICAN_EXPRESS","DISCOVER"],"environment":"SANDBOX","googleAuthorization":"googleAuth"},"ideal":null,"kount":{"merchantId":null},"masterpass":null,"paypal":{"displayName":"Bigcommerce","clientId":"clientId","privacyUrl":null,"userAgreementUrl":null,"assetsUrl":"https://checkout.paypal.com","environment":"OFFLINE","environmentNoNetwork":false,"unvettedMerchant":false,"braintreeClientId":"masterclient3","billingAgreementsEnabled":true,"merchantAccountId":"bigcommerce","currencyCode":"USD","payeeEmail":null},"unionPay":null,"usBankAccount":null,"venmo":{"merchantId":"1234","accessToken":"token","environment":"SANDBOX","enrichedCustomerDataEnabled":true},"visaCheckout":{"apiKey":"apiKey","externalClientId":"sandbox_merchant_id","supportedCardBrands":["VISA","MASTERCARD","AMERICAN_EXPRESS","DISCOVER"]},"braintreeApi":null,"supportedFeatures":["TOKENIZE_CREDIT_CARDS"]}},"extensions":{"requestId":"c732ddc6-73b6-48b0-8557-f4c8ae8957ae"}}';
'{"data":{"clientConfiguration":{"analyticsUrl":"https://origin-analytics-sand.sandbox.braintree-api.com/merchant_numeric_id","environment":"SANDBOX","merchantId":"merchant_numeric_id","assetsUrl":"https://assets.braintreegateway.com","clientApiUrl":"https://api.sandbox.braintreegateway.com:443/merchants/merchant_numeric_id/client_api","creditCard":{"supportedCardBrands":["DISCOVER","MASTERCARD","VISA","AMERICAN_EXPRESS","JCB","UNION_PAY"],"challenges":["CVV","POSTAL_CODE"],"threeDSecureEnabled":true,"threeDSecure":{"cardinalAuthenticationJWT":"authJWT"}},"applePayWeb":null,"googlePay":{"displayName":"Bigcommerce","supportedCardBrands":["VISA","MASTERCARD","AMERICAN_EXPRESS","DISCOVER"],"environment":"SANDBOX","googleAuthorization":"googleAuth"},"ideal":null,"kount":{"merchantId":null},"paypal":{"displayName":"Bigcommerce","clientId":"clientId","privacyUrl":null,"userAgreementUrl":null,"assetsUrl":"https://checkout.paypal.com","environment":"OFFLINE","environmentNoNetwork":false,"unvettedMerchant":false,"braintreeClientId":"masterclient3","billingAgreementsEnabled":true,"merchantAccountId":"bigcommerce","currencyCode":"USD","payeeEmail":null},"unionPay":null,"usBankAccount":null,"venmo":{"merchantId":"1234","accessToken":"token","environment":"SANDBOX","enrichedCustomerDataEnabled":true},"visaCheckout":{"apiKey":"apiKey","externalClientId":"sandbox_merchant_id","supportedCardBrands":["VISA","MASTERCARD","AMERICAN_EXPRESS","DISCOVER"]},"braintreeApi":null,"supportedFeatures":["TOKENIZE_CREDIT_CARDS"]}},"extensions":{"requestId":"c732ddc6-73b6-48b0-8557-f4c8ae8957ae"}}';
1 change: 0 additions & 1 deletion packages/locale/src/translations/da.json
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,6 @@
"humm_not_processable_error": "Humm kan ikke behandle din betaling for denne ordre. Vælg en anden betalingsmetode.",
"klarna_continue_action": "Fortsæt med Klarna",
"klarna_name_text": "Klarna",
"masterpass_name_text": "Masterpass",
"mollie_unsupported_method_error": "Denne betalingsmetode kan ikke bruges til køb af digitale produkter. Kontakt kundesupport, eller prøv igen.",
"opy_continue_action": "Fortsæt med {methodName}",
"opy_widget_slogan": "Køb nu. Betal smartere.",
Expand Down
1 change: 0 additions & 1 deletion packages/locale/src/translations/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,6 @@
"humm_not_processable_error": "Humm kann Ihre Zahlung für diese Bestellung nicht verarbeiten, bitte wählen Sie eine andere Zahlungsmethode aus.",
"klarna_continue_action": "Weiter mit Klarna",
"klarna_name_text": "Klarna",
"masterpass_name_text": "Masterpass",
"mollie_unsupported_method_error": "Diese Zahlungsmethode kann nicht für den Kauf digitaler Produkte verwendet werden. Bitte wenden Sie sich an den Kunden-Support oder versuchen Sie es erneut.",
"opy_continue_action": "Weiter mit {methodName}",
"opy_widget_slogan": "Jetzt kaufen. Später bezahlen.",
Expand Down
1 change: 0 additions & 1 deletion packages/locale/src/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,6 @@
"humm_not_processable_error": "Humm cannot process your payment for this order, please select another payment method.",
"klarna_continue_action": "Continue with Klarna",
"klarna_name_text": "Klarna",
"masterpass_name_text": "Masterpass",
"mollie_unsupported_method_error": "This payment method cannot be used towards the purchase of digital products. Please contact customer support or try again.",
"opy_continue_action": "Continue with {methodName}",
"opy_widget_slogan": "Buy now. Pay smarter.",
Expand Down
1 change: 0 additions & 1 deletion packages/locale/src/translations/es-419.json
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,6 @@
"humm_not_processable_error": "Humm no puede procesar el pago de este pedido; selecciona otro método de pago.",
"klarna_continue_action": "Continuar con Klarna",
"klarna_name_text": "Klarna",
"masterpass_name_text": "Masterpass",
"mollie_unsupported_method_error": "No se puede usar este método de pago para la compra de productos digitales. Comunícate con atención al cliente o vuelve a intentarlo.",
"opy_continue_action": "Continuar con {methodName}",
"opy_widget_slogan": "Compra ahora. Paga de manera más inteligente.",
Expand Down
1 change: 0 additions & 1 deletion packages/locale/src/translations/es-AR.json
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,6 @@
"humm_not_processable_error": "Humm no puede procesar el pago de este pedido; selecciona otro método de pago.",
"klarna_continue_action": "Continuar con Klarna",
"klarna_name_text": "Klarna",
"masterpass_name_text": "Masterpass",
"mollie_unsupported_method_error": "No se puede usar este método de pago para la compra de productos digitales. Comunícate con atención al cliente o vuelve a intentarlo.",
"opy_continue_action": "Continuar con {methodName}",
"opy_widget_slogan": "Compra ahora. Paga de manera más inteligente.",
Expand Down
1 change: 0 additions & 1 deletion packages/locale/src/translations/es-CL.json
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,6 @@
"humm_not_processable_error": "Humm no puede procesar el pago de este pedido; selecciona otro método de pago.",
"klarna_continue_action": "Continuar con Klarna",
"klarna_name_text": "Klarna",
"masterpass_name_text": "Masterpass",
"mollie_unsupported_method_error": "No se puede usar este método de pago para la compra de productos digitales. Comunícate con atención al cliente o vuelve a intentarlo.",
"opy_continue_action": "Continuar con {methodName}",
"opy_widget_slogan": "Compra ahora. Paga de manera más inteligente.",
Expand Down
1 change: 0 additions & 1 deletion packages/locale/src/translations/es-CO.json
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,6 @@
"humm_not_processable_error": "Humm no puede procesar el pago de este pedido; selecciona otro método de pago.",
"klarna_continue_action": "Continuar con Klarna",
"klarna_name_text": "Klarna",
"masterpass_name_text": "Masterpass",
"mollie_unsupported_method_error": "No se puede usar este método de pago para la compra de productos digitales. Comunícate con atención al cliente o vuelve a intentarlo.",
"opy_continue_action": "Continuar con {methodName}",
"opy_widget_slogan": "Compra ahora. Paga de manera más inteligente.",
Expand Down
1 change: 0 additions & 1 deletion packages/locale/src/translations/es-LA.json
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,6 @@
"humm_not_processable_error": "Humm no puede procesar el pago de este pedido; selecciona otro método de pago.",
"klarna_continue_action": "Continuar con Klarna",
"klarna_name_text": "Klarna",
"masterpass_name_text": "Masterpass",
"mollie_unsupported_method_error": "No se puede usar este método de pago para la compra de productos digitales. Comunícate con atención al cliente o vuelve a intentarlo.",
"opy_continue_action": "Continuar con {methodName}",
"opy_widget_slogan": "Compra ahora. Paga de manera más inteligente.",
Expand Down
1 change: 0 additions & 1 deletion packages/locale/src/translations/es-MX.json
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,6 @@
"humm_not_processable_error": "Humm no puede procesar el pago de este pedido; selecciona otro método de pago.",
"klarna_continue_action": "Continuar con Klarna",
"klarna_name_text": "Klarna",
"masterpass_name_text": "Masterpass",
"mollie_unsupported_method_error": "No se puede usar este método de pago para la compra de productos digitales. Comunícate con atención al cliente o vuelve a intentarlo.",
"opy_continue_action": "Continuar con {methodName}",
"opy_widget_slogan": "Compra ahora. Paga de manera más inteligente.",
Expand Down
1 change: 0 additions & 1 deletion packages/locale/src/translations/es-PE.json
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,6 @@
"humm_not_processable_error": "Humm no puede procesar el pago de este pedido; selecciona otro método de pago.",
"klarna_continue_action": "Continuar con Klarna",
"klarna_name_text": "Klarna",
"masterpass_name_text": "Masterpass",
"mollie_unsupported_method_error": "No se puede usar este método de pago para la compra de productos digitales. Comunícate con atención al cliente o vuelve a intentarlo.",
"opy_continue_action": "Continuar con {methodName}",
"opy_widget_slogan": "Compra ahora. Paga de manera más inteligente.",
Expand Down
1 change: 0 additions & 1 deletion packages/locale/src/translations/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,6 @@
"humm_not_processable_error": "Humm no puede procesar su pago para este pedido; seleccione otro método de pago.",
"klarna_continue_action": "Continuar con Klarna",
"klarna_name_text": "Klarna",
"masterpass_name_text": "Masterpass",
"mollie_unsupported_method_error": "Este método de pago no puede utilizarse para la compra de productos digitales. Ponte en contacto con el equipo de Atención al Cliente o inténtalo de nuevo.",
"opy_continue_action": "Continuar con {methodName}",
"opy_widget_slogan": "Compra ahora y paga de forma más inteligente.",
Expand Down
1 change: 0 additions & 1 deletion packages/locale/src/translations/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,6 @@
"humm_not_processable_error": "Humm ne peut pas traiter votre paiement pour cette commande, veuillez sélectionner un autre mode de paiement.",
"klarna_continue_action": "Poursuivre avec Klarna",
"klarna_name_text": "Klarna",
"masterpass_name_text": "Masterpass",
"mollie_unsupported_method_error": "Ce mode de paiement ne peut pas être utilisé pour l'achat de produits numériques. Veuillez contacter l'assistance client ou réessayer.",
"opy_continue_action": "Continuer avec {methodName}",
"opy_widget_slogan": "Achetez maintenant. Payez malin.",
Expand Down
1 change: 0 additions & 1 deletion packages/locale/src/translations/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,6 @@
"humm_not_processable_error": "Humm non è in grado di elaborare il pagamento per questo ordine: seleziona un altro metodo di pagamento.",
"klarna_continue_action": "Prosegui con Klarna",
"klarna_name_text": "Klarna",
"masterpass_name_text": "Masterpass",
"mollie_unsupported_method_error": "Questo metodo di pagamento non può essere utilizzato per l'acquisto di prodotti digitali. Contatta l'assistenza clienti o riprova.",
"opy_continue_action": "Continua con {methodName}",
"opy_widget_slogan": "Acquista ora. Paga in modo più intelligente.",
Expand Down
1 change: 0 additions & 1 deletion packages/locale/src/translations/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,6 @@
"humm_not_processable_error": "この注文を処理できません。別の支払方法を選択してください。",
"klarna_continue_action": "Klarnaで続ける",
"klarna_name_text": "Klarna",
"masterpass_name_text": "Masterpass",
"mollie_unsupported_method_error": "この支払方法はデジタル製品の購入には使用できません。カスタマーサポートに連絡するか、もう一度やり直してください。",
"opy_continue_action": "{methodName}で続ける",
"opy_widget_slogan": "Pay smarterで今すぐ購入",
Expand Down
1 change: 0 additions & 1 deletion packages/locale/src/translations/nl.json
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,6 @@
"humm_not_processable_error": "Humm kan uw betaling voor deze bestelling niet verwerken. Selecteer een andere betaalmethode.",
"klarna_continue_action": "Doorgaan met Klarna",
"klarna_name_text": "Klarna",
"masterpass_name_text": "Masterpass",
"mollie_unsupported_method_error": "Deze betaalmethode kan niet worden gebruikt voor de aankoop van digitale producten. Neem contact op met de klantenservice of probeer het opnieuw.",
"opy_continue_action": "Doorgaan met {methodName}",
"opy_widget_slogan": "Nu kopen, slimmer betalen.",
Expand Down
1 change: 0 additions & 1 deletion packages/locale/src/translations/no.json
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,6 @@
"humm_not_processable_error": "Humm kan ikke behandle betalingen din for denne bestillingen. Velg en annen betalingsmetode.",
"klarna_continue_action": "Fortsett med Klarna",
"klarna_name_text": "Klarna",
"masterpass_name_text": "Masterpass",
"mollie_unsupported_method_error": "Denne betalingsmåten kan ikke brukes til kjøp av digitale produkter. Kontakt kundestøtte eller prøv igjen.",
"opy_continue_action": "Fortsett med {methodName}",
"opy_widget_slogan": "Kjøp nå. Betal smartere.",
Expand Down
1 change: 0 additions & 1 deletion packages/locale/src/translations/pl.json
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,6 @@
"humm_not_processable_error": "Firma Humm nie może zrealizować płatności za to zamówienie, proszę wybrać inną metodę płatności.",
"klarna_continue_action": "Kontynuuj pracę z Klarną",
"klarna_name_text": "Klarna",
"masterpass_name_text": "Masterpass",
"mollie_unsupported_method_error": "Ta metoda płatności nie może być użyta do zakupu produktów cyfrowych. Skontaktuj się z działem obsługi klienta lub spróbuj ponownie.",
"opy_continue_action": "Kontynuuj z {methodName}.",
"opy_widget_slogan": "Kupuj teraz. Płać mądrzej.",
Expand Down
1 change: 0 additions & 1 deletion packages/locale/src/translations/pt-BR.json
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,6 @@
"humm_not_processable_error": "O Humm não pode processar o pagamento do pedido; selecione outro método de pagamento.",
"klarna_continue_action": "Continuar com o Klarna",
"klarna_name_text": "Klarna",
"masterpass_name_text": "Masterpass",
"mollie_unsupported_method_error": "Esta forma de pagamento não pode ser usada para a compra de produtos digitais. Entre em contato com o atendimento ao cliente ou tente novamente.",
"opy_continue_action": "Continuar com {methodName}",
"opy_widget_slogan": "Compre agora. Pague com mais inteligência.",
Expand Down
1 change: 0 additions & 1 deletion packages/locale/src/translations/pt.json
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,6 @@
"humm_not_processable_error": "O Humm não pode processar o pagamento do pedido; selecione outro método de pagamento.",
"klarna_continue_action": "Continuar com o Klarna",
"klarna_name_text": "Klarna",
"masterpass_name_text": "Masterpass",
"mollie_unsupported_method_error": "Esta forma de pagamento não pode ser usada para a compra de produtos digitais. Entre em contato com o atendimento ao cliente ou tente novamente.",
"opy_continue_action": "Continuar com {methodName}",
"opy_widget_slogan": "Compre agora. Pague com mais inteligência.",
Expand Down
Loading