Skip to content

Commit

Permalink
fix: Remove DPM Canada form validation (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
julianajlk authored May 6, 2024
1 parent 0de1892 commit bc3becb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/payment/checkout/payment-form/utils/form-validators.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export function validateCountryPaymentMethodCompatibility(
// For Klarna, there is validation on the Stripe API level,
// which is handled with error code 'dynamic-payment-methods-country-not-compatible'
if (isDynamicPaymentMethodsEnabled && stripeSelectedPaymentMethod === 'affirm') {
const countryListCompatibleAffirm = ['CA', 'US'];
const countryListCompatibleAffirm = ['US']; // leaving this is as list in case in the future we have Canada business compatibility
if (!countryListCompatibleAffirm.includes(selectedCountry)) {
errors.country = 'payment.form.errors.dynamic_payment_methods_not_compatible.country';
}
Expand Down

0 comments on commit bc3becb

Please sign in to comment.