How to integrate payment in React Native? - react-native

I have made a simple React Native shopping app with CodeIgniter backend.
Then I am new to the payment integration. How to integrate payment in React-Native?
Is it possible to integrate paypal without backend? Backend is inevitable or can it be done without backend? In only frontend, such as calling payment webview.
Any reference link or help will be appreciate. Thank you.

Without server-side coding, it cannot be done.
Even though it is just a web view with transaction details, we need to maintain the value as an encrypted format while sending to the service URL and receiving the response from them and this encryption should be done on the server-side.
Also for security reason, we need to maintain database in the server-side to store the basic data of the transaction to make your system trustable one. And there are a lot more other parameters.
Without these kinds of basic security implementations, payment service guys will not allow your app to live.
For paypal integration, follow this link to get some basic understanding.
paypal integration
Thanks

Related

Do you need to create a web service to be able to support payments/donations via Apple Pay in a React Native app?

I'm creating an app using React Native (using Expo, for what it's worth) and would like the app to be able to support donations via Apple Pay.
Expo's Stripe documentation includes a Snack that demonstrates how to support Apple Pay, and the documentation mentions that the Snack uses a Glitch server.
Furthermore, the Stripe documentation also seems to suggest that I need to create a web service to make things work ("For security reasons, your app can’t create these objects. Instead, add an endpoint on your server that...").
I had assumed that Apple Pay took care of these sorts of things behind the scenes and that payments would be processed by Apple's own servers. Do I really need to create a web service to support donations via Apple Pay?
Yes, absolutely, without doubt, you need a server for that. The payment intent is created with a secret key and your secret key needs to stay secret on your server.
Anything you put on the client is insecure and can be manipulated by those with bad intent.
If you wanted to have a client side only way to collect payments you can use Stripe Checkout, but from what I hear, it's fairly limited Related Question

Reuse web integration of stripe payment gateway in react native

We are building an e-commerce application using react native. Now we need to integrate Stripe payment gateway in it. We already have the web version of the application is available.
So is it possible to reuse the payment gateway integration of the website?
By using the webview?
Like, we will be load a webpage(our site's page) in webview which basically collects the information from user and process the payment. Everything is done by the webpage.
Does this approach have any security issues?
Will it make an issue while publishing the app to playstore or appstore?
Stripe's web components all use iframes which by design cannot be accessed by 3rd parties, so from a security point of view using a webview with Stripe Elements is just as secure as using them on your website.
As for whether this is an issue with the various app stores, that depends on your business model and what your product is. I suggest you reach out to Google and Apple directly on what you're trying to do, as they both have draconian rules on when you can use a payment processor like Stripe and when you have to use their in-app purchases systems.

I can't log in to my dashboard through a shopify api

I cannot log in to shopify through an api.
I want to build a private app with a shopify api, and I just created a laravel project and connected it to shopify through an api. I am using 'ohmybrew' and wrote my api credentials in my config. I tried to log in through an api but I get an error as follows.
Oauth error invalid_request: The Shopify API application does not support oauth
I expected to go to my dashboard but it did not work. It's my first time to work with shopify, and I am baffled as to what to do. I would appreciate it if someone could tell me what I am doing wrong.
oAuth is well established. You could probably say almost all systems with a public API support oAuth. Shopify is no different from any of them, and they all follow the same pattern. So it seems your attempt to follow that pattern is incorrect. The best thing you can do then is to look up some tutorials on how to connect to an API using oAuth, with an emphasis on your scripting language so you can have some solid code examples to follow. Once you master oAuth, you'll be able to see your dashboard.

Best way to handle User authentication + Push Notifiations in Ionic

Parse? Auth0? Firebase? Ionic Platform?
I'm so lost... Can anyone help me?
If you are looking for a "backend in a box" then If you are creating an API meant to be consumed by an Ionic application, JWT is probably what you are looking for. Parse, Auth0 etc may help. I have not used them. However, if you are building your own backend it will be dependent on what server side framework you are using. It's safe to say that JWT is a good approach on the client side(angular/ionic), but you will need a serverside authentication and account system such as Passport for Node, Devise for Rails etc.. Either of those will handle basic authentication and account management. You will need a JWT layer as well to produce and manage tokens for the client. You can also create a homebrew system if you choose to but the frameworks I mentioned make things quite a bit easier.

Unable to get context part in Bigcommerce auth callback request

I am working with Bigcommerce api using oauth. I am currently in development phase. I have given auth callback url as
http://localhost:3000/resource_callback.
I am unable to get store hash in context. It is only sending scope, and code. What am I missing here? Just using http instead of https is the reason? Please help me with proper direction.
If you are receiving the Auth Callback Request but it only has code and scope query properties then the problem is how you are installing your app. At this time it is necessary to install an app directly through your store's Control Panel, rather than using a link to do the install (as is common with most oAuth implementations). The use of a link for the install is something that will likely be added in the future but oAuth on BC right now is geared towards public applications installed through the store.
That being said, it is possible to make oAuth credentials for a store even without making it a public application. Please follow the long answer seen on this question:
Can BigCommerce Private Apps use OAuth
This will cover the full process for generating oAuth API tokens from registering an app to installing into a store and beyond. Based on your question you should start at the Generate the Auth Callback Request section. If you follow the steps there then your Auth Callback Request will include the context property as well as the other two.
Update
You can now generate oAuth tokens in a store from Advanced Settings > API Accounts. As a result it is no longer necessary to install a draft app into a store for the sole purpose of generating oAuth tokens. You will still want to do this if you are developing an app for the BC App marketplace or developing a user interface for your app that you want to live in the Control Panel of the store.
Just went through the same thing. See here: Bigcommerce Authentication code. Let me know if you need more details. SSL is mandatory.