Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,6 @@ Monitor unlocked content, payment amounts, and user activity with comprehensive
Wrap your content in the `[paywalled_content]` shortcode to protect it, no coding knowledge required.


== EXTERNAL DEPENDENCY NOTICE: ==
PayButton relies on its core JavaScript library, which is loaded remotely from [https://unpkg.com/@paybutton/paybutton/dist/paybutton.js](https://unpkg.com/@paybutton/paybutton/dist/paybutton.js). This approach ensures that all users automatically receive the latest features and security updates without having to update the plugin manually. It also helps keep the plugin lightweight while still providing robust payment processing functionality. No additional accounts or configurations are needed.


== DOCUMENTATION & SUPPORT ==
* **[Documentation](https://docs.paybutton.org/)**
* **[Support](https://t.me/paybutton)**
Expand Down
50 changes: 50 additions & 0 deletions assets/js/paybutton.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion includes/class-paybutton-public.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function enqueue_public_assets() {
// Enqueue the PayButton core script.
wp_enqueue_script(
'paybutton-core',
'https://unpkg.com/@paybutton/paybutton/dist/paybutton.js',
PAYBUTTON_PLUGIN_URL . 'assets/js/paybutton.js', // Local file path
array(),
'1.0',
false
Expand Down