How to Ask UnzerAI for Integration Help
Your AI-powered integration companion when you ask the right questions.
Modern AI assistants like Cursor, Claude, and ChatGPT can access and understand our comprehensive Unzer documentation in real-time. By analyzing hundreds of pages, code examples, and integration patterns, they become your personal integration expert available 24/7.
But there’s a catch: the quality of their answers depends entirely on how you ask.
This guide shows you how to ask better questions and get better answers. Learn how to transform vague questions into precise prompts that unlock accurate, actionable guidance and save hours of documentation searching.
The power of asking the right question
Specific questions yield precise answers. The more context and detail you provide, the more targeted and actionable the guidance you’ll receive.
Specificity makes all the difference
What makes a good question
Every helpful question should include:
Understanding v1 vs v2
Unzer offers two major versions of Payment Pages and UI Components. They are not interchangeable and have completely different implementations.
Always specify your version when asking questions!
Key differences
Here’s a quick comparison to help you identify which version you’re working with and what to specify in your questions:
Payment Pages
UI Components
When to specify version
Always specify version when asking about:
- Payment Pages or UI Components integration
- Client-side implementation
- Migration paths
Question templates
Ready-to-use templates you can copy and customize for your specific needs.
Quick reference
A simple formula to structure any Unzer-related question effectively:
I'm implementing [INTEGRATION TYPE] [v1/v2] using [LANGUAGE/SDK]
for [USE CASE]. How do I [SPECIFIC ACTION]?
By scenario
Real-world examples tailored to common integration situations. Each template includes the context and specificity needed for accurate AI responses:
Initial Integration
Starting a new integration from scratch:
I'm starting a Payment Pages v2 integration using PHP SDK
for an e-commerce store. I want to accept card and PayPal.
What's the recommended server-side setup?
Debugging
Troubleshooting errors or unexpected behavior:
I'm using UI Components v2 with web components.
When I submit <unzer-card>, I get error API.810.100.100.
My initialization: <unzer-payment publicKey="s-pub-xxx">.
What's wrong?
Feature Implementation
Adding specific payment features to existing integration:
Using Payment Pages v2 with Java SDK,
how do I configure recurring payments for subscription billing?
Migration
Moving from one version to another:
I'm migrating from UI Components v1 to v2.
What's the v2 equivalent of unzerInstance.Card().createResource()?
Effective question examples
Learn from real-world examples that demonstrate the difference between vague requests and precise, actionable questions.
Questions that get great answers
Example questions for common scenarios
Ready-to-use question templates for the most common payment integration tasks. Copy, customize, and use these as starting points for your own questions.
Card Payments
I'm implementing one-time card payments using UI Components v2.
How do I handle the complete flow including 3D Secure,
payment confirmation, and error handling?
Show client-side web component code and server-side PHP SDK.
Recurring Payments
I need subscription billing with Payment Pages v2:
- Monthly recurring charges
- Card with stored credentials
- Handle failed payments
How do I structure the initial payment page for recurring use?
Show PHP SDK code.
Refunds
Using PHP SDK v3.2, how do I:
1. Partially refund a completed charge?
2. Handle the API response?
Show code examples.
Next steps
Ready to start? Here’s your path:
- Understand your use case: Define what you want to accomplish (one-time payments, subscriptions, refunds, etc.)
- Get a test account: Set up your Unzer test environment
- Ask AI which integration fits best: Use the prompting techniques above to get personalized recommendations
- Start building: Follow AI guidance with your chosen integration method
