Open lesliepoolman opened 6 years ago
Hi @lesliepoolman
Active merchant plugin isn't maintained anymore. If you use the newer one then you should be able to transact as you want.
hi @JGPage
Thanks for the response! I do not have an active_merchant gem on my rails app and I based this payfast integration off of other comments i found here in the offsite_payments issues. Can you please expand and explain your comment to me?
Hi @lesliepoolman
Apologies, thought you were using the PayFast code that was in use previously, found in pay_fast.rb or are you using it?
If so, you would need to make some modifications as it doesn't incorporate the passphrase from what I remember. This would explain the behaviour you are seeing when removing the passphrase from the sandbox system.
Could you provide me with the email address you are transacting with on Sandbox? I'll then see if I can see anything.
I based my code off of this from payfast: https://github.com/pawel2105/payfast_rails_example and issue #80 and i read through the code in pay_fast.rb as well, so kind of a jigsaw of pieces that made sense to be put together in my case.
Hello all,
This is the first time I am creating an issue on github so please be gentle :smile:
I have a Rails 4.2.9 store app where i have been using the Payfast payment system successfully for a while and now i want to add a passphrase to use the recurring billing on the same Payfast account on a different site.
When I test in my local env using ngrok and payfasts sandbox with a passphrase i get a http 400 error code. When I remove the passphrase from the sandbox the payments go through and my controller acknowledges them
This is the code I am using at the moment based off of the example from payfasts sample code.
Please let me know if you have any suggestions or questions