I am trying to create a website that will allow people to post items for sale and then receive a payment through paypal once the item is purchased. Ideally I would have them link their paypal account to my website, before they post any items, and user would checkout via paypal. This would be a very similar setup to what ebay has with paypal. Can someone point me to what type of integration this is? Also could someone point me to the proper docs? I don't think i'm using the correct terminology so I'm not finding anything. I am a developer so i'm not afraid to code this up. Thanks
If you want to create this kind of integration you will need to make a few user experience decisions first. The flow of Ebay allows a person to link a payment method to their system and upon purchase directs them to an Ebay paypal checkout page that acts as a payment using stored credentials to do a transaction with the Ebay paypal account. Internally Ebay then performs other transactions from their account with other user's registered payment information to mediate the exchange. It is not directly user-to-user. The first question you as a developer need to answer is : Do you want to use the pre-built paypal experience or design your own with paypal integration?
The simplest pre-built experience causes your users to be directed away from your website to paypal where they handle their transactions and then are returned to your site along with a REST payload that informs your site whether a transaction was successful or not.
Another service offered by paypal is called Paypal Payment Advance which allows them to provide you with a template integration on your website which performs the transactions on your domain. To learn more about that, see here.
The custom experience requires you to learn the Paypal developer API and how Paypal operates and stores credentials which can be found here. This option is only if you really want to have complete control of everything and are willing to put in the work. It is also the most difficult option, but gives you the greatest control over the end experience.
Related
I am trying to track user engagement on a cross domain. I have seen similar questions on stack overflow already like Tracking purchase of particular product on different sites and jQuery Cross Domain Request to get JSON Response without Callback But the problem with my case is that I do not want server call back and Google analytics to be used with my application
About my application, basically we have made a spring boot application and we provide our application as a resource to another e-commerce store. Now, what our application will do, it will replace the search bar of that e-commerce store with our application's search bar. when the user searches a product from that search bar then our application will bring the result (products) from that e-commerce store.
Now what I want to do, I want to track my user such that after searching, if the user clicks on any product from the search result then he will be redirected to the checkout page of the same e-commerce store. I want to track that if that user bought that product or just got there and returned without purchasing the product.
If I try to do it through javascript, then I get cross-origin error (CORS-policy) which is kind of obvious as we can not access any other application from our site.
I also tried YQL Yahoo Query Language as suggested by jQuery Cross Domain Request to get JSON Response without Callback but still got CORS origin error.
I have looked a way for server callback where, every time when user clicks a product from the search result then an reference id will send with him. After the customer purchases a product then the server will give us a callback and will again return a reference id back to us.
But this type of approach was rejected by my company saying it will be very expensive for us.
I was looking for a simple solution that will track user engagement on Cross Domain with a simple and free tool except for Google analytics OR by writing a javscript on my end without involving the other server.
I have researched a lot but could not find a good answer. Please help me. Thanks in advance.
I'm trying to make a Smart Checkout button in my website which is currently running 100% in client-side.
I pass an amount to the createOrder function, based on the contents of the shopping cart, which is client-side. Now, I know that the amount can perfectly be tampered with, and PayPal would have no way of knowing that the customer is underpaying.
We are a small group of people and expect a low volume of sales, so we wouldn't have a problem detecting these underpayments and canceling the transaction (refunding the paid amount to the customer, and not shipping the item).
However, we would still have to pay PayPal fees, so this can be easily abused into making us (the seller) lose money.
Is there any way to make client-side PayPal Smart Checkout buttons, while also protecting myself from this kind of exploits?
Is there any way to make client-side PayPal Smart Checkout buttons, while also protecting myself from this kind of exploits?
This is why server-side verification is a must. It is very easy to exploit these kind of things client-side and you cannot secure it client side either. PayPal have documentation on server side implementations for verifying payments. They have many SDK's too to suit your needs. e.g. NodeJS, PHP, Python...
PayPal Checkout Server-Side SDK
I would like to have users within a React Native mobile app where users can post up items and other users can purchase them.
My question is, what would be the best approach to this? More specifically, how can I get a user to send a payment directly to another user? Or does the platform become the middle-man, where it receives the payment from the buyer and the platform sends the payment to the seller?
I have looked into Stripe but I am only seeing how to charge a user directly and the user would make the payment out to me (the platform), but I would like where the user would make a payment directly to another user, preferably through Stripe or any other better methods out there.
Thank you in advance. I will accept and upvote the answer.
Stripe recently launched Stripe Connect to facilitate marketplace payment: https://stripe.com/connect
I am trying to integrate braintree for payments in Nodejs and Javascript.
I have created an account on https://sandbox.braintreegateway.com and now I am trying to integrate my braintree payment with my website using "drop in" integration, I followed all the steps given on site, with which I get a paypal button, which on click opens up a paypal pop up window in which I enter my account details, After which it asks to agree on various terms. After clicking Agree it says :
"Sorry we cannot connect to PayPal. Please try again in a few minutes. Try Again"
I am not sure why I am getting this.
Looks like a problem of setting up my profile of Paypal with Braintree (though in sandbox it doesn't really matters). I tried to follow set up of paypal with braintree as instructed on braintree portal, but with no success I am still at the same Error Message.
Code used is from following Braintree documentation:
https://developers.braintreepayments.com/javascript+node/guides/drop-in#paypal
Please help me out with this.
I was able to contact braintrees support and they configured my sandbox account.
This is what they said:
Hey Johhan,
Thanks for reaching out to Braintree support. I’d be happy to help.
I took a look at your Sandbox account and it looks like you weren’t
set up with a processor connection to test out PayPal. This can happen
sometimes when Sandbox accounts are created outside of the United
States.
We have corrected this setting and your Sandbox is now set up to
process PayPal. You can verify that PayPal is a valid payment method
in your Sandbox by logging into your Sandbox Control Panel and
clicking on Settings > Processing. You’ll see a list of accepted
payment methods next to your Merchant Account.
Hope that helps! Let us know if there’s anything else we can do for
you.
Best,
Basically, you have to verify that PayPal is a valid payment method in your sandbox account.
I contact their support team. this was their response
"I believe you’re running into this issue because your sandbox was created in Pakistan, which is not a supported country with PayPal. If you are a developer working for a US based merchant on an integration, you will need to signup for a US sandbox account. You can do this on our website by selecting United States as your country using the drop down menu on the bottom left of the page"
Remember: bottom left of signup page >> Select Country as US
i signed up for another sandbox account on Braintree using US as my country and it worked perfectly.
I am making a website for a school club (a FIRST Robotics team) and we rely heavily on donations. I am looking for a way to display information about donors if they choose to have it displayed. The biggest problem is that the server it is on doesn't work well with most server-side code so I am limited to HTML/CSS, JavaScript and PHP.
The way I have thought of doing this is having a form on the site which would send information they choose (I.E. a name/company) to a google spreadsheet and then somehow have the PayPal payment confirmation be sent to the spreadsheet as well to prevent people from just sending whatever information they want to the spreadsheet.
So: Is it possible to get a PayPal payment confirmation sent to an arbitrary source in a format I specify? If so, how would I go about doing this? If not are there any other ways I can achieve the same result (display donation information on my website without server-side code)?
Paypal's buy now buttons don't require any server side code unless you want to know or store if the transaction was successful on the site. Check out this: http://paypal.github.io/JavaScriptButtons/