Pesapal.com

Forum

Welcome, Guest
Username
Password:
 

Problem with lineitems in post_xml
(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: Problem with lineitems in post_xml

Problem with lineitems in post_xml 10 years ago #1597

  • ajagwe
  • OFFLINE
  • Fresh Boarder
  • Skilled web developer and web consultant.
  • Posts: 9
I am having a problem when posting line-items in the post_xml. Please find below my sample post_xml with line items and the error i get

 
<?xml version="1.0" encoding="utf-8"?>
<PesapalDirectOrderInfo
>
<lineitems>
<lineitem
uniqueid="1"
particulars="Sample Description - 1 Month"
quantity="1"
unitcost="200.00"
subtotal="200.00">
</lineitem>
</lineitems>
</PesapalDirectOrderInfo>
 


Error I get from PesaPal

Problem: parameter_rejected | Advice: unknown_error_occured> oauth_parameters_rejected | request_xml_data

When I remove the lineitems (and the closing tag for PesapalDirectOrderInfo) - all works well. But I would prefer to have the line items. Please someone help with this.
There are 10 kinds of people in the world; those who understand binary and those who don't.

Re: Problem with lineitems in post_xml 10 years ago #1598

  • ajagwe
  • OFFLINE
  • Fresh Boarder
  • Skilled web developer and web consultant.
  • Posts: 9
The BB Code messed up the XML data

Please find beloe a link to it in Paste Bin

Post XML Data
There are 10 kinds of people in the world; those who understand binary and those who don't.
Last Edit: 10 years ago by ajagwe. Reason: add pastebin link to xml data as bbcode simply will not take in the data fully

Re: Problem with lineitems in post_xml 10 years ago #1599

Hi ajagwe?

Did you get to the bottom of this?

The code in the paste bin works just fine.

Re: Problem with lineitems in post_xml 10 years ago #1600

  • ajagwe
  • OFFLINE
  • Fresh Boarder
  • Skilled web developer and web consultant.
  • Posts: 9
Yes - I did find the error. Apparently the /> used at the end of the XML in the short version (without the line items has to change to a simple > when using the closing tag for PesapalDirectOrderInfo - removal of the / solved my problems.

Hope this helps anybody who may have had this problem.
There are 10 kinds of people in the world; those who understand binary and those who don't.
  • Page:
  • 1