Title: Invalid reference when using discount code
Last modified: March 25, 2021

---

# Invalid reference when using discount code

 *  Resolved [alid15](https://wordpress.org/support/users/alid15/)
 * (@alid15)
 * [5 years ago](https://wordpress.org/support/topic/invalid-reference-when-using-discount-code/)
 * Hello nice plugin, but I get “invalid reference” on the confirmation page when
   I apply discount code and checkout.
 * Payment is processed successfully but I get “invalid reference” on the redirection
   page of paid membership pro (which is the confirmation page).
 * I’m using Paystack payment gateway and I have tried this on both live and test
   environment.
 * Without discount code, everything works just fine.

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

 *  Plugin Author [Andrew Lima](https://wordpress.org/support/users/andrewza/)
 * (@andrewza)
 * [5 years ago](https://wordpress.org/support/topic/invalid-reference-when-using-discount-code/#post-14233231)
 * Hi [@alid15](https://wordpress.org/support/users/alid15/)
 * Thank you for using Paid Memberships Pro.
 * I haven’t been able to recreate this on any of our built-in payment gateways.
 * Please can you reach out to Paystack support as they build and maintain the Paystack
   payment integration.
 * Our support doesn’t cover third-party plugins/integrations for Paid Memberships
   Pro.
 * Thank you for understanding.
 *  Thread Starter [alid15](https://wordpress.org/support/users/alid15/)
 * (@alid15)
 * [5 years ago](https://wordpress.org/support/topic/invalid-reference-when-using-discount-code/#post-14233308)
 * Thank you for your quick response, I have recently contacted paystack but they
   said the issue is not from their end. That I should contact paid membership pro
 *  Thread Starter [alid15](https://wordpress.org/support/users/alid15/)
 * (@alid15)
 * [5 years ago](https://wordpress.org/support/topic/invalid-reference-when-using-discount-code/#post-14234401)
 * Hello [@andrewza](https://wordpress.org/support/users/andrewza/)
 *  Plugin Author [Andrew Lima](https://wordpress.org/support/users/andrewza/)
 * (@andrewza)
 * [5 years ago](https://wordpress.org/support/topic/invalid-reference-when-using-discount-code/#post-14237440)
 * Could you please test this with a built-in payment gateway and see if this issue
   persists for you?
 * You may try the Pay By Check or Testing Gateway.
 *  Thread Starter [alid15](https://wordpress.org/support/users/alid15/)
 * (@alid15)
 * [5 years ago](https://wordpress.org/support/topic/invalid-reference-when-using-discount-code/#post-14238069)
 * I just tested with “Testing only” and “Pay by Check” payment gateway and everything
   works just fine when discount code is applied. I think it’s now a problem of 
   Paystack Gateway. I will contact them again. Thank you.
    -  This reply was modified 5 years ago by [alid15](https://wordpress.org/support/users/alid15/).
 *  Plugin Author [Andrew Lima](https://wordpress.org/support/users/andrewza/)
 * (@andrewza)
 * [5 years ago](https://wordpress.org/support/topic/invalid-reference-when-using-discount-code/#post-14248422)
 * Thanks for running these tests [@alid15](https://wordpress.org/support/users/alid15/),
   please keep me posted if you have any further questions regarding this.

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

The topic ‘Invalid reference when using discount code’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/paid-memberships-pro_f1dacb.svg)
 * [Paid Memberships Pro - Content Restriction, User Registration, & Paid Subscriptions](https://wordpress.org/plugins/paid-memberships-pro/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/paid-memberships-pro/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/paid-memberships-pro/)
 * [Active Topics](https://wordpress.org/support/plugin/paid-memberships-pro/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/paid-memberships-pro/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/paid-memberships-pro/reviews/)

## Tags

 * [discount code](https://wordpress.org/support/topic-tag/discount-code/)
 * [Paid Membership Pro](https://wordpress.org/support/topic-tag/paid-membership-pro/)
 * [paystack](https://wordpress.org/support/topic-tag/paystack/)

 * 6 replies
 * 2 participants
 * Last reply from: [Andrew Lima](https://wordpress.org/support/users/andrewza/)
 * Last activity: [5 years ago](https://wordpress.org/support/topic/invalid-reference-when-using-discount-code/#post-14248422)
 * Status: resolved