Shopify Scripts → PayLogic Rules

Paste your Shopify payment customization Ruby on the left. We’ll show you the equivalent PayLogic rules on the right. Everything runs in your browser — nothing is sent to a server.

Try an example:
Your Shopify Script (Ruby)
PayLogic rules

Paste your Script on the left to see the detected rules here.

Want these rules running on your store?

Install PayLogic from the Shopify App Store. Use the built-in importer to load these rules with one click, or rebuild them in the visual editor.

Install PayLogic — free trial

What this converter does

This is the same parser that runs inside the PayLogic app under Import from Scripts. It detects the common payment-customization patterns found in production Shopify Scripts and maps each one to the equivalent PayLogic rule.

It covers all three Scripts actions — hide, rename, and move (reorder) — paired with conditions for cart total, item count, shipping country, currency, shipping method title, first-time customers, customer order count, customer lifetime spend, customer tags (presence and absence, single and multi-tag), and product tags. Both single-line { |gw| ... } blocks and multi-line do |gw| ... end blocks parse. Conditions can be combined with && (AND) or || (OR), and unless negation is transformed into the equivalent missing-tag or returning-customer condition where the inverse maps cleanly. Custom Ruby logic the parser can’t recognize is flagged with a warning and skipped — those need to be rebuilt manually in PayLogic’s visual editor.

Nothing is uploaded. The parser is JavaScript that runs entirely in your browser tab. You can verify by opening browser DevTools and watching the Network panel while you paste.