Mypowerly Pricing Table Multipayment Gateways Bridge

Beschrijving

Mypowerly Pricing Table Multipayment Gateways Bridge connects your WordPress site with the MyPowerly platform to display pricing tables created and managed externally using modern OAuth 2.0 authentication.

This plugin acts as a secure connector between your WordPress website and your MyPowerly account. Pricing tables are created in the MyPowerly dashboard and displayed on your WordPress site using multiple integration methods:

  • Shortcodes – Traditional shortcode integration for any content area
  • Gutenberg Blocks – Native WordPress block editor integration
  • Elementor Widgets – Professional page builder integration
  • Auto Display – Automatic placement on selected pages

Important: A MyPowerly account is required to retrieve and display pricing table widgets. You can create an account at https://mypowerly.com.

Third-Party Service Notice: This plugin connects to MyPowerly (https://mypowerly.com) to function. Please review their privacy policy and terms of service before use.

Authentication Flow

Modern OAuth 2.0 Implementation:

  1. Secure Connection Initiation

    • Admin provides explicit consent through WordPress dashboard
    • Plugin generates secure connection request to MyPowerly
    • External redirect to MyPowerly authentication portal
  2. Authorization Code Exchange

    • MyPowerly returns authorization code after successful login
    • Plugin exchanges code for access/refresh tokens via API
    • Credentials stored with AES-256-CBC encryption
  3. Token Management

    • Automatic token refresh when expired
    • Token validation before API requests
    • Secure credential storage using WordPress salts
  4. API Communication

    • Bearer token authentication for all requests
    • Idempotency keys prevent duplicate operations
    • HTTPS-only communication with SSL verification

API Endpoints:
* /api/external_connect/ – Connection initiation
* /api/external_connect/credentials/ – Token exchange
* /api/auth/token/verify/ – Token validation
* /api/auth/token/refresh/ – Token refresh
* /api/widgets/widget-data/embed-script/ – Widget data retrieval

Page Builder Integrations

Gutenberg Block Editor:
* Native WordPress block: “MyPowerly Pricing Table”
* Real-time widget selection dropdown
* Live preview in block editor
* Automatic widget loading from MyPowerly API
* Block attributes: widgetId
* Block namespace: ptmpgb/mypowerly-widget

Elementor Page Builder:
* Custom widget category: “MyPowerly”
* Widget name: “MyPowerly Pricing Table”
* Dynamic widget dropdown with real-time loading
* Professional widget controls and settings
* Horizontal layout optimization with custom CSS
* Widget icon: eicon-price-table
* Keywords: pricing, table, mypowerly, payment

Integration Features:
* Automatic widget synchronization from MyPowerly
* Real-time widget availability checking
* Professional “one widget per page” enforcement
* Conflict prevention between manual and auto placements
* Responsive design optimization
* Custom CSS for layout consistency

Features

Authentication & Security:
* Modern OAuth 2.0 authorization code flow
* AES-256-CBC encryption for sensitive credentials
* Automatic token refresh and validation
* Secure API communication with Bearer tokens
* Idempotency keys for request safety
* HTTPS-only with SSL verification

Core Features:
* Connect WordPress site to MyPowerly using secure authentication
* Retrieve pricing table widgets from MyPowerly API
* Multiple widget support with real-time synchronization
* Professional “one widget per page” enforcement
* Connection status monitoring and validation
* Webhook integration for real-time data sync
* Disconnect option to remove all stored connection data

Display Methods:
* Shortcodes[ptmpgb_widget_by_id id="WIDGET_ID"]
* Gutenberg Blocks – Native WordPress block editor integration
* Elementor Widgets – Professional page builder widget
* Auto Display – Automatic placement on all pages or selected pages
* Manual Placement – Shortcodes and blocks take priority over auto-display

Display Features:
* Per-page widget assignment with different widgets per page
* Widget positioning control (top, middle, bottom of content)
* Responsive design with horizontal layout optimization
* Conflict prevention between different display methods
* Real-time widget loading and validation

Page Builder Integration:
* Gutenberg: Native block with live preview and widget selection
* Elementor: Custom widget category with professional controls
* Universal: Works with any page builder via shortcodes
* Theme Compatibility: Automatic layout optimization

Technical Features:
* Secure external API communication with retry logic
* Encrypted credential storage using WordPress salts
* Input sanitization and output escaping throughout
* Nonce verification for all admin actions
* Capability checks for admin access control
* Multisite compatible with per-site configurations
* Plugin data synchronization for optimization
* Structured webhook payloads for different data types

External Services

IMPORTANT: This plugin connects to external services to function properly.

Service Provider: MyPowerly
Service URL: https://mypowerly.com
Privacy Policy: https://mypowerly.com/privacy
Terms of Service: https://mypowerly.com/termOfServices

Connection Purpose:
* Authenticate your WordPress site with MyPowerly
* Retrieve widget embed data and configuration
* Display pricing tables created in MyPowerly dashboard
* Optional: Sync WooCommerce product data (disabled by default)

Data Transmitted to MyPowerly:
* Site URL and site name for connection identification
* Admin email address for account linking
* OAuth 2.0 authorization codes and tokens
* Widget ID requests for content retrieval
* Plugin version and basic site information for compatibility
* Plugin data for service optimization (optional, requires consent)
* Team data (admin users only) for workspace management
* WooCommerce product data (only when explicitly enabled by user)

Data Received from MyPowerly:
* OAuth 2.0 access and refresh tokens
* Widget configuration and embed codes
* Pricing table display data and scripts
* Workspace and team identifiers
* Webhook URLs for real-time synchronization

Authentication Security:
* OAuth 2.0 authorization code flow (industry standard)
* AES-256-CBC encryption for local credential storage
* Automatic token refresh with secure rotation
* Bearer token authentication for API requests
* Idempotency keys prevent duplicate operations
* HTTPS-only communication with SSL certificate verification

User Consent:
* Connection requires explicit user consent through admin interface
* WooCommerce sync is disabled by default and requires separate opt-in
* Users can disconnect and remove all stored data at any time
* No visitor personal data is collected or transmitted

Security:
* All data transmission uses HTTPS encryption with SSL verification
* OAuth 2.0 tokens stored with AES-256-CBC encryption locally
* Automatic token refresh prevents credential exposure
* Input sanitization and output escaping implemented throughout
* Nonce verification for all admin actions
* Capability checks enforce proper access control
* Idempotency keys prevent duplicate API operations

Legal Compliance:
By using this plugin, you acknowledge that data will be transmitted to MyPowerly as described above. Please review MyPowerly’s privacy policy and terms of service before connecting your site.

Usage

Connection Setup:
1. Go to “Pricing Widget” in WordPress admin menu
2. Click “Connect to MyPowerly” and provide consent
3. Complete OAuth 2.0 authentication in MyPowerly portal
4. Return to WordPress with automatic credential exchange
5. Click “Get Widget Code” to sync your pricing tables

Method 1: Shortcodes (Universal)

Primary shortcode format:
[ptmpgb_widget_by_id id="WIDGET_ID"]

Example:
[ptmpgb_widget_by_id id="8548119c-103c-43f4-a69b-ce79b8e29903"]

Legacy shortcode (backward compatibility):
[ptmpgb_widget id="WIDGET_ID"]
[myplugin_widget id="WIDGET_ID"]

Method 2: Gutenberg Blocks
1. Add new block in WordPress editor
2. Search for “MyPowerly Pricing Table”
3. Select widget from dropdown (auto-loaded from your account)
4. Block renders with live preview
5. Publish page to display pricing table

Method 3: Elementor Widgets
1. Open Elementor editor
2. Find “MyPowerly” category in widget panel
3. Drag “MyPowerly Pricing Table” widget to page
4. Select pricing table from dropdown
5. Widget displays with professional styling

Method 4: Auto Display
1. Go to plugin settings Display Options
2. Choose “Auto display on all pages” or “Display on selected pages”
3. Select widget and position (top/middle/bottom)
4. Save settings for automatic placement

Professional Features:
* One widget per page rule prevents conflicts
* Manual placements (shortcodes/blocks) override auto-display
* Real-time widget synchronization from MyPowerly
* Responsive horizontal layout optimization

Hooks

Actions:
* ptmpgb_widget_display_before – Fired before widget display
* ptmpgb_widget_display_after – Fired after widget display
* ptmpgb_connection_established – Fired after successful OAuth connection
* ptmpgb_connection_disconnected – Fired after disconnection
* ptmpgb_widgets_synced – Fired after widget synchronization

Filters:
* ptmpgb_widget_content – Filter widget HTML content before display
* ptmpgb_shortcode_atts – Filter shortcode attributes
* ptmpgb_api_request_args – Filter API request arguments
* ptmpgb_oauth_redirect_url – Filter OAuth redirect URL
* ptmpgb_widget_wrapper_classes – Filter widget wrapper CSS classes

Integration Hooks:
* elementor/widgets/widgets_registered – Elementor widget registration
* elementor/elements/categories_registered – Elementor category registration
* enqueue_block_editor_assets – Gutenberg block assets
* init – Block type registration

License

This plugin is licensed under the GPLv2 or later license.

Support

Support is available through the WordPress.org support forums.

Additional documentation may be available on the MyPowerly website.

Trademark Notice

The plugin name “Mypowerly Pricing Table Multipayment Gateways Bridge” uses only generic, descriptive terms:

  • “Pricing Table” – Common industry term for displaying pricing options

  • “Multi Payment Gateways” – Generic description of multiple payment processor support

  • “Bridge” – Generic term for software that connects systems

This plugin does not contain any registered trademarks, third-party brand names, or proprietary product names in its title or slug. All naming is purely descriptive of the plugin’s functionality and does not claim affiliation with any third party.

Schermafbeeldingen

  • OAuth 2.0 connection screen with consent and security information
  • Connected state showing widget synchronization and management
  • Display settings with auto-display and specific page options
  • Gutenberg block integration with live widget selection
  • Elementor widget in MyPowerly category with professional controls
  • Widget assignment interface for per-page configuration
  • Connection management and disconnect options

Blokken

Deze plugin heeft 1 blok.

  • Mypowerly pricing table widget

Installatie

  1. Upload the plugin folder to /wp-content/plugins/

  2. Activate the plugin through the ‘Plugins’ menu in WordPress

  3. Go to “Pricing Widget” in the WordPress admin menu

  4. Connect your site to your MyPowerly account

  5. Select or copy your widget ID

  6. Use the shortcode or display settings to show the widget

FAQ

Does this plugin work without a MyPowerly account?

No. This plugin requires a MyPowerly account to retrieve and display pricing widgets using OAuth 2.0 authentication.

Where are pricing tables created?

Pricing tables are created and managed in the MyPowerly dashboard. This plugin retrieves and displays them using secure API integration.

How does the OAuth 2.0 authentication work?

The plugin uses modern OAuth 2.0 authorization code flow:
1. Admin provides consent in WordPress
2. Secure redirect to MyPowerly authentication
3. Authorization code exchange for access tokens
4. Automatic token refresh when expired
5. All credentials encrypted with AES-256-CBC locally

Can I use this with Gutenberg and Elementor?

Yes! The plugin provides:
* Native Gutenberg block: “MyPowerly Pricing Table”
* Elementor widget in “MyPowerly” category
* Universal shortcode support for any page builder
* Automatic layout optimization for all methods

How many widgets can I display per page?

One widget per page maximum (professional standard). This prevents conflicts and ensures optimal performance. Manual placements (shortcodes/blocks) take priority over auto-display.

Does this plugin store any user data?

This plugin stores connection settings, encrypted OAuth tokens, and widget configurations in your WordPress database. No visitor personal data is collected. WooCommerce product sync (if enabled) only syncs product information, not customer data.

Is this plugin GDPR compliant?

Yes. The plugin does not collect visitor personal data. Connection to MyPowerly requires explicit admin consent. All data transmission is disclosed in this readme file. OAuth tokens are encrypted locally.

What happens if I disconnect from MyPowerly?

All stored connection data, encrypted tokens, widget configurations, and settings are completely removed from your WordPress database. Widgets will stop displaying until you reconnect.

Can I use multiple widgets on different pages?

Yes. You can:
* Use different widget IDs in shortcodes on different pages
* Assign different widgets to specific pages in auto-display mode
* Mix shortcodes, blocks, and Elementor widgets across your site
* Each page displays maximum one widget for optimal performance

Is WooCommerce required?

No. WooCommerce is not required for this plugin to function. WooCommerce integration is optional and disabled by default.

How do I troubleshoot widget display issues?

  1. Check connection status in plugin settings
  2. Verify widget exists in MyPowerly dashboard
  3. Click “Get Widget Code” to refresh widget list
  4. Check for theme conflicts with CSS
  5. Ensure only one widget per page rule
  6. Test with shortcode first, then try other methods

Beoordelingen

Er zijn geen beoordelingen voor deze plugin.

Bijdragers & ontwikkelaars

“Mypowerly Pricing Table Multipayment Gateways Bridge” is open source software. De volgende personen hebben bijgedragen aan deze plugin.

Bijdragers

Changelog

1.0.1

  • Security Enhancements:

    • Implemented OAuth 2.0 authorization code flow
    • Added AES-256-CBC encryption for credential storage
    • Enhanced API authentication with Bearer tokens
    • Added automatic token refresh mechanism
    • Implemented idempotency keys for API safety
  • Page Builder Integration:

    • Added native Gutenberg block: “MyPowerly Pricing Table”
    • Created Elementor widget with professional controls
    • Real-time widget synchronization from MyPowerly API
    • Horizontal layout optimization for all integrations
  • Professional Features:

    • Implemented “one widget per page” rule
    • Added conflict prevention between display methods
    • Manual placements override auto-display settings
    • Enhanced webhook system for real-time data sync
  • Technical Improvements:

    • Enhanced REST API authentication and validation
    • Added structured webhook payloads for different data types
    • Improved error handling and user feedback
    • Enhanced input sanitization and output escaping
    • Added text domain loading for translations
    • Code quality improvements throughout

1.0.0

  • Initial release with basic external service integration
  • Widget retrieval and display functionality
  • Shortcode support for manual placement
  • Display settings and widget assignment
  • Basic authentication with MyPowerly
  • Input sanitization and output escaping
  • Nonce verification for all actions
  • Capability checks for admin operations