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 / stripe / helpers / FrmStrpLiteApiHelper.php

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

42 lines 1.2 KB
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 FrmStrpLiteApiHelper {
11
12 /**
13 * The payments submodule calls this function.
14 * This function exists so payments can be refunded when Authorize.Net is active.
15 *
16 * @param int $payment_id
17 *
18 * @return bool
19 */
20 public static function refund_payment( $payment_id ) {
21 if ( ! class_exists( 'FrmStrpLiteConnectApiAdapter' ) ) {
22 require __DIR__ . '/FrmStrpLiteConnectApiAdapter.php';
23 }
24 return FrmStrpLiteConnectApiAdapter::refund_payment( $payment_id );
25 }
26
27 /**
28 * The payments submodule calls this function.
29 * This function exists so subscriptions can be cancelled when Authorize.Net is active.
30 *
31 * @param string $sub_id
32 *
33 * @return bool
34 */
35 public static function cancel_subscription( $sub_id ) {
36 if ( ! class_exists( 'FrmStrpLiteConnectApiAdapter' ) ) {
37 require __DIR__ . '/FrmStrpLiteConnectApiAdapter.php';
38 }
39 return FrmStrpLiteConnectApiAdapter::cancel_subscription( $sub_id );
40 }
41 }
42