Title: API Error
Last modified: October 15, 2019

---

# API Error

 *  Resolved [looneylui](https://wordpress.org/support/users/looneylui/)
 * (@looneylui)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/api-error-47/)
 * I have installed the afterpay plugin and was going through filling up the merchant
   ID and secret key, however when hitting save this shows up.
 * Afterpay API Error #500: The Afterpay Gateway for WooCommerce plugin cannot communicate
   with the Afterpay API. Error code(s) returned: “http_request_failed”.

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

 *  Plugin Author [Afterpay](https://wordpress.org/support/users/afterpayit/)
 * (@afterpayit)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/api-error-47/#post-12029813)
 * Hi [@looneylui](https://wordpress.org/support/users/looneylui/),
 * Thanks for your message.
 * This error usually indicates that the web host has restricted the use of the `
   parse_ini_file` PHP function. The plugin’s dependency on the use of this function
   is scheduled to be removed in the next release. In the meantime, please consider
   contacting the web hosting provider and request for this function to be removed
   from the “disable_functions” list.
 * If further support is required, please feel free to create a ticket via the Afterpay
   Help Centre here:
    - [https://help.afterpay.com/hc/en-au/requests/new?ticket_form_id=193406](https://help.afterpay.com/hc/en-au/requests/new?ticket_form_id=193406)
 * A team member will then reach out to you within 1 business day.
 * Thank you.
 *  Thread Starter [looneylui](https://wordpress.org/support/users/looneylui/)
 * (@looneylui)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/api-error-47/#post-12029876)
 * Thanks for getting back to me on this. It works now!

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

The topic ‘API Error’ is closed to new replies.

 * ![](https://ps.w.org/afterpay-gateway-for-woocommerce/assets/icon.svg?rev=3261877)
 * [Afterpay Gateway for WooCommerce](https://wordpress.org/plugins/afterpay-gateway-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/afterpay-gateway-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/afterpay-gateway-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/afterpay-gateway-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/afterpay-gateway-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/afterpay-gateway-for-woocommerce/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [looneylui](https://wordpress.org/support/users/looneylui/)
 * Last activity: [6 years, 7 months ago](https://wordpress.org/support/topic/api-error-47/#post-12029876)
 * Status: resolved