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 cart total thresholds, first-time customers, customer tag membership, shipping country, and item count conditions paired with hide actions. Unsupported patterns (custom Ruby logic, API calls, complex math) are flagged in the output but 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.