Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

How to Block Payment Methods Pay Pal, Klarna When Address Too Long

How to Block Payment Methods Pay Pal, Klarna When Address Too Long

Yodit
Shopify Partner
10 0 3

Hello, 

 

is it possible to block payment methods like paypal and klarna during the ckeckout process. Currently I am trying to block the checkout process when the address is too long (max. 80 characters). It is working when paying with credit card, but when trying to pay with Pay Pal the checkout process will continue. 

 

Regards,

Yodit

Replies 4 (4)

SBD_
Shopify Staff
1831 273 423

Hey @Yodit 

 

Unfortunately if they select an accelerated checkout method like PayPay before entering their shipping address, there's not much you can do.

Scott | Developer Advocate @ Shopify 

Yodit
Shopify Partner
10 0 3

Hi, 

 

thank you for your fast reply! So when paying via express checkout it is not possible, but what about the option captured in the screenshot. When I have the option to choose paypal as a payment method and i am able to enter my address. Is there a possibility to block the checkout process when clicking on the paypal buy button at the bottom? 

 

checkout_block_paypal.png

PS: The PayPal Button in the Express Checkout is just not shown in the Screenshot, but it's in the live shop. 

 

Regards, 

Yodit 

 

 

 

 

SBD_
Shopify Staff
1831 273 423

Hey @Yodit 

 

You could remove payment methods based on address length using a payment customization, or block checkout completely with a checkout validation.

Scott | Developer Advocate @ Shopify 

manuelpette
Shopify Partner
2 0 0

Hi @SBD_ ,

 

the standard checkout button changes when selecting paypal as payment gateway and in our test the checkout is not blocked when validation is not passed. 

Looks like checkout validation is not supported when using a payment gateway that is not shopify payments. Is that the case?