PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / trunk
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More vtrunk
6.35 6.34 6.33.1 6.33 6.32.1 6.32 6.31 6.25 6.25.1 6.26 6.26.1 6.27 6.28 6.29 6.3 6.3.1 6.3.2 6.30 6.4 6.4.1 6.4.2 6.5 6.5.1 6.5.2 6.5.3 All 141 releases
formidable / square / helpers / FrmSquareLiteApiHelper.php

FrmSquareLiteApiHelper.php in Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More trunk, at square/helpers/FrmSquareLiteApiHelper.php

36 lines 987 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 if ( ! defined( 'ABSPATH' ) ) {
3 die( 'You are not allowed to call this page directly.' );
4 }
5
6 /**
7 * This file exists for backward compatibility with the Payments Submodule.
8 * Without these functions the Authorize.Net add on will trigger fatal errors.
9 */
10 class FrmSquareLiteApiHelper {
11
12 /**
13 * The payments submodule calls this function.
14 * This function exists so payments can be refunded when the Stripe add-on or Authorize.Net is active.
15 *
16 * @param int $payment_id
17 *
18 * @return bool
19 */
20 public static function refund_payment( $payment_id ) {
21 return FrmSquareLiteConnectHelper::refund_payment( $payment_id );
22 }
23
24 /**
25 * The payments submodule calls this function.
26 * This function exists so subscriptions can be cancelled when the Stripe add-on or Authorize.Net is active.
27 *
28 * @param string $sub_id
29 *
30 * @return bool
31 */
32 public static function cancel_subscription( $sub_id ) {
33 return FrmSquareLiteConnectHelper::cancel_subscription( $sub_id );
34 }
35 }
36