=== Accept Stripe Payments ===
Contributors: Tips and Tricks HQ, wptipsntricks, alexanderfoxc
Donate link: https://s-plugins.com
Tags: stripe, stripe payments, stripe gateway, payment, payments, button, shortcode, digital goods, payment gateway, commerce, digital downloads, downloads, e-commerce, e-store, ecommerce, eshop, donation
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 2.0.97
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Easily accept payments on your WordPress site via Stripe payment gateway.

== Description ==

The Stripe Payments plugin allows you to accept credit card payments via Stripe payment gateway on your WordPress site easily.

Easily add Stripe 'Buy Now' buttons anywhere on your site using a simple shortcode or block. The plugin also supports accepting donations via Stripe.

Enable seamless one-click payments via Stripe with a built-in "Remember Me" feature for faster repeat transactions. The plugin is designed with a fully responsive layout, ensuring compatibility across all devices and browsers.

After completing a payment, customers are automatically redirected to a "Thank You/Checkout Result" page, where they can view detailed information about their transaction, including the purchased item.

All transaction details are securely recorded in the plugin's "Orders" menu. You can conveniently review and manage your payments and orders directly from your WordPress admin dashboard.

For enhanced security, credit card details are never stored by the plugin or your site. All payments are processed directly by Stripe and securely stored in your Stripe account, utilizing their state-of-the-art security measures for credit card handling.

= Checkout Demonstration Video =

https://www.youtube.com/watch?v=b6owgRBTUwA

= Setup and Usage Video =

https://www.youtube.com/watch?v=L0n_jlEhmoA

= Features =

* Quick installation and setup.
* Easily take payment for a service from your site via Stripe.
* Sell files, digital goods or downloads using your Stripe merchant account.
* Sell music, video, ebook, PDF or any other digital media files.
* The ultimate plugin to create simple Stripe payment buttons.
* Create buy buttons for your products or services on the fly and embed it anywhere on your site using a user-friendly shortcode.
* Ability to add multiple "Buy Now" buttons to a post/page.
* Allow users to automatically download the digital file after the purchase is complete.
* View purchase orders from your WordPress admin dashboard.
* Accept donation on your WordPress site for a cause.
* Create a stripe payment button widget and add it to your sidebar.
* Ability to collect billing and shipping address of the customer.
* Ability to specify a logo or thumbnail image for the item that will get shown in the stripe payment window.
* Ability to customize the Stripe buy now button text from the shortcode.
* Ability to customize the Stripe buy now button appearance using custom CSS code.
* Ability to specify a custom description for the item/product (this info is captured with the order).
* Option to configure a notification email to be sent to the buyer and seller after the purchase.
* There is an option to allow the customer to enter a custom price amount for your product or service (customer pays what they want).
* Option to accept custom donation amount via Stripe payment gateway.
* Option to collect tax for your products (if applicable).
* Option to collect shipping for your tangible products.
* Option to configure region based shipping additions for physical products.
* Option to save the card data on Stripe.
* Ability to have custom thank you page on a per product basis.
* Ability to customize the message on the thank you page using tags.
* Ability to customize the price display with currency symbol.
* Ability to use a link URL to create custom payment button for your products.
* Option to send receipt email to your customers from Stripe for each transaction.
* Option to collect a custom input from your customers for products (useful if you are selling products that need special instructions from the customers).
* Stock control option. You can limit the number of quantity available for a product.
* Option to enable Alipay payments. So your customers can pay using their Alipay accounts.
* Option to enable Terms and Conditions that your customers have to accept before they can make a purchase.
* Ability to configure variable products. You can charge different amount for different options of the product.
* Ability to create "Authorize Only" products. Authorize and place a hold on the customer's card, then capture the funds at a later time.
* Option to enable extended authorization for Stripe payments (if supported by your Stripe account).
* Option to display a security badge and message on the payment form.
* 3D Secure payments compatible.
* Strong Customer Authentication (SCA) Compliant.
* Browse the [plugin documentation](https://s-plugins.com/stripe-payments-plugin-tutorials/) to learn more about the features of this plugin.

The setup is very easy. Once you have installed the plugin, all you need to do is enter your Stripe API credentials in the plugin settings and your website will be ready to accept credit card payments.

You can run it in test mode by specifying test API keys in the plugin settings.

= Shortcode Parameters/Attributes =

This plugin offers a shortcode and a block that allows you to create a 'Buy Now' or 'Pay' button for accepting payments.

First, create a product in the plugin's admin dashboard. Then, use the provided shortcode or block to embed a buy button for that specific product.

[Check this tutorial](https://s-plugins.com/creating-product-stripe-payments-plugin/) for step by step instructions.

= Detailed Documentation =

For detailed documentation and instructions please check the [WordPress Stripe Payments Plugin](https://s-plugins.com/stripe-payments-plugin-tutorials/) documentation page.

== Installation ==

= Using The WordPress Dashboard =

1. Navigate to "Plugins->Add New" from your dashboard
2. Search for 'stripe payments'
3. Click 'Install Now'
4. Activate the plugin

= Uploading via WordPress Dashboard =

1. Navigate to the "Add New" in the plugins dashboard
2. Navigate to the "Upload" area
3. Select `stripe-payments.zip` from your computer
4. Click "Install Now"
5. Activate the plugin in the Plugin dashboard

= Using FTP =

1. Download `stripe-payments.zip`
2. Extract the `stripe-payments` directory on your computer
3. Upload the `stripe-payments` directory to the `/wp-content/plugins/` directory
4. Activate it from the Plugins dashboard

== Frequently Asked Questions ==

= Can I have multiple payment buttons on a single page? =

Yes, you can have any number of buttons on a single page.

= Can I use it in a WordPress Widgets? =

Yes, you can.

= Can I specify quantity of the item? =

Yes, you can configure it in the product configuration interface.

= Can I change the button label? =

Yes, you can specify the "button_text" attribute in the shortcode to customize it.

= Will the customers receive an email after purchase? =

Yes, you can configure the email settings options in the settings menu of the plugin.

= Is it possible to get notified if payment failed for some reason?

Yes. Go to Stripe Payments > Settings, Email Settings tab and check "Send Email On Payment Failure" option.

= Can It be tested before going live? =

Yes, please visit Stripe Payments > Settings screen for options.


== Screenshots ==

1. Stripe Plugin Settings
2. Stripe Plugin Payment Page
3. Stripe Plugin Orders Menu

== Upgrade Notice ==
None.

== Changelog ==

= 2.0.97 =
- WordPress 7.0 compatibility.
- Gutenberg API v3 compatibility for product block.
- Product block console warning issue fixed.
- Minor improvements to the Stripe SDK loading code to prevent potential conflicts with the 'WP Express Checkout' plugin.
- A plugin activation check is now performed before the SWPM integration class is initialized.

= 2.0.96 =
- Updated the help text of the "Send Email On Payment Failure" option to clarify that bots can trigger this also.
- Removed some of the backward compatibility related code that is no longer needed.
- Translation string updated addon update checker helper class.
- Added a new shortcode that can show the purchase history of a member.
- When the email content type is updated, the email body type will also update accordingly in email settings page.

= 2.0.94 and 2.0.95 =
- Added a new feature that allows configuration of [region based shipping additions](https://s-plugins.com/configuring-region-based-shipping-additions/).
- Order details cost calculation layout updated.
- New option to enable extended authorization for Stripe payment (if your Stripe account supports it).
- The extended authorization option is added to the [authorize and capture product type] (https://s-plugins.com/authorize-only-transaction-stripe-payments/).
- IP Address formatting issue in order details fixed.
- Added a new option to flag a product as physical product.
- Updated the language translation POT file.
- Updated the version number to 2.0.95 to the main file.
- Note: if you are using the Subscriptions or Additional Payment Methods addon, please update those addons to the latest version as well.

= 2.0.93 =
- Updated the help text of the 'Thank You' page field.
- New filter hook 'asp_hide_captcha_disabled_warning_notice_in_admin' added to hide captcha disabled warning msg.
- New filter hook 'asp_additional_items_data_line' added, which allows you to modify additional item data (such as variation details) via custom code.
- Type casting `$p_customer_details->metadata` to an array to prevent any potential PHP warnings.
- Option to specify default sorting option on the shop/products page.
- Added new filteer hooks 'asp_buyer_email_headers' and 'asp_seller_email_headers' to allow customization of the email headers.
- The seller notification email now sets the buyers email as the reply-to email address.

= 2.0.92 =
- Added a CSS class to all table rows in the order summary table on the Thank You page.
- Added a new action hook 'asp_ng_pp_output_before_closing_form' to allow adding custom HTML content before the closing form tag in the payment window.
- Removed the unused Stripe token field from orders menu.
- iDEAL payment addon compatibility issue fixed.
- Klarna payment method added to the Additional Payment Methods addon.
- Added example code to show how to collect custom data via query string in the payment popup window and send it to Stripe as metadata.
- Added filter hooks to allow Cloudflare Turnstile integration with the plugin.

= 2.0.91 =
- Added support for the default_quantity query parameter, allowing custom quantity to be applied directly via the product link URL.
- Reorganized the shortcode registration logic for the asp_product shortcode (internal optimization; no functional changes).
- Fixed a minor JavaScript warning on the product listing page.
- Introduced new filter hooks to extend email-sending capabilities.
- Added several PHP isset checks to prevent warnings.
- Fixed a minor PHP warning in the asp_show_my_transactions shortcode.

= 2.0.90 =
- Resolved an issue with the newly added 'Use Separate Name Fields' option when used alongside the 'Prefill Logged In User Name and Email' settings.
- Moved the payment popup related options to the Advanced settings menu of the plugin.
- Added the following new email merge tags:
{item_description}, {download_url}, {product_url}

= 2.0.89 =
- Stripe API version updated to the latest version (2024-12-18.acacia).
- Added a new option to display security badge and message on the payment popup window.
- Added a new filter hook 'asp_ng_pp_security_message_content' to allow customization of the secure badge content.

= 2.0.88 =
- Introduced a new option in the Advanced Settings menu to display the "First Name" and "Last Name" fields as separate entries on the checkout/payment form.
- The Orders menu in the plugin now displays the customer's name within the "Customer Details" section of each order.
- The tax amount for a transaction is now passed to Stripe via the metadata field.
- Added a new action hook 'asp_stripe_process_ipn_error' to allow custom handling of IPN error.
- Updated the update checker addon to be PHP 8.3 compatible.
- Fixed the incorrect use of a sanitization function for the customer name in the dynamic product shortcode.
- Added a 3rd parameter to the 'shortcode_atts' function of the 'accept_stripe_payment_ng' shortcode to allow further customization.
- The default 'Thank You' page shortcode has been enhanced to display additional checkout details.

= 2.0.87 =
- Updated the help text of the "Send Emails in Parallel" feature to explain that this feature is not recommended for most sites as it can have conflict with some server environments.
- Minor adjustment - for trial subscriptions product, the encode function is not used on the email input field.
- Sanitization added to accept_stripe_payment_ng shortcode params.

= 2.0.86 =
- Added a new surcharge feature that you can use to collect a transaction surcharge. [documentation for transaction surcharge](https://s-plugins.com/transaction-surcharge-feature-collect-processing-fees-for-products/)
- Added new email merge tags {surcharge_total_amt} and {surcharge_label} to show surcharge data in the email body.
- Added a new filter hook (asp_ng_pp_extra_output_before_closing_body) in the payment popup window to allow adding custom HTML content before the closing body tag.

= 2.0.85 =
- The order item will capture and display the username of the logged-in user, provided the user is logged in at the time of the purchase.
- Added new email merge tag {logged_in_user_name} to capture logged in user's username (if available).
- Added new filter 'asp_get_logged_in_user_info' to allow customization of the logged in user info.
- Scaled down the reCAPTCHA badge size using CSS for better mobile screen compatibility.
- Updated the language translation POT file.
- Fixed a price validation bug for checkbox type variation.

= 2.0.84 =
- Added a new option to customize the payment button text (in the popup window) on a per product basis.
- Added support for 'coupon_code' query param to apply coupon directly in the product link url feature.
- Corrected the issue causing an error when a product is created or updated with an empty variation group.
- Regional tax variation deletion issue fixed.
- Added support for Custom Fields Addon's new fields position feature.
- Added an API pre-submission amount validation function.

= 2.0.83 =
- Fixed a recent PHP8 related change that caused an issue in the download URL function.

= 2.0.82 =
- Fixed an issue with the coupon code delete function.
- Added a new utility function to retrieve the current page URL.
- New action hook in the payment popup window.

= 2.0.81 =
- The currency mismatch error message won't be displayed when the product is configured to use a variable currency.

= 2.0.80 =
- Added a currency check when the create payment intent request is made.
- Added more sanitization to the billing_details object data.

= 2.0.79 =
- New shortcode to show available quantity of a product: [asp_available_quantity id="123"]
- Better handling for zip/postal code (when it contains empty space character).
- Some php deprecated warnings has been fixed.
- Fixed a PHP 8.2 related warning.
- Updated the language translation POT file.

= 2.0.78 =
- Refactored some lines of code to remove the use of deprecated FILTER_SANITIZE_STRING filter.
- PHP 8.2 compatibility.

= 2.0.77 =
- Settings UI improvement: the individual captcha configuration fields are now displayed above the transaction rate limiting section.
- New option (Don't Use Cookie) in the advanced settings menu to disable the use of cookie.

= 2.0.76 =
- Improved the sorting by price option in the shop/products page.
- The coupon code option will be enabled by default for variable amount product as well. It can be disabled via the product specific coupon configuration.
- The custom field position for the legacy API option has been removed as it is no longer used.
- Added Bulgarian language option to the checkout language selection field.

= 2.0.75 =
- Sorting option added in the shop/products page via shortcode parameter.
- Visitors can also sort the products in the shop page by latest, sort by title, sort by price.
- Updated the integration with Simple Membership plugin.

Full changelog available [at changelog.txt](https://plugins.svn.wordpress.org/stripe-payments/trunk/changelog.txt)
