Title: ABSPATH setup on the plugin
Last modified: May 28, 2020

---

# ABSPATH setup on the plugin

 *  Resolved [iskolares](https://wordpress.org/support/users/iskolares/)
 * (@iskolares)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/abspath-setup-on-the-plugin/)
 * I am with Pressable Customer Support. We had a customer who had issues trying
   to setup the plugin’s Payment Gateway on our server. Upon inspection, it looks
   like you are using ABSPATH online 71 of /give-stripe/includes/admin/class-give-
   stripe-apple-pay-registration.php
 * $path = ABSPATH;
 * This setup will work on many WordPress installs/hosts, but not the case with 
   WordPress installs at Pressable or on WordPress.com Business plans.
 * Our recommendation would be to modify the code such that it verifies if ABSPATH
   is within $_SERVER[‘DOCUMENT_ROOT’] (or is writable), if it isn’t, use WP_CONTENT_DIR
   as the fallback.
 * This will make the plugin work seamlessly on Pressable, WordPress.com Business
   Plan or any other host with the same setup as ours.
 * Please let us know how we can help.
 * Regards,
 * Edcel Ceniza
    Pressable Customer Support

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [Ben Meredith](https://wordpress.org/support/users/benmeredithgmailcom/)
 * (@benmeredithgmailcom)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/abspath-setup-on-the-plugin/#post-12904697)
 * [@iskolares](https://wordpress.org/support/users/iskolares/) thanks SO much for
   weighing in here. We’ve had intermittent errors with Apple Pay on a handful of
   sites, and it now makes sense why.
 * Since this is related to a premium add-on, we’re not really allowed to continue
   the discussion here, per forum rules, but know that I have escalated this to 
   the product team and they’ve echoed my thanks for letting us know not only the
   problem, but the fix.
 * Look for that in a future update to the add-on. Have a great day!

Viewing 1 replies (of 1 total)

The topic ‘ABSPATH setup on the plugin’ is closed to new replies.

 * ![](https://ps.w.org/give/assets/icon-256x256.jpg?rev=2873287)
 * [GiveWP - Donation Plugin and Fundraising Platform](https://wordpress.org/plugins/give/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/give/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/give/)
 * [Active Topics](https://wordpress.org/support/plugin/give/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/give/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/give/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Ben Meredith](https://wordpress.org/support/users/benmeredithgmailcom/)
 * Last activity: [6 years, 1 month ago](https://wordpress.org/support/topic/abspath-setup-on-the-plugin/#post-12904697)
 * Status: resolved