Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • #20155

    Hi there,

    I am wondering if anyone here can help me out with this problem I am having. My client is a printed classifieds magazine company. I am using Contact Form 7 to record user input for ad/classifieds placements which the client then outputs to their desktop publishing program to format for print. The problem I have is the Paypal button integration. Every time I set them up they appear to work fine then within a day or 2 they stop working. What I have done is set up a page with the Paypal Buy Now button for each product. Once the customer has filled in their details on the appropriate form for the product(advertisement) they are purchasing they are directed to the relevant page via a script that I have placed in the “Additional Settings” field of each CF7 form. For example: on_sent_ok: “location.replace(‘’);”

    Then when the customer clicks the “Buy Now” button it should take them to Paypal where they can complete their payment. This is where I have the problem, it doesn’t redirect them, it seems to just go dead.

    I don’t have very many plugins:

    Contact Form 7, Contact Form DB and Contact Form to DB Extension Edit. These are to allow customers to submit their details for the ads and for the client to be able to sort and edit them for print.

    Paypal Framework: No idea if I need this or not. It was recommended to me however I have no idea how it works or what it is doing. Something to do with the Paypal API. I am now assuming that I don’t need it since the Paypal buttons should really work independently from any site they are used on, is this correct?

    The site itself is being redirected from another url ie is being redirect to Does this cause a problem with Paypal buttons?

    How can I get CF7 forms and Paypal working together successfully?

    Or, is there a better way for me to do this whilst maintaining the CF7 forms and database? Basically everything works fine, I just need the pay now buttons to work properly.

    The site is:

    Any help would be greatly appreciated.

    Thanks in advance



    I get following error message (Chrome dev console) when I click the Buy Now button: “Refused to display document because display forbidden by X-Frame-Options.”

    I’d do a google search – I found several useful answers on stackoverflow – i.e: (Purchase code hidden if logged out) -frame-options


    Thanks very much for your response Dude. This response here seemed applicable to me: “I had the same issue with the Paypal iframe contained in another iframe. It works now! Thanks – Fabrizio Fortino Oct 25 ’12 at 7:12”

    I’m going add target=”_top” and see if that solves the problem. Will let you know soon how it goes.


    That sounds like it would probably do it. I know a lot of transaction sites have issues with being inside another iframe.




    So far it seems to be working successfully. Thanks again for the help =)

Viewing 5 posts - 1 through 5 (of 5 total)

The topic ‘Paypal with Contact Form 7 problem’ is closed to new replies.