|
Welcome,
Guest
|
|
|
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 ? :) |
|
|
|
Figured it out. Included the
class.XMLHttpRequest.phphttp://code.google.com/p/bugscripts/downloads/detail?name=class.XMLHttpRequest.php |
|
|
|
hey are u integrating with an Ecommerce system?
|
|
|
|
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.
|
|
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
|
|
|
|