Paypal Rails Payment - ruby-on-rails

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

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.

Related

Stripe Newbie trying to implement Stripe payment on iOS application

I am a newbie in iOS, for my college project we decided to build a meal delivery app which will take payments. For that i thought of implementing Stripe payment. My initial submission would be simply to perform a dummy transaction.
So I went to the github resources folder and was reading the Readme section of Non-Card Payment examples
https://github.com/stripe/stripe-ios/tree/22.1.0/Example/Non-Card%20Payment%20Examples
Based on the instructions
I created an account with Stripe
but could not find the workspace file
If someone could help me out here or atleast point me to the right direction would be really helpful
Thank you
Zawad
It supposes to be the xcworkspace file at 2 layers above.
But nevertheless, you should follow this detailed Doc instead: https://stripe.com/docs/payments/accept-a-payment?platform=ios
I would highly recommend using SwiftUI and SPM for fast start up. Please watch the below video from Azam Sharp who talks about how it works and already has a remote node.js server to test.
https://www.youtube.com/watch?v=De7EL_1jv0c
https://github.com/azamsharp/FruitStoreStripeAPI
https://glitch.com/edit/#!/mango-persistent-organ
Let me know if you have any issues or questions!

Xcode 6 - iOS8: Allow Master User To Update Information

I was wondering if anyone could point me to any useful tutorials on allowing a master user to update information for their app. I am looking into creating an application for a local restaurant and I want the owner to be able to update information like the soup of the day and such by themselves.
I have been looking into JSON and CMS for this, but I am unable to find any useful information regarding iOS 8 or xCode 6. If anyone could provide me with this information, or any other suggestions on how to achieve this I would be very grateful!
(I am using Swift not Objective-C)
This is not a code issue, rather it is a development concept issue. You have many choices including making an API that is updated by the restaurant. The app then connects to the API and gets the recipes. If you feel you need to do this via the App make a special username that is allowed access to modify the menu. This can be accomplished via matching username exactly or via using a regex. It all really depends on the structure of your app platform.

Setting up Stripe Cloud Module in Parse

apologies beforehand for my naïveté. I started learning Obj. C about six weeks ago so I'm very new to iOS development, a lot of things are not very obvious to me still.
I am building my second app using Parse. This time it is an e-com app so would like to use Apple Pay with Stripe as the payment provider. Would like to use Parse as the server for Stripe.
I have already linked (I think?) Cloud Code to my Parse account's app (I guess it's all in JavaScript? so that was pretty confusing for me).
But I'm not even sure where to start with the initial Parse/Stripe documentation (https://parse.com/docs/cloud_modules_guide#stripe). Where am I supposed to put the following code:
var Stripe = require('stripe');
Stripe.initialize('mySecretKey');
As Lyndsey Scott noted, I could see in Parse's example app that the code goes into main.js.

How to display live tweets in twitter-vibe using datasift in Ruby on Rails

I am trying to configure an existing Ruby on Rails application (https://github.com/richcaudle/twitter-vibe) with datasift. Application displays live tweets of a user on the page. The datasift authentication parameters are set in config/social-config.yml. I have provided the correct authentication parameters in config/social-config.yml but yet the tweets do not show up. Only the html layout is displayed. Entire application is available in the same github link. I needed some help in fixing this application. What am i missing?
I created this app a while ago, before I joined DataSift. It's not something I've had time to maintain. I've added some instructions to the Readme file which I hope will help, I've also updated the app to use the latest DataSift library.
You'll need to have a Twitter, DataSift and Pusher account to get it running. Fortunately all are free or give you a free trial!
Probably all you were missing is that you need to start the data-collector & tasks scripts in /script to get it all running. I've added these to the Readme.
If you are going to use this in production or in public, please adapt the demo to meet Twitter's Terms of Service (for instance the display requirements). I created the app as an internal demo.
https://dev.twitter.com/terms/api-terms
Thanks,
Rich
Well, you can always use the datasift ruby library. The repository that you mentioned; probably you might need a pusher account. You can use the datasift library.

How to integrate carrier site using Rails application

I am integrating the UPS, USPS, DHL and FEDEX with my Rails application.
For that I am using 'trackify' plugin to find the carrier type for given Tracking Number and for also finding the XML response from the respective tracking site.
I want a complete guide for each of the above about how to integrate tracking API's?
You need to go to the companies' sites themselves to get that information. Once you've done that then come back if you have any questions about actual implementation. Sorry for leaving this as an answer but I can't leave comments yet.

Resources