I’m struggling to get the Payfast payment gateway working. (Self hosted)
The merchant details required by the processor is
> Merchant ID
> Merchant Key
> Pdt Key
When client clicks on “pay now” it passes through to the payment gateway’s site. However it returns errors of missing of mismatching info being passed to the gateway.
In sandbox/test mode it returns:
> merchant_id : ID is not a valid merchant id
In live environment it returns the following error:
> signature : Generated signature does not match submitted signature
Is there anyway I can log or trace the variables being passed from invoiceninja to the payment gateway to be able to start the debugging process?
To test whether the main fault lies with my hosting environment or with payment module of invoiceninja I created a free account on invoiceninja and it returns the same errors.
I tested to see which data is being pushed through according to your suggested method. It only displays the transaction details (see below, values modified for privacy purposes) yet I cannot see that it passing any of the relative merchant details (id, key & pdt). Is there a way to see if it passes that through to the gateway.
I don’t know whether it’s helpful or not but the developer reference on the payfast site states that the pdt method (which the invoiceninja payment driver is using) is deprecated.
>>> https://www.payfast.co.za/documentation/pdt/