• 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)
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.