Pesapal.com

Forum

Welcome, Guest
Username
Password:
 

Error when querying for status
(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: Error when querying for status

Error when querying for status 13 years, 4 months ago #124

  • bigphil
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
Hi, I'm getting the error "Fatal error: Class 'XMLHttpRequest' not found" when doing a query for a status check. I'm using the Php sample integration code and the line giving the error is
$ajax_req = new XMLHttpRequest();

I know it is probably something simple but I can't see it. Any ideas ? :)

Re: Error when querying for status 13 years, 4 months ago #125

  • bigphil
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
Figured it out. Included the
class.XMLHttpRequest.php
from
http://code.google.com/p/bugscripts/downloads/detail?name=class.XMLHttpRequest.php
and all is fine now

Re: Error when querying for status 13 years, 4 months ago #126

  • komujohn
  • OFFLINE
  • Senior Boarder
  • Posts: 51
hey are u integrating with an Ecommerce system?

Re: Error when querying for status 13 years, 4 months ago #129

  • bigphil
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
Yes I am.

According to the documentation there are 4 api methods

1. PostPesapalDirectOrderV4
2. QueryPaymentStatus
Use this to query the status of the transaction. When a transaction is posted to PesaPal, it may
be in a PENDING, COMPLETED or FAILED state. If the transaction is PENDING, the payment may
complete or fail at a later stage.
Both the unique order id generated by your system and the pesapal tracking id are required as
input parameters.

3. QueryPaymentStatusByMerchantRef
Same as QueryPaymentStatus, but only the unique order id genereated by your system is
required as the input parameter.

4.QueryPaymentDetails

2 and 3 appear to be the same in the pdf documentation but is correct in the online documentation.

Also is there a query that returns the amount paid? QueryPaymentDetails does not
Last Edit: 13 years, 4 months ago by bigphil.

Re: Error when querying for status 13 years, 4 months ago #131

  • komujohn
  • OFFLINE
  • Senior Boarder
  • Posts: 51
I don't think there is a query that returns the Amount paid, since the user does not have the opportunity to change the amount payable and the transaction will only return a "COMPLETED" status when the amount is paid in full
  • Page:
  • 1