=== PayJustNow for WooCommerce ===
Contributors: pjnplugin,codingtheweb
Tags: PayJustNow, South African Payment Gateway, WooCommerce
Requires at least: 5.6
Tested up to: 6.9
Requires PHP: 7.4
Stable tag: 2.7.9
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Buy now, pay later, interest-free! PayJustNow splits your purchase into 3 easy, zero-interest instalments in South Africa.

== Description ==

PayJustNow for WooCommerce lets customers pay in 3 equal interest-free instalments at checkout.

== External services ==

This plugin connects to the PayJustNow API to process payments and refunds for WooCommerce orders.

Service name: PayJustNow API  
Service provider: PayJustNow (Pty) Ltd  
API endpoints used:
- https://api.payjustnow.com/api/v1/merchant/checkout
- https://api.payjustnow.com/api/v1/merchant/refund
- https://sandbox.payjustnow.com/api/v1/merchant/checkout
- https://sandbox.payjustnow.com/api/v1/merchant/refund

What the service is used for:
The API is used to create payment checkout sessions and process refunds for orders paid using PayJustNow.

What data is sent and when:
When a customer selects PayJustNow at checkout, the plugin sends order and customer information to the PayJustNow API in order to create a payment session. This may include:
- Order number
- Order total amount
- Order basket details
- Currency
- Customer full name
- Customer email address
- Customer phone number
- Billing address information

When a refund is initiated in WooCommerce for a PayJustNow order, the plugin sends refund amount and order reference details to the PayJustNow API to process the refund.

The data is sent only when:
- A customer selects PayJustNow as their payment method and places an order.
- A merchant initiates a refund for a PayJustNow order.

Terms of service:
https://payjustnow.com/terms-and-conditions/

Privacy policy:
https://payjustnow.com/privacy-policy/


== Installation ==
1. Download the .zip file.
2. Go to: WordPress Admin > Plugins > Add New and Upload Plugin with the file you downloaded with Choose File.
3. Install Now and Activate the extension.
4. Go to https://payjustnow.com/ and sign up as a Merchant.
5. Go to: WordPress Admin > WooCommerce > Settings > Payments > PayJustNow and update the settings.

== Frequently Asked Questions ==
= Do you require a Merchant account at PayJustNow? =
Yes, please go to https://payjustnow.com/ and sign up as a Merchant.

== Changelog ==

= 2.7.9 =
* Checkout logo update
* Blocks support update

= 2.7.8 =
* Redundant order status update removed - Please update to this version!

= 2.7.7 =
* Order Security Checks improved

= 2.7.6 =
* Order Cancel Function improved

= 2.7.5 =
* Wordpress Standards Code cleanup.

= 2.7.4 =
* Wordpress Standards Code cleanup.

= 2.7.3 =
* Wordpress Standards Code cleanup.

= 2.7.2 =
* Wordpress Standards Code cleanup.

= 2.7.1 =
* Wordpress Standards Code cleanup.

= 2.7.0 =
* Wordpress Standards Code cleanup.
* Order status updated to "completed" for virtual products.

= 2.6.3 =
* Code cleanup.

= 2.6.2 =
* Updated to latest WordPress 6.9 and WooCommerce 10.4.3

= 2.6.1 =
* Theme updated.
* Fixed logo size.
* Added shortcode that can be used in Elementor and other Wordpress theme builder software.

= 2.6.0 =
* New theme loaded and various error checks added - please update!
* Fixed callback handler throwing an error on some API calls.

= 2.5.1 =
* FunnelKit support.

= 2.5 =
* Added support for WooCommerce Blocks.

= 2.4 =
* Added cancel URL to return the client to the checkout page of the merchant.
* Order status is not changed to Failed when cancelled.

= 2.3 =
* Fixed duplication error on partial refund.
* Removed backwards compatible code for very old WooCommerce versions, WooCommerce version 3 and up required.
* Feature request from support forum: Transaction ID now saved on $order->payment_complete().

= 2.2 =
* Option to use Order Number added.

= 2.1 =
* Refund functionality added.

= 2.0 =
* Update compatibility with WordPress 6.0.1 and WooCommerce 6.8.0.

= 1.55 =
* Cosmetic update.

= 1.50 =
* Update compatibility with WordPress 5.9 and WooCommerce 6.
* Fixed function to check for product with no price.

= 1.40 =
* Update compatibility with WordPress 5.7 and WooCommerce 5.1.
* Added error checking for zero amounts in products.
* Product price code updates.

= 1.30 =
* Update compatibility with WordPress 5.5.x and WooCommerce 4.5.x.

= 1.21 =
* Disable the display of PayJustNow content for subscription type products (WooCommerce Subscriptions plugin) on Single Product page and Cart Totals page.
* Remove the PayJustNow payment option if a product in the Cart is a subscription type product (WooCommerce Subscriptions plugin) on the Checkout page.

= 1.20 =
* Amount updated on single product page for variable product selection.
* Classes added to elements on single product page and cart to enable style changes for merchants.
* Ability to hide the calculated amount in single product page by targeting span id in merchant style sheet.

= 1.19 =
* Text fix for variable products.

= 1.18 =
* Added error-checking for new installs. New product detail page popup design.

= 1.17 =
* Added check for pjn_key on order-resubmit.

= 1.16 =
* Updated cancel functionality.

= 1.15 =
* Removed product price restrictions.

= 1.14 =
* Added light and dark themed logos.

= 1.0 =
* Initial stable release.
