ReturnSift

Pairing ยท 2026-12-04

Can you combine Shopify Functions with Shop Pay and accelerated checkout? Rules, timing and conflicts

Short answer: yes, Shopify Functions and Shop Pay and accelerated checkout can run on the same store, and most stores in this niche run both. The work is in the overlap: functions run inside checkout for every buyer; shop pay changes which checkout path the buyer experiences.

How Shopify Functions works

Functions are small programs that run on Shopify's own servers at the moment a cart or checkout is evaluated. They power discount rules, cart transforms that build bundles, payment customisation that hides or reorders gateways, delivery customisation and checkout validation, and they replaced Shopify Scripts.

How Shop Pay and accelerated checkout works

Shop Pay stores a buyer's email, payment and shipping details and turns checkout into a short confirmation instead of a form. It shows up as an express button on the product page and cart, and as the first option inside checkout. Shop Pay Installments, run through Affirm in the US, splits eligible orders into four interest-free payments.

What the evidence says about Shopify Functions

Discount functions follow the combination rules set in the admin: whether two discounts can combine is a store setting, not something the function decides on its own.

A function takes a GraphQL input query describing the cart and returns JSON instructions. It never touches the page, which is why it is upgrade-safe where script tags were not.

Shopify Scripts stopped running on June 30, 2026, so discount and shipping logic that lived in a store's Ruby scripts had to be re-expressed as functions, usually one function per app rather than one file per store.

And about Shop Pay and accelerated checkout

An express button click skips the cart entirely on many themes, so anything the store normally does in the cart, gift notes, upsells, warnings, is bypassed by design.

Shopify claims Shop Pay lifts conversion by up to 50 percent against guest checkout. That is Shopify's own study and its own fine print, and the lift concentrates in returning buyers on mobile whose details are already saved.

Shop Promise, the delivery-date estimate attached to Shop Pay, is generated from Shopify's shipping network data, which means the date on the button is a commitment the warehouse gets judged against.

Where they collide

Functions run inside checkout for every buyer; Shop Pay changes which checkout path the buyer experiences. A payment customisation function that hides a gateway has to behave correctly inside the accelerated flow too, and a discount function sees a Shop Pay order's cart the same as any other, which is the point and occasionally the surprise.

Where Shopify Functions goes wrong on its own

The other failure is subtler: writing a function that is technically correct and commercially wrong, because it applies a discount the marketing calendar retired, at a scale the old Script never reached. Functions run on every cart. Errors do too.

Where Shop Pay and accelerated checkout goes wrong on its own

The other failure is ignoring what express checkout bypasses. A buyer who taps the button on the product page never sees the cart, its gift options, its warnings, its carefully placed add-ons. Stores discover this in the gift-note complaints first.

The order practitioners run them in

Test each function against an accelerated checkout order explicitly. The standard test cart is a card order, and the gap only shows up in production otherwise.

A check you can run this week

List the discount and shipping behaviours the store actually relies on this quarter, from order data rather than from the Scripts file, and make the function list match that list. Anything in the file that is not in the data is a candidate for deletion.

Related reading: Does Shopify Functions help with reverse logistics cost? What the evidence and practitioners say and Does Shop Pay and accelerated checkout help with page speed and conversion claims? What the evidence and practitioners say.

Frequently asked questions

Can you combine Shopify Functions with Shop Pay and accelerated checkout?

Yes, with the overlap managed. Functions run inside checkout for every buyer; Shop Pay changes which checkout path the buyer experiences. A payment customisation function that hides a gateway has to behave correctly inside the accelerated flow too, and a discount function sees a Shop Pay order's cart the same as any other, which is the point and occasionally the surprise.

What breaks first when Shopify Functions and Shop Pay and accelerated checkout run together?

Functions run inside checkout for every buyer; Shop Pay changes which checkout path the buyer experiences. Test each function against an accelerated checkout order explicitly. The standard test cart is a card order, and the gap only shows up in production otherwise.

Which do you set up first, Shopify Functions or Shop Pay and accelerated checkout?

Test each function against an accelerated checkout order explicitly. The standard test cart is a card order, and the gap only shows up in production otherwise.

What is the most common mistake with Shopify Functions in this pairing?

The other failure is subtler: writing a function that is technically correct and commercially wrong, because it applies a discount the marketing calendar retired, at a scale the old Script never reached. Functions run on every cart. Errors do too.