How to block a payment method for specific products

Daniel71
Tourist
8 2 0

We would like to disable a specific payment method when specially tagged products are in the cart. The problem is that one of our external payment methods (Klarna) can only auth a credit card for 28 days, but in the case of items available for pre-order, the items might not become available for two months or more. So we would like to disable Klarna when the cart includes products that have specific tags. Is this possible? (note: we are a Plus store)

0 Likes
eitan_sperling
New Member
3 0 0

I'm trying to get help with this exact issue. @KristiAtKlarna maybe you can help us? Thank you!

0 Likes
KristiAtKlarna
Shopify Partner
69 4 13

Hi @eitan_sperling -

Hiding a payment provider based on products in the cart can be done with custom Shopify scripts, see https://help.shopify.com/en/manual/apps/apps-by-shopify/script-editor, but custom scripts are only available for Shopify Plus merchants.  If you are Shopify Plus and need further examples or support, please let us know; you can open a support case with us by emailing: skosm@klarna.com

0 Likes
LastNut
New Member
4 0 0

Hi did you manage to do this? Please help?

 

0 Likes
LastNut
New Member
4 0 0

did you manage to get any help with this? Any advice would be appreciated.....:)

0 Likes
KristiAtKlarna
Shopify Partner
69 4 13

Hi @LastNut ,

Is your store Shopify Plus?  If so, you can write custom scripts via the "Script Editor" app in your Shopify store.  Shopify provides starting code examples, but Klarna specific examples also documented at: "Shopify Plus: custom scripts " section at https://x.klarnacdn.net/plugins/Klarna%20Payments%20on%20Shopify%20-%20Merchant%20Guide.pdf

0 Likes
LastNut
New Member
4 0 0

not Shopify Plus 

 

0 Likes
KristiAtKlarna
Shopify Partner
69 4 13

Hi again @LastNut ,

Unfortunately as your store is not Shopify Plus, Shopify doesn't support customizations to your checkout. 

0 Likes
LastNut
New Member
4 0 0

so are you able to add the code yourself?

 

0 Likes
KristiAtKlarna
Shopify Partner
69 4 13

@LastNut - No, we are not able to add code, as it is Shopify code that serves the Shopify checkout page displaying the payment methods, so we aren't able to run code to change that page if not supported by Shopify.

0 Likes