简体   繁体   English

贝宝Rails付款

[英]Paypal Rails Payment

Hello you Ruby on Rails developer, i really need your help on this one.. 您好,Ruby on Rails开发人员,我真的需要您的帮助。

I hire someone that promess he will install Paypal Payment, but he didnt. 我雇了一个会说他会安装Paypal Payment的人,但他没有。 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) 我以前使用过Ruby,但实际上我是一个基本用户,但是我可以阅读很多东西,并按照指南进行操作(如果找到)

My question ios 我的问题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. 我有一个基本上是形式的APP,有4个步骤的公式,我只需要在数据库中添加一个状态字段。 (active, inactive) and make a 5th step on the form , so the user can Pay, in PHP , when i do this, (活动,不活动)并在表单上进行第5步操作,以便用户在执行此操作时可以使用PHP付款,

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/ 贝宝IPN给我一个答案,如果是肯定的(用户活动),如果否定的(用户不活动)..实际上我是从这里学到的.. http://net.tutsplus.com/tutorials/php/using-paypals-instant-付款通知与PHP /

Is there something similar for Rails??.. can i build a PHP step and "connect" it to a rails APP??.. Rails有类似的东西吗?..我可以构建一个PHP步骤并将其“连接”到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 请先说一下,计划是在rails上购买完整和完成的应用程序,为什么要在rails上卖?那个人告诉我是最快的方法,问题是现在我没有足够的时间,我只需要这个就可以完成工作,如果我将所有这些更改为PHP,它的使用时间会很长

The tutorial you link to gives step-by-step instructions for configuring paypal and generating HTML code for a paypal button. 您链接到的教程提供了有关配置贝宝和为贝宝按钮生成HTML代码的分步说明。 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. 所有这些都完全独立于您的网站,因此,正如您暗示的那样,如果您只喜欢使用PHP,也可以轻松地吃蛋糕:按照说明进行一些修改,然后在中编码所有付款支持功能PHP。

  1. Interactive: Follow steps 1, 2 and 4 to generate the raw HTML for your paypal button. 交互式:按照步骤1、2和4生成用于Paypal按钮的原始HTML。

  2. Rails: Once you have the HTML, you can't just "paste it into index.php", but need to embed it in your rails application. Rails:一旦有了HTML,就不能仅仅将其“粘贴到index.php”,而是需要将其嵌入到Rails应用程序中。 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." 因此,您的问题不是“我如何使用Rails处理贝宝付款”,而是“如何在Rails应用程序中嵌入固定的HTML代码段”。 Hopefully you can figure that out? 希望你能弄清楚吗? I doubt anyone could help you without seeing how your app is put together. 我怀疑有人会在没有看到您的应用程序如何组合的情况下为您提供帮助。

  3. PHP: The rest of the tutorial shows how to build a service that tracks payments. PHP:本教程的其余部分显示了如何构建跟踪付款的服务。 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 . 如果要支持即时付款通知并建立一个数据库来记录付款,只需按照步骤5-9 在PHP中创建服务。 Since no part of it is visible to end-users of your website, there's no need for any interaction with Rails. 由于您的网站的最终用户看不到任何内容,因此无需与Rails进行任何交互。

  4. You can ignore step 10, since you already have a working app. 您已经可以使用应用程序了,因此可以忽略第10步。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM