=== Payment Gateway SBPS for WooCommerce ===
Contributors: hiroaki-miyashita
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=WN7Y2442JPRU6
Tags: woocommerce, sbps, payment gateway, checkout blocks, payments
Requires at least: 5.0
Tested up to: 7.0
Requires PHP: 7.4
Requires Plugins: woocommerce
WC requires at least: 8.3
WC tested up to: 10.9.4
Stable tag: 0.1
License: GPLv2 or later

This plugin adds the functionality to take SBPS payments on your store of WooCommerce.

== Description ==

The Payment Gateway SBPS for WooCommerce plugin adds the functionality to take SBPS payments on your store of WooCommerce.

= About SBPS =

SBPS is a comprehensive payment platform that offers various online payment methods, such as credit card payment and convenience store payment in Japan.

[SBPS](https://www.sbpayment.jp/)

In order to use SBPS, you have to purchase the authentication key at the following site.

[WordPress Market](https://www.wpmarket.jp/)

== External services ==

= SB Payment Service =

This plugin connects to SB Payment Service to open the SBPS-hosted payment page and to receive payment results.

When a customer starts a payment using an SBPS payment method, the plugin sends payment and order information to the SBPS payment endpoint selected in the plugin settings. Depending on the selected payment method, this data may include the merchant ID, service ID, payment method, customer identifier, WooCommerce order identifier, item identifier and name, order amount, tax amount, customer email address, telephone number, billing or shipping information, return URLs, result notification URL, request date, and checksum. The data is sent only when the customer starts an SBPS payment. Payment results and transaction information are returned by SBPS to the Result CGI URL configured by the plugin.

Customers enter credit-card details on the SBPS-hosted payment page. This plugin does not send full credit-card numbers or card security codes from the WooCommerce site to SBPS.

This service is provided by SB Payment Service Corp.

* [SB Payment Service](https://www.sbpayment.jp/)
* [SB Payment Service site policy](https://www.sbpayment.jp/sitepolicy/)
* [SB Payment Service privacy policy](https://www.sbpayment.co.jp/info/security/privacy_policy/)

= WordPress Market authentication service =

This plugin connects to the WordPress Market authentication service at `https://www.wpmarket.jp/auth/` to validate the Authentication Key used to enable SBPS production mode.

When an administrator saves the SBPS credit-card gateway settings, the plugin sends the gateway identifier (`sbps`), the WordPress site's domain name, and the entered Authentication Key to WordPress Market. This request is made only when the gateway settings are saved for key validation. Customer information, order information, and payment information are not sent to WordPress Market by this validation request.

This service is provided by ETNET Co., Ltd., the operator of WordPress Market.

* [WordPress Market](https://www.wpmarket.jp/)
* [WordPress Market Terms of Use](https://www.wpmarket.jp/terms/)
* [WordPress Market Privacy Policy](https://www.wpmarket.jp/privacy/)

== Installation ==

1. Upload the plugin file in the plugin install page or copy the `wc-sbps-gateway` directory into your `wp-content/plugins` directory.
2. Activate the plugin through the 'Plugins' menu in WordPress.
3. That's it! :)

== Screenshots ==

1. SBPS - Settings

== Known Issues / Bugs ==

Nothing.

== Privacy and data storage ==

The plugin stores SBPS transaction information in WooCommerce order data so that payment status and payment details can be associated with the correct order. Stored data can include the SBPS order ID, tracking ID, payment method, payment date, and payment information returned by SBPS.

When debug logging is enabled, request and response data can be written to WooCommerce logs. Depending on the payment method, logged data may include order and customer information. Debug logging should be enabled only when needed, logs should be access-controlled, and old logs should be removed according to the site's privacy and retention policies.

The plugin does not collect or store full credit-card numbers or card security codes for SBPS link-type payments.

Store administrators are responsible for providing appropriate privacy notices to customers and for ensuring that their use of SB Payment Service complies with applicable laws, merchant agreements, and site policies.

== Frequently Asked Questions ==

= Is this an official SB Payment Service or WooCommerce plugin? =

No. This is an independent third-party integration and is not affiliated with, sponsored by, or endorsed by SB Payment Service Corp., Automattic Inc., or WooCommerce.

= Do I need an SB Payment Service contract? =

Yes. The plugin does not create an SBPS merchant account. You must have an active SBPS contract and credentials for every payment method you enable.

= Does the plugin collect credit-card numbers? =

No. With the implemented link-type flow, customers enter card information on the SBPS-hosted payment page.

= Where do I configure the shared SBPS credentials? =

Configure Merchant ID, Service ID, Hash Key, SPS URL, and Authentication Key under WooCommerce > Settings > Payments > SBPS - Credit Card. Other SBPS payment methods use those common settings.

== Changelog ==

= 0.1 =
* Initial release.

== Upgrade Notice ==

Nothing.

== Uninstall ==

1. Deactivate the plugin
2. That's it! :)
