Title: Undefined function error: rcp_is_paypal_membership() and rcp_has_paypal_ap
Last modified: April 12, 2024

---

# Undefined function error: rcp_is_paypal_membership() and rcp_has_paypal_ap

 *  Resolved [Chandra M](https://wordpress.org/support/users/nhuja/)
 * (@nhuja)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/undefined-function-error-11/)
 * 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
 *     ```wp-block-code
       } 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 2 years, 1 month ago by [Chandra M](https://wordpress.org/support/users/nhuja/).

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Support [ramilbatoy](https://wordpress.org/support/users/ramilbatoy/)
 * (@ramilbatoy)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/undefined-function-error-11/#post-17694134)
 * Hi [@nhuja](https://wordpress.org/support/users/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/](https://restrictcontentpro.com/why-go-pro/)
 *  Plugin Support [ramilbatoy](https://wordpress.org/support/users/ramilbatoy/)
 * (@ramilbatoy)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/undefined-function-error-11/#post-17853583)
 * 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.

 * ![](https://ps.w.org/restrict-content/assets/icon.svg?rev=3529325)
 * [Membership Plugin - Kadence Memberships](https://wordpress.org/plugins/restrict-content/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/restrict-content/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/restrict-content/)
 * [Active Topics](https://wordpress.org/support/plugin/restrict-content/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/restrict-content/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/restrict-content/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [ramilbatoy](https://wordpress.org/support/users/ramilbatoy/)
 * Last activity: [1 year, 11 months ago](https://wordpress.org/support/topic/undefined-function-error-11/#post-17853583)
 * Status: resolved