Pesapal.com

Forum

Welcome, Guest
Username
Password:
 

parameter_rejected | Advice: unknown_error
(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: parameter_rejected | Advice: unknown_error

parameter_rejected | Advice: unknown_error 12 years, 5 months ago #571

  • joshmuza
  • OFFLINE
  • Fresh Boarder
  • Posts: 8
Hello Guys, i am trying to test my integration and i am getting an error

Problem: parameter_rejected | Advice: unknown_error_occured> oauth_parameters_rejected | request_xml_data

I do realise that my xml data may be incorrect. This is it below:


<PesapalDirectOrderInfo>
<PhoneNumber>+256772120556</PhoneNumber>
<Reference>523FWHAVBSHED</Reference>
<Type>MERCHANT</Type>
<Description>Payment For Love</Description>
<Amount>1000</Amount>
</PesapalDirectOrderInfo>


I am a Ugandan, and recently, Pesapal is available here too. However, i am not sure if they have integrated with MTN Mobile money, OR atleast AIRTEL money. This information aint available on their site.

Please enlighten me on these issues. Also, highlight to me the problems in the xml structure.

Thank you.

/ This e-mail address is being protected from spambots. You need JavaScript enabled to view it.

Re: parameter_rejected | Advice: unknown_error 12 years, 5 months ago #572

  • joshmuza
  • OFFLINE
  • Fresh Boarder
  • Posts: 8
Some additions here:

These are the details of the http response

%% -----------------------------------------------------------------------------------------------------

[{"cache-control","private"},
{"date","Wed, 02 Oct 2013 07:46:32 GMT"},
{"server","Microsoft-IIS/7.0"},
{"www-authenticate",
"OAuth realm=\"\", oauth_problem=\"parameter_rejected\", oauth_parameters_rejected=\"request_xml_data\", oauth_problem_advice=\"unknown_error_occured\""},
{"content-length","105"},
{"content-type","text/html; charset=utf-8"},
{"x-aspnetmvc-version","3.0"},
{"x-aspnet-version","4.0.30319"},
{"set-cookie",
"ASP.NET_SessionId=mgrey42szyvi32ikz30tchp5; path=/; HttpOnly"},
{"set-cookie",
".PesapalASPNETMVC=; domain=.pesapal.com; expires=Tue, 12-Oct-1999 04:00:00 GMT; path=/; HttpOnly"},
{"x-powered-by","ASP.NET"}],
"Problem: parameter_rejected | Advice: unknown_error_occured> oauth_parameters_rejected | request_xml_data"}}

%% ----------------------------------------------------------------------------------------------------------

Also, i am using Erlang ( erlang.org ) for this integration. Hopefully, with this forum's help, we can have a pesapal Erlang Library. This integration is of most importance.

Also, i just wanted to test with the few mandatory parameters in the request to:
www.pesapal.com/API/PostPesapalDirectOrderV4

Lastly, please explain to me the data types and/or formats of these madatory parameters, e.g. telephone number format.

Re: parameter_rejected | Advice: unknown_error 12 years, 5 months ago #574

  • joshmuza
  • OFFLINE
  • Fresh Boarder
  • Posts: 8
--------------- Update ------------------

I have re-formatted the xml to this one:


<?xml version="1.0" encoding="utf-8"?>
<PesapalDirectOrderInfo >
<PhoneNumber>+256772120556</PhoneNumber>
<Reference>523FWHAVBSHED</Reference>
<Type>MERCHANT</Type>
<Description>Payment For Love</Description>
<Amount>1000.00</Amount>
</PesapalDirectOrderInfo>

these may fail to show properly: [xmlns:xsi="http://www.w3.org/2001/XMLSchemainstance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.pesapal.com"]

And this works fine, but now, i am getting error below:

Problem: parameter_rejected | Advice: invalid_value_for_amount> oauth_parameters_rejected |

How should i format the actual data before constructing the xml ? the formats are not discussed in the documentation
Last Edit: 12 years, 5 months ago by joshmuza. Reason: more details

Re: parameter_rejected | Advice: unknown_error 12 years, 5 months ago #576

  • lazro
  • OFFLINE
  • Administrator
  • Pesapal
  • Posts: 404
Hi joshmuza,

Glad that you managed to fix this. This is because the amount you are passing is above 70,000KES. You need to send an email to This e-mail address is being protected from spambots. You need JavaScript enabled to view it. with a request for you upper limit to be increased. You need to state why its necessary for the amount to be raised above the current limit.

Note that this is only possible when using the live API [https]://www.pesapal.com.
Regards,

Lazaro Ong'ele
Web Developer

Skype: Lazrotep
+254-020-249-5438 ; +254-706-191-729
Dagoretti Lane, Off Naivasha Road.

Facebook: www.facebook.com/pesapal
Twitter: twitter.com/PesaPal
Helpdesk: support.pesapal.com
This e-mail address is being protected from spambots. You need JavaScript enabled to view it.

Re: parameter_rejected | Advice: unknown_error 12 years, 5 months ago #577

  • joshmuza
  • OFFLINE
  • Fresh Boarder
  • Posts: 8
The challenge is that even when i put a value less than 70,000 KES, the API is rejecting it. I dont know whether i am not formatting it the right way. Should the amount contain commas ? Should it have currency on it ? please provide an xml fragment containing sample data, which is formatted the right way.

Thank you so much.
  • Page:
  • 1