Payment FunctionsB2B CommerceCustomer Segmentation$285-$335180-230

Setting Up B2B vs. B2C Payment Option Filtering

Use this template
Mountain landscape representing B2B vs B2C payment filtering

Here's the deal: you're selling to restaurants AND regular folks, and they want completely different payment options at checkout. Your wholesale customers need invoice terms and purchase orders. Your retail customers want credit cards and digital wallets. Show both groups everything? You've just created a confusing mess.

Step-by-step implementation
Guide icon

Access the Payment Functions Section

  1. From your Shopify admin, open the Sway Functions app
  2. You'll see Payment Functions card on the dashboard. Click Create.
  3. Select "Conditionally Remove Gateways" option
Try this template
Create a New Payment Function for B2B Customers

Create a New Payment Function for B2B Customers

  1. Click "Create function"
  2. From the modal, select "Conditionally Remove Gateways"
  3. You'll be taken to the function editor
Configure Basic Settings

Configure Basic Settings

  1. Enter a descriptive campaign name (e.g., "Wholesale Account Payment Options")
  2. Set the function status to "Active"
Define B2B Customer Segment

Define B2B Customer Segment

  1. Under "Customer Qualifier," select "Customer Tags"
  2. Choose the condition "contains"
  3. Enter tags that identify B2B customers (e.g., "wholesale", "b2b", "approved_account")
  4. This ensures the function only applies to tagged wholesale accounts
Configure B2B Payment Options

Configure B2B Payment Options

  1. Under "Payment Gateway Actions," select "Show Only"
  2. Choose "Gateway Name Contains"
  3. Add your B2B-appropriate payment options (e.g., "Invoice", "Purchase Order", "Net 30")
  4. This ensures B2B customers only see wholesale-appropriate payment methods
Create a Second Function for B2C Customers

Create a Second Function for B2C Customers

  1. Create a new payment function
  2. Name it "Retail Customer Payment Options"
  3. Under "Customer Qualifier," select "Customer Tags"
  4. Choose the condition "does not contain"
  5. Enter the same B2B identifier tags
  6. Under "Payment Gateway Actions," configure to show only consumer payment methods
  7. Add consumer payment options (e.g., "Credit Card", "PayPal", "Shop Pay")
Company Logo
“The payment customization saved us so much hassle. Being able to hide and reorder payment methods boosted our conversions instantly.”
Marcus D. profile picture
Marcus D.
Founder at Bold Threads
cloud decoration

Here's the deal: you're selling to restaurants AND regular folks, and they want completely different payment options at checkout. Your wholesale customers need invoice terms and purchase orders. Your retail customers want credit cards and digital wallets. Show both groups everything? You've just created a confusing mess.

We solve this by filtering payment options based on who's buying. Standard Shopify checkout doesn't do customer-specific payments, but Sway Functions does. You can detect B2B versus B2C customers and show each group exactly what they need.

  1. From your Shopify admin, open the Sway Functions app
  2. You'll see Payment Functions card on the dashboard. Click Create.
  3. Select "Conditionally Remove Gateways" option

Here's the deal: you're selling to restaurants AND regular folks, and they want completely different payment options at checkout. Your wholesale customers need invoice terms and purchase orders. Your retail customers want credit cards and digital wallets. Show both groups everything? You've just created a confusing mess.

We solve this by filtering payment options based on who's buying. Standard Shopify checkout doesn't do customer-specific payments, but Sway Functions does. You can detect B2B versus B2C customers and show each group exactly what they need.