Reputation: 692
Hello you Ruby on Rails developer, i really need your help on this one..
I hire someone that promess he will install Paypal Payment, but he didnt. And i will not find him. Anyway..
I have used Ruby before, but im really a basic user, but I can read a lot, and follow guide, (if found)
My question ios
I have an APP that is basically a form, there is a formulary on 4 steps, I just need to add a status field in Database. (active, inactive) and make a 5th step on the form , so the user can Pay, in PHP , when i do this,
Paypal IPN gives me an answer, if positive (user active) , if negative (user inactive) .. Actually i learn it from here .. http://net.tutsplus.com/tutorials/php/using-paypals-instant-payment-notification-with-php/
Is there something similar for Rails??.. can i build a PHP step and "connect" it to a rails APP??..
Pls advaice , the plan was to buy the full and finish app on rails, why rails?, the guy who sell this told me was the fastest way, the problem Now is i dont have enough time, and i just need this to complete the work, if i change all this to PHP its gona take a lot of time
Upvotes: 0
Views: 523
Reputation: 50220
The tutorial you link to gives step-by-step instructions for configuring paypal and generating HTML code for a paypal button. All this is completely independent of your website, so if you are only comfortable working with PHP, as you imply, you can have your cake and eat it too: Follow the instructions, with one little modification, and code all the payment support functions in PHP.
Interactive: Follow steps 1, 2 and 4 to generate the raw HTML for your paypal button.
Rails: Once you have the HTML, you can't just "paste it into index.php", but need to embed it in your rails application. So your problem is not "how do I handle a paypal payment with Rails", but "how do I embed a fixed HTML snippet in my Rails app." Hopefully you can figure that out? I doubt anyone could help you without seeing how your app is put together.
PHP: The rest of the tutorial shows how to build a service that tracks payments. If you want to support the Instant Payment Notification and build a database to record payments, just follow steps 5-9 to create the service in PHP. Since no part of it is visible to end-users of your website, there's no need for any interaction with Rails.
You can ignore step 10, since you already have a working app.
Upvotes: 1