Hi,
Basically the settings page is for you to put the names of the input elements of the payment form. The payment form should then be posted to another page that has the pesapal button.
Im still working to make this much more user friendly, do you have a specific way you want it to work. For example, I can create shortcode products that allow users to pay via pesapal.
Thanks for the response. I understand the concept now but the plugin still fails to pick my form data. I am having this error:
Problem: parameter_absent | Advice: > oauth_parameters_absent | Reference
I have used the following settings:
Invoice Form name: reg_form (i assumed this is the name of the HTML form)
Email Form name: billing_email (an input in the HTM form)
Total Cost Form name: reg_fee (an input field in the HTML form as well)
Function to be called: blank. (Not sure what to put here)
Please help me to resolve this.
Thanks
Hi,
I have made an addition now you can use Javascript which I think will be better for you. So you can submit the normal form via ajax and return the email and total amount in KES back as the response. Then call the function
pesapal_pay_no_invoice(parentdivId,email, amount)
Where parentdivId is the ID of the div you want pesapal gateway to load.
Hello Paul.
I have quite a long form and would prefer separating the checkout page from the form. I want to redirect the user to a check out page where paying immediately using Pesapal is only an option. I already have this set up (the form and the checkout page). However, I am getting this parameter_absent error:
Problem: parameter_absent | Advice: > oauth_parameters_absent | Reference
Upon studying the plugin code, I saw this line $reference = $form_invoice; which you then pass to Reference=\"".$reference."\" in the $post_xml. I suspect the issue is with my Invoice Form name on the settings page which leads to nothing being passed to the Reference attribute.
Could you please offer guidance using the initial concept?
Thanks
Reference is the generated invoice id.
Can you check the transaction log if the invoice-id is being saved? I’ve committed another version that will set a default invoice-id if none is provided. Please try now
Great. You have helped a lot mahn. The auto-generated invoice ID is a genius idea for my case. It seems to be working fine now. Thanks for the plugin.
As an improvement, could you think of a way to load the iframe while maintaining the wordpress site styling?
Either way, you have done a great job.
Thanks 🙂 Im working on something to make it load on another page and not an iframe 🙂 the issue is Pesapal handle the styling 🙁
It’s actually loading fine now; without messing the default styling. I guess it was an issue with my page template. The fact that you even made the frame responsive makes your work legendary. :). Loading on a separate page may not be a good idea as many people may want to maintain their site header, sidebar and footer on the payments page.
Thanks:) I know want to make it plugabble to existing popular e-commerce plugins on WordPress
I will be following the progress. Thanks again
Hey Paul
I do not have much knowledge in coding and design hence i am unable to intergarte this pluggin on my site http://iwork.sokolangu.com/
It is basically a service site that will work pretty much like fiver
Could you do it for me for a small fee?
Hello unlocksolutions.
I can do it for you for a small free. Contact me on paultitude[at]gmail[dot]com