Pesapal.com

Forum

Welcome, Guest
Username
Password:
 

JAVA INTEGRATION
(1 viewing) (1) Guest
Welcome to the Pesapal integration forum!

This forum discusses everything about Pesapal integration on your web site. Having any problems? This is the right place to post a question and we are sure you will get an answer
  • Page:
  • 1

TOPIC: JAVA INTEGRATION

JAVA INTEGRATION 11 years, 11 months ago #655

  • mistaguy
  • OFFLINE
  • Junior Boarder
  • Posts: 30
I have written a code to test your api in java on your sandbox.
Please see repo :github.com/Simbacode/mobipayments

pesapal:

github.com/Simbacode/mobipayments/blob/m...s/oauth/Pesapal.java


I am getting the reponse:<!DOCTYPE
So i wonder if i am getting the right response. Another thing is can these request be logged somewhere.
coder without borders

Re: JAVA INTEGRATION 11 years, 10 months ago #673

  • mistaguy
  • OFFLINE
  • Junior Boarder
  • Posts: 30
Not even one reply sigh
coder without borders

Re: JAVA INTEGRATION 11 years, 10 months ago #697

Am also getting the same error Exception in thread "main" java.lang.RuntimeException: Unexpected response `<!DOCTYPE html>'
meaning the is no responce from the server

Re: JAVA INTEGRATION 11 years, 2 months ago #1015

  • tkarasan
  • OFFLINE
  • Fresh Boarder
  • Posts: 17
Hi!
I am also getting the same response<!DOCTYPE html> while integrating pesapal, and its not redirecred to the pesapal payment site, Can you tell where the mistake happened.
Last Edit: 11 years, 2 months ago by tkarasan.

Re: JAVA INTEGRATION 11 years, 2 months ago #1019

  • tkarasan
  • OFFLINE
  • Fresh Boarder
  • Posts: 17
I want to send the pesapal request for demo site, I want to know how to forward the request to the pesapal gateway after getting the <!DOCTYPE html> response?

Re: JAVA INTEGRATION 11 years, 1 month ago #1052

  • mistaguy
  • OFFLINE
  • Junior Boarder
  • Posts: 30
I have been to add better error printing but i when i make a request to your servers i get a page not found error.
See gist gist.github.com/mistaguy/6521973e56dfe982318b.

Please the developers of the API at pesapal tell me whats up.
coder without borders

Re: JAVA INTEGRATION 11 years, 1 month ago #1055

  • mistaguy
  • OFFLINE
  • Junior Boarder
  • Posts: 30
The reason as to why we were receiving <!DOCTYPE html> is because i was sending POST requests and not printing the whole response from pesapal. I was able to correct that and what i saw in the whole message was that "the page cannot be found....blah blah..". My Guess is that Pesapal does not support POST request. I have change the code to GET and now the error is:


Problem: signature_method_rejected | Advice: > |



I hope anyone from Pesapal can respond,otherwise their support is so sub standard
coder without borders
  • Page:
  • 1