I need a payment solution for my chatting app. Since I checked all the documentation of the google there is no sign solves my problem.
As I understand google only doing tokenization for credit cards. I think I need A payment gateway for that. But I couldn't understand what is DIRECT means.
However, on google, as I can see where you can create products in console, so why should I put products and prices in code lines?
What is difference between the gateway and direct?
Thanx for all!
Google Pay does not process payments. You need to either refer to one of the supported payment gateways in the configuration, or go for DIRECT if you are processing payments yourself on your own servers.
Related
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.
I have spent 9 hours today working with Paypal, and I have an issue that I can't find the solution for.
I am using the Paypal Javascript Buttons github script for creating dynamic page generated buttons for simple Buy Now transactions.
The button example output is generated by PHP (so is dynamic) and looks like this (featuring sandbox details):
<script src='https://site-addr/includes/js/paypal-button.min.js?merchant=siteemail-facilitator#gmail.com'
data-callback='https://site-addr/account/listener.php'
data-tax='0'
data-env='sandbox'
data-shipping='0'
data-currency='GBP'
data-amount='1.00'
data-quantity='1'
data-custom='$2y$10$BdA/7xN2S/fzRq8X9p4pFOmzYBpia/u7sWsAcWN/4w9NZVXduaUzu'
data-number='20165'
data-size='Large'
data-locale='UK'
data-host='www.sandbox.paypal.com'
data-type='button'
data-cancel_return='https://site-addr/account/basket.php'
data-return='https://site-addr/account/complete.php'
data-name='Site Name Tickets'
data-button='buynow'
async='async'></script>
This generates a perfectly good simple click form for purchasing via the Paypal interface.
Meanwhile, I have downloaded the IPN listener from the Paypal Github and updated the details as required, also downloading the cacert.pem file
from here.
I have run the Paypal IPN simulator which gives me correct results via my listener.php file, giving a correct feed out of full data and VERIFIED each time I run the test.
The Issue
But, when I run the sandbox purchase using the above details, the purchase runs correctly but I get no feedback to my IPN listener, I also get no transaction details on my sandbox Transaction notifications. But I DO get details on the sandbox Paypal account that the purchase was successful and the purchase has completed ok.
Things I've tried
I have read a lot of Paypals documentation and found their approach to providing a clear and concise guide to setting anything by Paypal up, very fraught. I have read about 40 pages of their documentation including finding out various ueful posts from Stack Overflow (whom Paypal directly reference for helpful solutions rather than providing their own).
Solutions that have tried and failed:
This similar question did not provide any clear solution.
This question gives some help and confirms that the transactions should be the acceptable web_accept type.
This question (answer) gives clear advise to use data-notify_url rather than the data-callback as specified on the JavascriptButton github
data-notify_url='https://site-addr/account/listener.php'
But the above replacing data-callback does not work. The transaction still appears to succeed but not transaction or IPN data is recorded.
removing / replacing various data- entities, with no success.
I have full PHP error reporting throughout my site and no errors of any form are generated.
Further considerations
I'm sure some of you will be saying, well I should use the SDK downloads for doing this sort of thing, but the scope of the SDK is huge and my need is relatively simple, and the Paypal documentation leaves an awful lot to be designed. Also their (on a range of Paypal github deposits) are using MySQL_ requests on example code as well as addslashes and other things that are years out of date.
Also it's worth noting that while the Paypal documentation for the Javascript Button generator accepts the account email or the account Code, giving the account code causes a critical error and prevents payments (real or sandbox) being processed.
Coupled with this the finding of only piecemeal guidance information as well as "loops" in the documentation such that I'm on one topic, and it says "oh if you want to find out how to do this, follow this link", and then following the link it's more verbose text written for non-developers (on the developer portal) and then a link to another text block before a link back to the text to start with.
Sorry this is turning into a Paypal moan, but as far as possible I would like to avoid using the huge SDK system for what should amount to a straight forward send and recieve data operation.
Any helpful examples with solving this issue?
Final note:
Last month I made a payment system on Stripe that does exactly the same thing, it took four hours and works perfectly.
(I can't use Stripe here as client has an existing Paypal account and won't change).
Solution:
With the help from David Nguyens answer below, I found the issue in my case was that I had set up the IPN and enabled the IPN
and given the correct address for it, but this was on the Live
account rather than the sandbox account, despite only setting up
the sandbox account after all the details on the live one had been applied.
Paypals Live and Sandbox profiles are entirely mutually exclusive
and sandbox creation will not import any data from the live account
it is associated with.
Troubleshoot the issue further on Paypal
investigate IPN logs on Sandbox Paypal to see what and where the data is sent to, linked are the production URL and sandbox URL.
check the status code, if you are getting 5xx type error - debug your script
this should tell you WHERE the IPN is sent to, if it isn't what it should be check:
ipn URL in the button
ipn URL in profile is overriding
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'm trying to create a webpage that can incorporate LinkedIn info's (profile,people,company, etc...).
The things that it can/would do are the following:
When the user enters a name that is registered in LinkedIn, he gets the following
*Name, Company, Email
*List of LinkedIn messages that are waiting for reply
The same process goes on everytime the user adds a profile, I'm planning to use the Profile API of LinkedIn to get the Name, Company and Email but I can't find a working example to be my basis.
As for the 2nd one I still don't know how to get the LinkedIn messages.
Here's my Layout and expected result.
How can I achieved this? Opinions and Suggestions are highly appreciated tnx
This is far to broad a question for me to invest the necessary time in to figure the answers (multiple) for you, but do let me give you some hints. First of all, from my experience with the linkedin API not all the data you wish to access is available (do double check this though, I used the API quite awhile back and stuff might have changed in the meantime). As this data is not available through the API the only alternative would be to somehow bypass the cross domain policy, which in conclusion would require the user to install a chrome extension/firefox plugin which will function as a proxy for your application or even 'better', make you entire application a browser plugin based web app. Not that I am a fan of those whatsoever but if you application is meant in any way whatsoever as a linkedin (dedicated) plugin (probably as part of a greater service you're developing) then it might make most sense.
The whole system you are describing is very long winded and requires a large amount of development time. Alot of the data is not accessible directly or indirectly too. You cannot get email address's out from the API as a security feature (bots could just harvest emails for marketing campaigns).
First of all, you will need to make an application that allows for oAuth2 connections with the linkedin API service. People will log onto your website, click to join their linkedin account with your website and your website will receive back an access token to do the calls.
You will then need to build the queries which will access the data you require. The linkedin API documentation (http://developer.linkedin.com/) isn't greatly indepth but it gives you a good understand and points you where you need to go. There are also a couple of pre-done php API's around such as https://code.google.com/p/simple-linkedinphp/.
I have worked with many API's from twitters, facebooks and LinkedIn's and they all require a lot of back-end work to make sure that they are secure and get the correct data.
It would take me hours to go through exactly how to do it and has taken me many hours to get a solid implementation in place and working with all the different calls available.
If you have minimal coding knowledge, it would be best to go to an external company with a large amount of resources and knowledge in the field who can do it for you. Otherwise it may take many months to get a working prototype.
Is there any safe way to detect, on a web page, client side (JS), whether user has an Google/Yahoo/Live/? account?
I know about some suspicious ways to do this by styling visited links and then sneaking on computed style attribute, but it's more of a hack, Mozilla and maybe other are planning to crack down on this, as it might be abused.
But I need this to allow users more integration with their identity providers, like:
Have a Google account? ~> load contacts for sharing from Google Contacts API
Have an Yahoo account? ~> load contacts for sharing from Yahoo Contacts API
none of the above? show no link
I don't want to provide all these options to all visitors, would be nice if I can detect the account, and provide integration only in that case.
Yes, you ask them. Despite your misgivings, people will be far happier with you if you bother them, asking for the information, than they will be if you 'steal' such information.
You only have to re-read your question with phrases like "sneaking", "more of a hack", "planning to crack down", and "might be abused" to realise what a bad idea this is - maybe you could scan their hard disk looking for bank account information while you're at it :-)
The only valid way to do that is by using Google and Yahoo API's which are easy to implement. User will have to either provide his login details on your site or to use token methods which redirect login to Google/Yahoo and then back to your site. Once you connect to API, you can do anything with user account.