Can I intergrate paynow with a rails app?


#1

I have a rails online store that I’m working on I want to know if paynow can be intergrated with a rails app


#2

@gitnyasha we don’t have a plugin (gem) but you can create an integration using our Restful API. The documentation can be found here https://developers.paynow.co.zw/docs/paynow_api.html


#3

I’m trying to create a ruby gem and when I initiate a transaction

  1. paynow = Paynow.new(‘INTEGRATION_ID’, ‘INTEGRATION_KEY’,‘http://’,‘http://’)
  2. payment = paynow.create_payment(‘Order #100’, ‘[email protected]’)
  3. payment.add(‘Bananas’, 2.50)
  4. response = paynow.send(payment)

I get this error
status=Error&error=Invalid+Id
but I put my intergration_id correctly


#4

Are you able to check your logs and look at the actually http request thats being sent?


#5

Let me test it on a production app, I was testing the gem in the ruby shell


#6

It’s working now