| 开发者 | otmaaan91 |
|---|---|
| 更新时间 | 2026年10月21日 20:40 |
| PHP版本: | 8.1 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
[givasso_form]
Available attributes:
| Attribute | Default | Values |
|---|---|---|
| theme | givasso | givasso, classic, ocean, sunset, minimal |
| layout | card | card, inline, flat |
| amounts | 10,25,50,100 | comma-separated integers |
| currency | EUR | EUR, USD, GBP, MAD, CHF |
| campaign | (empty) | campaign slug |
| title | Faire un don | free text |
| button_text | Donner maintenant | free text |
| show_title | yes | yes, no |
| gateway | (admin setting) | stripe, helloasso |
Campaign progress bar
[givasso_total campaign="my-campaign" display="bar"]
display accepts amount, count or bar.
Full campaign (progress bar + form)
[givasso_campaign campaign="my-campaign"]
Customizing templates
Copy any file from the plugin templates/ folder into a givasso/ folder in your theme, keeping the same path. For example:
templates/form/card.php → your-theme/givasso/form/card.phptemplates/campaign/campaign.php → your-theme/givasso/campaign/campaign.phptemplates/email/thank-you.php → your-theme/givasso/email/thank-you.phpgivasso_loaded (action) — Givasso is ready; register your extension here.givasso_form_start, givasso_form_after_amounts, givasso_form_after_donor_fields, givasso_form_before_submit, givasso_form_end (actions, inside the form), and the JavaScript events givasso:validate, givasso:before-submit, givasso:button-label.givasso_checkout_data, givasso_checkout_validation, givasso_pre_checkout_url, givasso_stripe_checkout_params, givasso_helloasso_checkout_params (filters).givasso_stripe_webhook_events (filter), givasso_stripe_webhook and givasso_helloasso_webhook (actions, signature already verified).givasso_donation_insert_data (filter), givasso_donation_completed and givasso_donation_refunded (actions).givasso_send_thank_you_email, givasso_email_placeholders, givasso_thank_you_email (filters).givasso_send_admin_notification, givasso_admin_notification_email (filters).givasso_donor_erased (action, after a donor is anonymized).givasso_admin_menu, givasso_settings_tabs, givasso_settings_saved, givasso_donations_columns, givasso_donors_columns, givasso_dashboard_cards, givasso_dashboard_after_stats.givasso_client_ip (real IP behind a proxy), givasso_stripe_webhook_url (public notification URL).wp_mail). This email can be disabled in Givasso › Settings › Email.
[givasso_form] to any page)4242 4242 4242 4242, then switch to live modehttps://your-site.com/wp-json/givasso/v1/webhook
Events to enable: checkout.session.completed, charge.refunded. Then paste the signing secret in Givasso › Settings › Stripe › Manual setup, for test and live mode separately.
HelloAsso setup
Yes. Givasso is free and licensed under the GPL. Only your payment gateway fees apply: Stripe's transaction fees if you use Stripe; HelloAsso takes no commission on donations.
No. HelloAsso is free for French nonprofits. Donors may optionally leave a voluntary contribution to HelloAsso during payment.
No. Givasso records donations and sends a thank-you email, which is not a tax receipt.
Yes. Each shortcode generates an independent form with unique identifiers.
Yes. Choose from 5 built-in themes and 3 layouts, set your colors, corners and button style in Givasso › Settings › Appearance, or override the templates in your theme (see "Customizing templates"). The flat layout (no card, transparent background) blends into any design.
Yes, in Givasso › Settings › General › Information requested from donors. Each one can be hidden (default), optional or required. Every extra field makes the form longer, so only ask for what your association really needs. The address and phone number appear in Givasso › Donors.
Yes, in Givasso › Settings › Email. You can also edit its subject and message, and use the tags {prenom}, {nom}, {montant}, {association}, {campagne} and {date}.
Givasso records a donation when Stripe notifies your site that the payment succeeded. In Givasso › Settings › Stripe, check that payment notifications are configured for the current mode (Test or Live) and look at "Last notification received". If needed, click Save and configure automatically again.
Givasso uses your site's email system. If your site's emails end up in spam or are not delivered, install an SMTP plugin to send emails through your email provider.
All SQL queries use $wpdb->prepare(). Output is escaped. Forms are protected by nonces and rate limiting. Stripe notifications are verified by HMAC-SHA256 signature. HelloAsso notifications are verified by signature or HelloAsso's IP address, or else each payment is confirmed directly with the HelloAsso API before being recorded (sites behind Cloudflare or a proxy).
Givasso is independent of WooCommerce. Both plugins can coexist without conflict.
givasso_send_admin_notification and givasso_admin_notification_email filters, givasso_donor_erased actionx-ha-signature)givasso_donation_completed hook is always a decimal numbergivasso_stripe_webhook_url filterdonor_details in the givasso_donation_completed action datagivasso_donation_completed action and givasso_send_thank_you_email filter[givasso_total] alone, [givasso_campaign] for an ended campaign or with show_form="no", and forms inside page builders (Elementor)[givasso_campaign] now uses the Givasso theme by default, like [givasso_form]your-theme/givasso/form/)flat layout — card-less form with transparent backgroundfont-family: inherit)[givasso_campaign] — integrated form automatically uses flat layoutgateway and frequency shortcode attributes silently ignoredgivasso (was classic in ShortcodeManager)charge.refunded webhook[givasso_campaign] and [givasso_total display="bar"] shortcodesgateway shortcode attribute (stripe, helloasso)Givasso/1.0