'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. | |
| 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). If your site is behind Cloudflare or another proxy, choose it here so each visitor is counted separately; otherwise everyone looks like the same visitor and a busy moment, like a raid, could block donations. Only choose a proxy option if all traffic to your site really goes through it. '; self::ipDiagnostics( (string) $s['visitor_ip_header'] ); echo ' |
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)' ) . ' |
| Visitor address used with the saved option | ' . esc_html( \StreamGoals\Core\ClientIp::resolve( $server, $mode ) ) . ' |
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.