How do I login with PayPal to save user_id? - ruby

Is it possible to use a "login with PayPal" button through the PayPal API? I want to use it as a twitter signin to link your paypal account once to the app, then have it store a user_id.
Is this possible?
I want some kind of 'connect to paypal' behaviour. Think about a shop where goods are sold and get paid to the shop onwers paypal account. The shop owner must verify (connnect) once his paypal account and the app will then know where all payments must go.
It is also possible to just ask for the shop owners paypal email account, but this ain't really low level in my opinion.

If this even was posssible to do I wouldn't do such a thing for authentication.
The reason is, the user could easily assign that he has to pay for every login with this procedure.

Related

Paypal Integration for users on my web panel

I'm quite new to laravel and payment integration.
I want to give an option to my web panel users to connect their paypal account with their own personal account on my web panel to receive payments.
and I want to give them a connect button for them to proceed.
Can someone please help me achieve the same.
Thanks in advance
You can use Log in With PayPal, possibly with the Partner Referrals API, to have them log in and get their PayPal account ID. This can be set as a payee.
Alternatively, you can ask them for their Client ID and/or Secret for a live REST APP, which they can log in there to obtain.

Square E-commerce Api integration to clients website

Sorry if this is a simple question but I am trying to understand the best way to do this and I am new to Square development. I have a customer who has the Square chip card reader device on their cell phone and they are taking credit cards today. They also have a website which is using a oscommerce shopping cart and authorize.net gateway for processing orders on their website. What they want to do is just use Square and change the website so it integrates with their existing Square account. I understand the basic process of how to do this with the E-commerce API but I am a little confused on the developer / merchant Credentials.
This is a one off development for them so I do not think I want to use the oAuth method.
If they are a merchant today do they have to sign up under the developer area and create a app using the Application Dashboard so that they have a personal access token and application ID that I would use on their website? ( I already signed up and have a developer account)
What information about a sale is shown on their Square account once I integrate the secure SqPaymentForm payment form onto their website? Today all the details on the order are in the shopping cart such as what the customer ordered, the shipping address etc. Is this now going to appear on the Square account for them or do I still need to maintain this information in the shopping cart? It would be good if they could use a single interface such as the Square account.
thanks for your help.
If you don't to use OAuth, you'll have to have the merchant go to the Square Developer Portal and give you their personal access token and application id.
There are many different ways you can implement an online store, so where the information lives is all up to you. You probably want to keep your existing shopping cart functionality and just implement square for the payments, as that will likely be easiest and ensure you have all the data you want.

Deciding on customer id and saving payment method after transaction in Braintree

I would like to have the following workflow on our website with Braintree payment gateway: a customer which is or isn't logged in pays with a credit card (using Braintree hosted fields). If the payment is successful and customer is not logged in, we offer him to login or register in order to save the payment method.
Unfortunately, that means that in Transaction.sale I cannot use the existing customer id, since the customer is not yet logged in our system. And after the transaction is complete, I cannot reuse payment nonce to create payment method and assign it to our customer.
One possibility I am considering is to always vault the payment method during transaction (with a new Braintree customer id) and than to assign this customer id to our user's account if he logs in. However, that can result in one user having multiple Braintree customer ids which would complicate later payments with saved cards. (Plus I have to vault a lot of fake customers and payment methods that will never be used again since majority of our customers never create user accounts.) Is there a better way?
Full disclosure: I work at Braintree. If you have any further questions, feel free to contact support.
You are correct. To achieve this flow you would need to create a new customer and payment method each time. The good news is that Transaction.sale does not require a customer id, just a payment method token, so you can associate the payment method token with your app's customer id and you won't need to maintain a relation to the customers in the Braintree control panel.
For clean up, you could do the following:
1) If the user declines the option to save the payment method, delete the customer and payment method token immediately.
2) If the user closes the application without making a decision one way or the other, you could have a periodic process to clean up unclaimed customers and payment method tokens.

Paypal Magento integration

I've set the integration up in magento and it connects to paypal fine. The problem is, that it only allows the customer to pay using their paypal account when directed through to paypal. Ideally what I want is to give the user the option to pay with credit or debit card or paypal. I have had a look in my paypal account and I think I need to grant API access but it is asking for a third party API username, I assume this is magento but where can I find the Magento API username? This is driving me nuts! Any help woulkd be appreciated please.
Things that hinder guest checkout.
- if it's Express Checkout
go to your payment method (express checkout); advanced settings| Enabled Guest Checkout and click save config; top right corner
other instances may be:
1. The paypal account is not a business account
2. The paypal account does not have financials confirmed to the account
3. the account is not verified; see #2
4. You have guest checkout turned off in the paypal account under:profile / selling tools / website preferences / paypal account optional - toggle to 'ON'; scroll down and save
5. As Andrew mentioned; if you have access to the Mage core files for PayPal, can inject SOLUTIONTYPE=SOLE
6. Note ** if someone has checkouted with paypal on another site, the guest checkout option will go away because it's tied to an session ID via the browser which can be cleared by clearing cache

What is the difference between Paypal and PaypalUk?

I am working with Paypal. And our shop uses PaypalUk instead of Paypal. And I don\’t know why.
What is the difference between Paypal and PaypalUk?
I am not sure what specific service your shop is referring to by PayPal as it could be referring to Website Payments Pro, Express Checkout, or Website Payments Standard. Most likely your shop is referring to PayPalUK as the Payflow integration method. If you have set up Website Payments Pro you would of used an API user id, password and signature or certificate. The Payflow integration goes through a different endpoint, the variables are different and you pass over a user, vendor, partner, and password for your credentials. You should be able to go into the set up page for the different services in your shop and see if they are asking for a user, vendor, partner, and password.

Resources