Payment plugin for PayFast

  • Bill
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
7 years 8 months ago #103167 by Bill
Payment plugin for PayFast was created by Bill
I want to use PayFast for my payment gateway as it is particularly suited to South African conditions. I have a few questions:
1. I see that there is a PayFast plugin download for Joomla Event Booking and I would like to know whether I can simply purchase that and upload the plugin for Membership Pro?
2. If not, PayFast has sample php code that I can use, but then I am not sure how that will interface with Membership Pro. Are there particular requirements that Membership Pro needs in order for the interface to work?
3. I see that Joomla comes with OmniPay software - are you using that for all the payment plugins for Membership Pro?
I would ask you to do it for me, but I see that you charge quite a large price.
Please could you steer me in the right direction?

Please Log in or Create an account to join the conversation.

More
7 years 8 months ago #103168 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Payment plugin for PayFast
Hi Bill

Membership Pro has Payfast payment plugin available, see www.joomdonation.com/payment-plugins/mem...payment-plugins.html (look at MP Payfast payment plugin)

So you just need to purchase and install it. Please note that the payment plugin only supports onetime payment, not recurring

Tuan

Please Log in or Create an account to join the conversation.

  • Bill
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
7 years 7 months ago #103977 by Bill
Replied by Bill on topic Payment plugin for PayFast
Hi Tuan,

I did what you suggested and purchased the plugin for PayFast. I have also checked in at the PayFast site and set up a licence. The only problem is that the plugin just doesn't work. I have tried it on the sandbox and it worked partially but with membership being set to "Pending", so I guess the payment hasn't been communicated to my site. Given some of the reaction on this Blog to the same issue, I tried it on the "Live" basis with all the correct parameters being entered into the plugin screen. When trying to pay, I get the attached message from PayFast.
Now when I have a look at the South African PayFast website and what is needed to get the system to work, they require the URLs for:
* Contact Page (which I have and that is all OK).
* Success Page (I guess this is the one that is specified on the Plan Detail Page in MembershipPro - so all OK.
* Cancel Page. This looks like it is one of the Subscription Plan pages - but not one that I am using, so it is blank.
* Notify Page. This is the page that is meant to do all the heavy lifting is updating the database for a successful payment.
The third and fourth pages are unknown to me. Do I have to update these somehow? If so, where do I access them?
Finally, PayFast recommends that we use the ITN method as the PDT method is being deprecated. It appears that you are using the PDT method. PayFast have given me the code that needs to be installed and even though I am a bit of a beginner, I am prepared to try and include their code onto my site - but I need your help.
Please advise me on the way forward.
Regards,
Bill
Attachments:

Please Log in or Create an account to join the conversation.

More
7 years 7 months ago #103984 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Payment plugin for PayFast
Hello Bill

The URLs are actually set by Payfast payment plugin in the code. And we also use ITN method for integration, PDT is optional (you can just leave PDT key empty and it should be fine)

In this case, I think you can submit a support ticket sending us super admin account and link to subscription form, We will configure the payment plugin and test it using test merchant account provided by Payfast, then test and make sure it works before testing it further using your real Payfast account

Regards,

Tuan

Please Log in or Create an account to join the conversation.

  • Bill
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
7 years 7 months ago #103992 by Bill
Replied by Bill on topic Payment plugin for PayFast
Hi Tuan,

Many thanks for your offer of help.

Before sending off the support ticket I thought I would give it one last try, but this time I created a fictitious member but using my credit card, and it worked! Don't know why it didn't work using my own details, but I can try and sort that out. So no need for support ticket at the moment. Thanks anyway.
But please help me with the Cancel Page - it is still not showing anything and I suspect that it has something to do with the fact that a new applicant who gets to that stage and cancels the payment is now regarded as a member but is shown as pending and not enabled or activated. Can you tell me specifically what page is the Cancel page and where can I find it in the back end?

Regards,

Bill

Please Log in or Create an account to join the conversation.

  • Bill
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
7 years 6 months ago #104516 by Bill
Replied by Bill on topic Payment plugin for PayFast
Hi Tuan,

I am still battling to get the "Cancel" page to show properly. This is the page that should show on the front end when an applicant for membership has chosen his plan and selects the credit card method of payment using PayFast. He then cancels the process and the paywall returns him to my website. As I understand the return address is the default Membership Plans page. The page that I have setup is called "Membership Options" and has a menu Item id = 2637.

When a cancelled payment returns to my website there is nothing on the page other than "Subscription Plans" and our logo. The URL on the browser is:

bhaslam.co.za/joomla30/index.php?option=...86-ca28-1fb7e9134a58

If I delete the "&id=70" it then works OK. The article with id=70 is in the trash can and I have no idea why it is trying to use that article.

Please can you help me?

Regards,

Bill

Please Log in or Create an account to join the conversation.

More
7 years 6 months ago #104545 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Payment plugin for PayFast
Hi Bill

Could you please open the file components/com_osmembership/plugins/os_payfast.php, find the code task=cancel and replace it with view=cancel, then check it again?

The link above would become bhaslam.co.za/joomla30/index.php?option=...86-ca28-1fb7e9134a58

You can go to Membership Pro -> Emails & Messages, find the message Payment Cancel Message and change it to meet your need

Regards,

Tuan

Please Log in or Create an account to join the conversation.

  • Bill
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
7 years 6 months ago #104553 by Bill
Replied by Bill on topic Payment plugin for PayFast
Hi Tuan,
Nothing in that file looks like "task=cancel". Herewith a screen shot of the listing of os_payfast.php
Could it be in another file, perhaps?
Regards,
Bill
Attachments:

Please Log in or Create an account to join the conversation.

More
7 years 6 months ago #104570 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Payment plugin for PayFast
Sorry Bill. It is on a different file. Please get this file, unzip it, upload to administrator/components/com_osmembership/libraries/mpf/payment folder, then it should work as expected

I will include this change into core package in next release

Tuan
Attachments:

Please Log in or Create an account to join the conversation.

  • Bill
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
7 years 6 months ago - 7 years 6 months ago #104592 by Bill
Replied by Bill on topic Payment plugin for PayFast
Many thanks Tuan. I really appreciate your help!

The changed file results in a page which only has the message that I have included in the "Email and Messages" section of the back-end, but nothing else. This is strange as the url points to the menu item that includes the plan options, but doesn't show for some reason.

bhaslam.co.za/joomla30/index.php?option=...=2637&pt=......21651

I guess as a workaround I could amend the php program that you have sent to simply redirect to the plan options page, but it wouldn't have any explanation or instruction for the applicant. Alternatively, I could create a new page with the explanation and instruction with a button to redirect them to the plan options page.

Do you have any better suggestions?

Regards,
Bill
Last edit: 7 years 6 months ago by Bill.

Please Log in or Create an account to join the conversation.