'Donors choose: they can give a name or stay anonymous', 'require_name' => 'Donors must give a name', 'force_anonymous' => 'Everyone is anonymous (no names are collected or stored)', ); public static function render(): void { Admin::open( 'StreamGoals settings' ); $s = Settings::all(); $cur = Admin::currency(); echo '
Connected (' . esc_html( 'live' === $s['paypal_mode'] ? 'Live' : 'Sandbox' ) . ').
' : 'Not connected yet. Follow the steps in the setup guide.
'; Admin::form( 'sg_paypal_connect', array( 'return' => 'settings' ) ); PayPalConnector::fields(); echo 'Webhook address (registered automatically): ' . esc_html( PayPalConnector::webhookUrl() ) . '
Webhook status: ' . ( '' !== (string) $s['paypal_webhook_id'] ? 'registered' : 'not registered' ) . '
One currency for the whole site. It applies to goals you create from now on; existing goals keep their currency. Check the fixed fee below after changing it. | |
| At least ' . esc_html( Format::money( \StreamGoals\Core\Settings::HARD_MIN_MINOR, $cur ) ) . '. Visitors cannot donate less than this. | |
Shown right under the PayPal buttons so donors see it before paying. Plain text, up to 200 characters. The default says donations are non-refundable. Leave it empty to hide the notice. | |
| characters (0 to 500; 0 = no messages) | |
| Names | Anonymous donors\' names are never saved. |
| Moderation | |
|---|---|
| Profanity filter | '; echo ''; echo ' |
| Payment options | ';
echo ' '; echo ''; echo ' The PayPal button is always shown. Which extra buttons appear can also depend on the donor\'s country. |
|---|
Donation forms limit how fast one visitor can start payments (to stop abuse). Behind a proxy, every visitor can look like the same address, and a busy moment, like a raid, could block donations. Automatic recognises Cloudflare by its published addresses and counts each visitor separately; it ignores forged headers from anywhere else. For another kind of proxy, choose its option here, but only if all traffic to your site really goes through it. '; self::ipDiagnostics( (string) $s['visitor_ip_header'] ); echo ' |
| Installed version | ' . esc_html( STREAMGOALS_VERSION ) . ' |
|---|---|
| Latest release | ' . ( $rel ? '' . esc_html( $rel['version'] ) . '' . ( \StreamGoals\Update\ReleaseParser::isNewer( $rel['version'], STREAMGOALS_VERSION ) ? ' (update available)' : ' (up to date)' ) : 'Not found yet (or the check failed).' ) . ' |
| ';
echo ' ' . ( '' !== (string) $s['update_token'] ? 'A token is saved. Leave this empty to keep it, or paste a new one to replace it.' : 'Not needed once the repository is public.' ) . ' |
When a donor chooses "cover the fees", the form adds the estimated PayPal fee so you receive the amount they intended. The defaults (3.49% + $0.49) are US domestic estimates. Fees for international (cross-border) payments and currency conversion are higher and are not included, so you may receive slightly less than expected in those cases. Check PayPal\'s current fee page for your country and adjust.
'; echo '| % | |
| ' . esc_html( $label ) . ' | ' . ( isset( $server[ $k ] ) ? esc_html( $server[ $k ] ) : '(not sent)' ) . ' |
| Is this connection from Cloudflare? | ' . ( $viaCf ? 'Yes - the connection comes from a Cloudflare address' : 'No' ) . ' |
| Visitor address used with the saved option | ' . esc_html( \StreamGoals\Core\ClientIp::resolve( $server, $mode ) ) . ' |
Cloudflare headers were sent, but the connection is not from a known Cloudflare address, so "Automatic" ignores them. If your site really is behind Cloudflare, choose "Cloudflare" above (or update the plugin, as Cloudflare may have added new addresses).
' : '' ) . 'This is your own visit. If the connection address belongs to your proxy or CDN (not to you) and your proxy\'s header shows your real address, choose that proxy option above and save. Then the "used" row should show your real address.