• Resolved Chandra M

    (@nhuja)


    Hi,

    I am using this plugin but it seems with PayPal payments I am getting errors.

    Fatal error: Uncaught Error: Call to undefined function rcp_has_paypal_api_access() in /wp-content/plugins/restrict-content/core/includes/memberships/class-rcp-membership.php:2593

    On that line, the code is

    } elseif ( in_array( $this->get_gateway(),$paypal_gateways ) ) {
    				if ( rcp_is_paypal_membership( $this ) && rcp_has_paypal_api_access() ) {
    					$can_cancel = true;
    				}
    
    			}

    I tried to check these functions but they are non existent on the plugin:
    rcp_is_paypal_membership( $this )
    rcp_has_paypal_api_access()

    So, I wonder why these functions are called? I also noticed i do not see PayPal as payment option. Is that the issue? In that case also why are these functions checked? Is this for the Pro version?

    If you have any solution, that would be very helpful.

    Thanks,
    Chandra

    • This topic was modified 11 months, 2 weeks ago by Chandra M.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support ramilbatoy

    (@ramilbatoy)

    Hi @nhuja

    Currently, PayPal payments are only available to the Pro version. See this article here for more details on features that are available only on Pro version : https://restrictcontentpro.com/why-go-pro/

    Plugin Support ramilbatoy

    (@ramilbatoy)

    Hey?@nhuja

    This thread has been inactive for a while so we’re going to go ahead and mark it Resolved. Please feel free to open a new thread if any other questions come up and we’d be happy to help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Undefined function error: rcp_is_paypal_membership() and rcp_has_paypal_ap’ is closed to new replies.