Setting up Stripe Cloud Module in Parse - ios

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.

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!

JSON Response with API.AI

I've been searching high and low on how to make use of Webhook in API.AI. I'm new to API.AI in general.
My objective is to integrate API.AI into my Swift Application which i have already done. I want to get a JSON Object from a webpage and use those data to manually add them as Entities/Intents/Response/etc by sending back a request to API.AIand then create them.
Tried posting on DialogFlow forums but i guess it's pretty inactive.
The whole workflow is..
Integrating API.AI into my Swift Application for users to use.
I have the base of the AI now.. Intents lead to Entities in a sense whereby users ask for a type of study, and an Entity [Studies] is triggered, so meaning from the Intent 'asking for a type of study' the response would be like Science, or something. This reply i want to get it from the JSON that i mentioned above, from a webpage. Is there any way to actually set these responses? Create entities etc, with my Swift Codes.
I hope it's clear enough.. And hope that anyone can point me in a direction as i can't seem to find any articles or somewhere to follow on it?
May be its late for answering this question, but few days back, I came across a similar situation. I countered it and wrote a tutorial series for the same. Here's the link for tutorial. It might be useful for those who are looking to use API.AI, or want to integrate it in iOS project.
Building a Chat Bot having AI is easy

Can a Meteor web app serve data to an iOS app?

Pretty straight forward question i think. I have created a web app in meteor and its using mongoDB storage. I have UI to update the data in the backend through the web app.
The question then becomes, I have designed an iOS app that i would really love for it to read the data being served to the web app from the mongoDB. As it stands, the app takes a url to a JSON file that i update regularly and serializes it accordingly. I want to pass on the tasks of updating the backend but exposing company employees to the potential mess of JSON backend, where missing/deleting a bracket / brace causes the app to break is out of the question.
My question is, since the meteor web app stores data as JSON documents, is there a way i can access the same JSON from the iOS app? It would really help because then, the person updating the backend only deals with UI, not code. I know this is a pretty broad question, but any pointers would be fantastic. Links, tutorials, frameworks to learn... anything. I've been googling around but can't seem to find anything solid.
Thanks!
You'll want to look into using one of the many iOS based DDP clients, like this one. With these libraries you can connect native iOS apps to the backend of any deployed Meteor app.
As far as I understand, you are looking for a way to get/update the data of your meteor server from the IOS app.
To do that, you can expose an API, like a REST one. Basically, your IOS app will call your Meteor server via HTTP and send/receive JSON data. Like that, you can get your collections, update, add, delete their items as well. There is a lot of literature around REST.
I used a very old one that I do not recommend because it is not maintained anymore, I will put the link anyway Old Rest API.
I invite you to have a look at atmosphere, the meteor package library: Atmosphere. I did a quick search on it and I found this package that looks promising: Simple Rest.
Have a look at the packages on Atmosphere, you can use 'rest' as keyword and pick the one that fits your needs. I am especially thinking of security ;).

Paypal Rails Payment

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.

Request Last Update Date From Vanilla Forum

I have an iOS app that I would like to interface with an Vanilla forum in a very simple way. I would like the iOS app to request the last update date of the forum. That way I could indicate to the iOS app user the forum has been updated since their last visit.
I am guessing the way to go would be using Vanilla's REST services, but I am unsure of how to request the last update date, or if its even possible using REST.
I am studying information at this link: Vanilla REST Services and also searching through the PHP code to find something that might help.
Is there an easier way to do request the last update date of a Vanilla forum for use in an iOS app? If so, what is that easier way?

Resources