Pesapal.com

Forum

Welcome, Guest
Username
Password:
 

Parameter Rejected
(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

Parameter Rejected 11 years, 8 months ago #791

  • forumbee
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
Greetings, I've been running pesapal fine for the past few days. but all of a sudden today i get this message

Problem: parameter_rejected | Advice: unknown_error_occured> oauth_parameters_rejected | Sequence%20contains%20more%20than%20one%20element

What could be wrong?

Re: Parameter Rejected 11 years, 8 months ago #795

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

Seems you are passing incorrect data to the xml files which PesaPal is unable to process. Can we see the xml you are generating? You can also have a look at this example to see what parameters are excepted from your end. developer.pesapal.com/forum/2-pesapal-in...-pesapal-php-example
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 11 years, 8 months ago #797

  • forumbee
  • OFFLINE
  • Fresh Boarder
  • Posts: 3
Looks like the problem was elsewhere or perhaps with the demo api. I let the code sit for a few hours without modifying anything and it worked again.

Thanks Lazro.

Re: Parameter Rejected 9 years, 6 months ago #1868

Hi guyz i've been having trouble integrating the PesaPal Demo API on my site using Php.All i'm getting is this error :


Problem: parameter_rejected | Advice: unknown_error_occured> oauth_parameters_rejected | request_xml_data


What could be the issue?Here are the xml parameters being passed to the OAuthRequest.


$post_xml = "<?xml version=\"1.0\" encoding=\"utf-
8\"?><PesapalDirectOrderInfo >"
;
 
$post_xml = htmlentities($post_xml);
Last Edit: 9 years, 6 months ago by bryosabian.

Re: Parameter Rejected 9 years, 6 months ago #1869

Hi bryosabian,

please echo the $post_xml and post the code here.

Re: Parameter Rejected 8 years, 5 months ago #2114

  • xlock
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
<?xml version="1.0" encoding="utf-8"?> <PesapalDirectOrderInfo ><LineItems><LineItem UniqueId="1" Particulars="Mouse" Quantity="1Pcs" UnitCost="400.00" SubTotal="400.00" /><LineItem UniqueId="2" Particulars="Chicken" Quantity="2Pcs" UnitCost="450.00" SubTotal="900.00" /></LineItems>

This is my own response with the same error as above. I assume this closing tag </PesapalDirectOrderInfo> is introduced by the class. Either way I introduced it just to check and still!!?

Re: Parameter Rejected 8 years, 5 months ago #2116

  • xlock
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
Found my error.

The quantity value should be an integer.
  • Page:
  • 1