|
Welcome,
Guest
|
|
|
Hello,
I have a use case that doesn't play nice with the response format received from the API. I am working on an API project that needs payment processing. Does Pesapal have other (JSON, XML) response formats available? The API is supposed to make payments on behalf of connected tenants (users of the API). Can anyone on here point me to any direction I should go with this? Currently, I am having to deal with the HTML response from the Pesapal API which is more useful with iframe implementation, not in the case of my use case. Thanks |
|
|
|
Hi faddai,
Just a quick one, are you talking about the response after a user completes a payment(callback URL) or the initial request to PesaPal to load the payment's page, in this case the HTML posted back with the payment options? |
|
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. |
|
Hi lazro,
The latter, the initial request to PesaPal to load the payment's page. And generally, all responses received from the API. Thanks for the response. |
|
|
|
Hi faddai,
Currently we can only return HTML. We do not have any other secure way to load the payment options. What difficulty are you encountering trying to use the HTMl we give back? |
|
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. |
|
Ok.
I am currently working on an API for a service. During payments, requests are made to the API (my project) which handles requests to Pesapal. So, in my case, am using the Pesapal API as a third party. I need to be able to intercept responses from Pesapal, HTML is useless to me at the API level. What's more relevant to me is the data I am receiving from Pesapal. How can I get well formed (probably JSON) data format from Pesapal. If that's not feasible now, how do you propose I approach this? Thanks. |
|
|
|
Hello ,
Further to this issue we have multi tenant saas application that needs the payments to be handled by the api and release resources as needed to the clients of the tenant. What would it take to get data in other formats other than html . Is there anyone on the forum or that is known by someone here that has for instance been able to integrate this into native non browser based application . How would one for instance be able to implement an inapp mobile application . |
|
|
|
Hi All,
We currently don't have other way to load the payment options on your application. The available APIs load the payment options in a HTML format. If you are on a mobile device, you could opt to use PostPesapalDirectOrderMobile API instead of the commonly used PostPesapalDirectOrderV4 API. This has a mobile friendly user interface. Let's work with this as our technical team works on another mobile friendly solution. Apologies for any inconveniences. |
|
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.
Last Edit: 12 years, 2 months ago by lazro.
|
|
Hello lazro,
Can you please provide more details on PostPesapalDirectOrderMobile or better still a link to documentation on it. I can't find any information on it in the API reference. Does it have same method signature as PostPesapalDirectOrderV4? Thanks. |
|
|
|
Hi faddai,
Replace PostPesapalDirectOrderV4 with PostPesapalDirectOrderMobile. Everything else is the same. |
|
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. |
|