WooCommercefor WooCommerce
for WooCommerce
SEPA QR Codes
Seamlessly integrate GiroCode into your WordPress shop. Automatic SEPA QR codes on invoices and order confirmations.
Benefits
Why GiroCode for WooCommerce?
Faster Payments
Customers scan the QR code and transfer in seconds - no manual data entry.
Fewer Errors
Automatically generated payment data eliminates typos in IBAN and reference.
Lower Costs
SEPA transfers often cost less than credit card or PayPal fees.
Automation
QR codes are automatically added to invoices and order confirmations.
Integration
4 Steps to Success
Integration takes just a few minutes
1
Create API Account
Register for free and receive your API credentials.
2
Install Plugin
Download our WooCommerce plugin or integrate the API manually.
3
Configure
Enter your IBAN and business details - done!
4
Generate QR Codes
From now on, GiroCodes automatically appear on all invoices.
Code Example
PHP Integration
Copy this code to your functions.php or create your own plugin
functions.php
<?php
/**
* GiroCode Integration fuer WooCommerce
* Fuegt SEPA QR-Code zu Rechnungen hinzu
*/
// API-Konfiguration
define('GIROCODE_API_URL', 'https://api.girocode-api.de/generate');
define('GIROCODE_USER', 'ihr_username');
define('GIROCODE_SECRET', 'ihr_api_secret');
/**
* GiroCode fuer eine Bestellung generieren
*/
function generate_girocode_for_order($order_id) {
$order = wc_get_order($order_id);
$params = [
'user' => GIROCODE_USER,
'secret' => GIROCODE_SECRET,
'iban' => 'DE89370400440532013000',
'paymentrecipient' => 'Ihre Firma GmbH',
'purpose' => 'Bestellung ' . $order->get_order_number(),
'amount' => $order->get_total(),
'imageformat' => 'png',
'dimension' => '256',
'output' => 'json'
];
$response = wp_remote_post(GIROCODE_API_URL, [
'body' => json_encode($params),
'headers' => ['Content-Type' => 'application/json'],
'timeout' => 30
]);
if (is_wp_error($response)) {
return false;
}
$body = json_decode(wp_remote_retrieve_body($response), true);
if ($body['success'] && isset($body['data']['data'])) {
return $body['data']['data']; // Data URL fuer <img src="">
}
return false;
}
/**
* GiroCode in E-Mail-Rechnungen einfuegen
*/
add_action('woocommerce_email_after_order_table', function($order, $sent_to_admin, $plain_text, $email) {
// Nur bei Kunden-Rechnungen
if ($email->id !== 'customer_invoice') return;
if ($plain_text) return;
$qr_code = generate_girocode_for_order($order->get_id());
if ($qr_code) {
echo '<div style="text-align: center; margin: 20px 0;">';
echo '<h3>Schnell bezahlen mit GiroCode</h3>';
echo '<p>Scannen Sie den QR-Code mit Ihrer Banking-App:</p>';
echo '<img src="' . esc_attr($qr_code) . '" alt="GiroCode" style="max-width: 200px;" />';
echo '</div>';
}
}, 10, 4);
?>Features
What's Included?
Automatic generation on order
Email integration
PDF invoice support
Order number as reference
Multiple image formats (SVG, PNG, JPG)
Customizable size
GDPR compliant
Multisite capable
Comparison
GiroCode vs. Manual Transfer
Without GiroCode
Manual
Customer must type IBAN
Copy reference manually
Enter amount manually
Frequent typos
Payments hard to match
With GiroCode
Automatic
One scan - all data transferred
Order number automatically filled
Amount pre-filled
No typos possible
Instant payment matching