Does paypal API suport user to user payments on my app? - html

Can I use the Paypal API to allow users to send money to other users without leaving my website?
I have a website where users can become friends, much like Facebook. Can I embed a Paypal form that allows users to send each other money directly without leaving my site to Paypal?
So User1 would select their friend User2, and send him money via paypal. Then the money would go straight to User2's paypal account.
thanks!

Setting up payee is a relatively new feature in paypal. Its fairly simple and i found it here. When you setup a payment using some parameters like below
{
"intent": "sale",
"payer":
{
"payment_method": "paypal"
},
...
Just add a payee object to it.
"payee": {
"email": "paypal-de#paypal.com"
}
You can find more info on payee here

Related

PayPal email confirmation

Currently I am trying to implement API for PAY-PAL. So basically, there is a form and user will input their email address on the textbox and that will check if the email that user inputted is valid or not. So pretty much it is verifying if email exist or not. I have created the paypal developer account and searched through google to see if i can get any idea but it did not really helped me much. Can anyone tell me where I should start first? Also, there were something called adaptive accounts on paypal website but not sure if that is the correct one...
Thank You
Adaptive Accounts is deprecated and not available.
To verify that an email corresponds to a PayPal account, you need to integrate Connect with PayPal: https://developer.paypal.com/docs/connect-with-paypal/
To integrate a PayPal Checkout that will send the payment to a particular email address, you can set a custom payee object to direct the payment: https://developer.paypal.com/docs/checkout/integration-features/pay-another-account/

PayPal Buy Now with SQL database update

How would I go about creating a Buy now paypal button for a website. And having a textbox where the buyer can enter some text and when they buy "as in the payment works instantly" have the string be added to a database?
Are you using a CMS? What language have you written your site in?
PayPal provide APIs for multiple language and code which can be generated for dynamic buttons. Have you looked through the developer documentation? First sign up for a developer account and assess the options that are available for you. PayPalAPI Overview
I think you want to achieve a "Sale" through PayPal rather than an Authorization -> Capture and store the unique PayPal reference to SQL against an order!
If you want to receive Paypal payments , you must deploy some code on you web-server .
API documentation is here :
https://developer.paypal.com/docs/api-basics/#
And very important you can test all your workflows with Paypal sandbox
https://developer.paypal.com/docs/classic/lifecycle/ug_sandbox/

How can I get a user's Google+ ID from its email address?

I have a user's Gmail e-mail address and I need to get his or her Google+ ID to get additional information about him or her, like name, and so on. Is there a way to do this using the Google APIs?
There is no publicly available API to identify the Google+ profile associated with an email address. There is an existing feature request you should star if you are interested in such an API.
Tricky, but works.
If you have a G Suite Domain (aka Google Apps) you can create a new group with emails addreses and call Members method.Groups API response contains user ID.
https://developers.google.com/admin-sdk/directory/v1/reference/members/list
Response looks like :
{
"kind": "admin#directory#members",
"etag": etag,
"members": [
**members Resource**
],
"nextPageToken": string
}
Where members rersource looks like :
{
"kind": "admin#directory#member",
"etag": etag,
"id": string,
"email": string,
"role": string,
"type": string
}
id is the Google+ Profile id, later you can use Google+ API with people method.
Google plus
login to your gmail account then Put that gmail-email address to search option.
If that user is on Google plus then you will able to see his/her profile.
If you want to create new one with specific format for you then you can get it after making few friend on it.
Google will notify you when you will pass the position.
you can create your own customized profile in it.
Not exactly from the email address itself, but if you have a JWT token you can get the information from that. The id is one of the claims in the token. So if you have a server that uses Google issued JWT tokens, decode the token. Here's a website to view the token information: https://jwt.ms/

User is not allowed to perform this action

Our platform is trying to create a feature so that a seller can refund a paypal transaction after 60 days. To do this our thought was that we would use the adaptive payment feature and simply ask paypal to send money from seller to buyer.
We created an application, and in the sandbox we have everything working. When we move to production we get this response below.
{"errorId":"550001","domain":"PLATFORM","subdomain":"Application","severity":"Error","category":"Application","message":"User is not allowed to perform this action"}]}
The question is, "How does the seller authorize our platform?" Do they need to check a box in their Paypal account?
What's a bit confusing to us, is that we are testing with our own 'seller' account which is of course a valid Paypal account.
Furthermore, we are doing a simple implicit approval. We did notice that in our application registration we are 'conditionally excepted'. We read that simple payments should work fine, it is only the chained payments that require specific approval from paypal.

Chrome extension switch from digital goods to in-app payments

With Google retiring the old iframe version in March 2015 we have to switch to the in-app payment route for our extension.
How can we implement repeated purchases of the same product? I see you use the
google.payments.inapp.getPurchases({...
However in our case the user should be able to purchase the same product multiple times. The thought here was just relying on the server postback but it looks like they are removing that too?
{
"response": {
"details": [
{
"kind": "chromewebstore#payment",
"itemId": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"sku": "giant_tv",
"createdTime": "1387221267248",
"state": "ACTIVE"
}
]
}
}
I must be missing something here, why would Google not implement a way to allow repeated purchases of the same sku or at least allow us to tag the purchase with additional information?
For complete information on the new payments API see:
https://developer.chrome.com/webstore/payments-iap
To answer your question, purchases for the same SKU will only be accepted if you first call
google.payments.inapp.consumePurchase and pass in the SKU that matches a product the profile/user already owns. This is similar to how the Google Play API works.