summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/GNU-taler-payment/class-wc-gnutaler-gateway.php34
1 files changed, 17 insertions, 17 deletions
diff --git a/src/GNU-taler-payment/class-wc-gnutaler-gateway.php b/src/GNU-taler-payment/class-wc-gnutaler-gateway.php
index ea02221..6eec471 100644
--- a/src/GNU-taler-payment/class-wc-gnutaler-gateway.php
+++ b/src/GNU-taler-payment/class-wc-gnutaler-gateway.php
@@ -7,7 +7,7 @@
* Plugin URI: https://github.com/Sakaeo/GNU-Taler-Plugin
* //Or Wordpress pluin URI
* Description: This plugin enables the payment via the GNU Taler payment system
- * Version: 1.0.4
+ * Version: 1.0
* Author: Hofmann Dominique & StrĂ¼bin Jan
* Author URI:
*
@@ -48,7 +48,7 @@ if ( ! defined( 'ABSPATH' ) ) {
*
* @param $gateways - Array of all the payment gateways.
* @return array
- * @since 1.0.1
+ * @since 1.0
*/
@@ -79,7 +79,7 @@ function gnutaler_init_gateway_class()
*
* Handles the payments from the Woocommerce Webshop and sends the transactions to the GNU Taler Backend and the GNU Taler Wallet.
*
- * @since 1.0.1
+ * @since 1.0
*/
class WC_GNUTaler_Gateway extends WC_Payment_Gateway
{
@@ -202,7 +202,7 @@ function gnutaler_init_gateway_class()
* @param $body - The content of the request.
* @param $purpose - What return value is to be expected.
* @return array The return array will either have the successful return value or a detailed error message.
- * @since 1.0.2
+ * @since 1.0
*
*/
public function call_api( $method, $backend_url, $body, $purpose ): array
@@ -231,7 +231,7 @@ function gnutaler_init_gateway_class()
* @param $curl - Created curl request for error handling.
* @param $result - The response from the backend, that will be returned if the request was successful
* @return array - Array with a boolean, a http code and a message will be returned
- * @since 1.0.4
+ * @since 1.0
*
*/
public function curl_error_handling( $curl, $result ): array
@@ -350,7 +350,7 @@ function gnutaler_init_gateway_class()
* @param $body - Content of the request.
* @param $url - URL where the request will be send
* @return false|resource - Either the configured curl request will be returned or false if an error appears.
- * @since 1.0.4
+ * @since 1.0
*/
public function curl_init( $method, $body, $url )
{
@@ -397,7 +397,7 @@ function gnutaler_init_gateway_class()
* @param $purpose - What will be added to the url.
* @param $body - Content of the request.
* @return string - return the final url.
- * @since 1.0.4
+ * @since 1.0
*/
public function create_api_url ($url, $purpose, $body ): string
{
@@ -418,7 +418,7 @@ function gnutaler_init_gateway_class()
*
* @param $url - URL to the backend
* @return bool - Returns if valid or not.
- * @since 1.0.2
+ * @since 1.0
*/
public function verify_backend_url( $url ): bool
{
@@ -437,7 +437,7 @@ function gnutaler_init_gateway_class()
*
* @param $order_id - ID of the order to get the Order from the WooCommerce Webshop
* @return array|void - Array with result => success and redirection url otherwise it returns void.
- * @since 1.0.1
+ * @since 1.0
*/
public function process_payment( $order_id )
{
@@ -501,7 +501,7 @@ function gnutaler_init_gateway_class()
* @param $user_id - User id for logging.
* @param $order_id - Order id for logging.
* @return array|void - Array with boolean true|false, url or error message with http status code.
- * @since 1.0.4
+ * @since 1.0
*/
public function send_order_request( $backend_url, $json, $user_id, $order_id ): array
{
@@ -554,7 +554,7 @@ function gnutaler_init_gateway_class()
* *
* @param $order_id - To get the order from the WooCommerce Webshop
* @return array - return the JSON Format.
- * @since 1.0.2
+ * @since 1.0
*/
public function convert_to_checkout_json( $order_id ): array
{
@@ -589,7 +589,7 @@ function gnutaler_init_gateway_class()
* @param $wc_cart - The content of the WooCommerce Cart.
* @param $wc_order_currency - The currency the WooCommerce Webshop uses.
* @return array - Returns an array of products.
- * @since 1.0.3
+ * @since 1.0
*/
public function mutate_products_to_json_format( $wc_cart, $wc_order_currency ): array
{
@@ -610,7 +610,7 @@ function gnutaler_init_gateway_class()
*
* @param $merchant_option - If the webshop owner allows to send the backend their information
* @return array - Returns an array of merchant information's.
- * @since 1.0.3
+ * @since 1.0
*/
public function mutate_merchant_information_to_json_format( $merchant_option ): array
{
@@ -669,7 +669,7 @@ function gnutaler_init_gateway_class()
* @param null $amount - Amount that is requested to be refunded.
* @param string $reason - Reason for the refund request.
* @return bool|WP_Error - Returns true or throws an WP_Error message in case of error.
- * @since 1.0.4
+ * @since 1.0
*/
public function process_refund( $order_id, $amount = null, $reason = '' )
{
@@ -719,7 +719,7 @@ function gnutaler_init_gateway_class()
* @param $backend_url - URL where the request will be sent.
* @param $json - JSON array with the data of the refund request for the backend.
* @return array|void - Array with boolean true|false, url or error message with http status code.
- * @since 1.0.4
+ * @since 1.0
*/
public function send_refund_request( $backend_url, $json ): array
{
@@ -763,7 +763,7 @@ function gnutaler_init_gateway_class()
* @param $amount - Amount to be refunded.
* @param $reason - Reason of refund.
* @return array - returns the JSON Format.
- * @since 1.0.3
+ * @since 1.0
*/
public function convert_refund_to_json( $order, $amount, $reason ): array
{
@@ -783,7 +783,7 @@ function gnutaler_init_gateway_class()
* @param $type - What kind of log it is.
* @param $message - What the message of the log entry is.
* @return void - Returns void.
- * @since 1.0.4
+ * @since 1.0
*/
public function add_log_entry( $type, $message ): void
{