Rasel Khan
Rasel Khan

Reputation: 21

Showing extra contents at the bottom of my web page where I called paypal sandbox api

I used paypal sandbox call in my page 3 times. When the page loads it looks ok. But unfortunately at the last time it loads some texts like the following 3 times as called the pai 3 times in my code.

Luckily it was ok when I run the same code from my localhost. After uploading it to a server it looks like this.

How to get rid of this?

Thanks in advance.

Upvotes: 0

Views: 102

Answers (1)

Drew Angell
Drew Angell

Reputation: 26036

Are you working with PHP? It looks like something that would happen if you're displaying the post headers with your CURL request. Try adding the following to your CURL code...

curl_setopt('CURLOPT_HEADER',TRUE);

If you're not using PHP then there should be something similar in whatever method you're using to POST the data to PayPal.

Upvotes: 0

Related Questions