I've been trying for several days to find PHP sample code or a PHP-based SDK for Quickbooks Payments API to integrate credit card processing into an e-commerce site to no avail.
I have found the Quickbooks Online API PHP SDK but it doesn't seem to handle the raw credit card processing I need, only a way to log general payments into Quickbooks Online.
Does anyone have an example of authentication, token generation, and subsequent credit card processing using PHP for Quickbooks Payments API?
Here's a library that does that (full disclaimer - I'm the author):
https://github.com/consolibyte/quickbooks-php
Examples specific to payment processing:
https://github.com/consolibyte/quickbooks-php/tree/master/docs/payments
A potential gotcha:
I haven't implemented OAuth 2 yet (Intuit is in the process of migrating from OAuth 1 to OAuth 2) so if you're a new app, you might have to wait until I implement that (or you could do that and make a pull request!)
It's standard OAuth 2, there's nothing fancy about it. So you should really be able to grab any PHP OAuth 2 lib and implement this yourself as well. There are tons of OAuth 2 tutorials out there.
Related
I need to integrate QuickBook as a payment method with a website. For this, I would like to connect to QuickBook and create an invoice or payments links and redirect customers to them as I do it with Paypal and after catch the webhooks from QuickBooks about payment status.
Here is a page for paying with Quickbook (You can make a payment link manually in your account):
I want to create such links with api for php (laravel). There is no api for directly creating payment link though api, but there is an option to create invoices with link. I've managed to create such invoices calling the QuickBooks api through Postman but that link doesn't work. It opens an error page.
Here is that page:
There is no much information about paying on the website with QuickBooks, so I am not quite sure is this task a achievable. But if anyone did something similar or has some experience with integration QuickBook to e-commercial websites, please give me a hint
The thing was that the QB has an error in sandbox mode. If you try to call this route in live mode everything will work. Here is a link for my issue on the Intuit Developer Forum https://help.developer.intuit.com/s/feed/0D54R00008D4MIwSAN
The first thing you want to do is set up your application on Quickbooks Online. Here is a Quickstart guide: https://developer.intuit.com/app/developer/qbo/docs/get-started
Then you should consider using the PHP client library for OAuth: https://developer.intuit.com/app/developer/qbo/docs/develop/authentication-and-authorization/oauth-2.0
Then you can start looking through the Quickbooks Online API, and see if they have API to solve your needs: https://developer.intuit.com/app/developer/qbo/docs/api/accounting/most-commonly-used/account
I've been searching the web for a solution to this or just some decent documentation but I am at a loss.
I am trying to authorise payments made from an app using Paypal Cordova SDK which is similar to PayPal IOS SDK.
I have a server running PHP 5.4 and I have installed using composer the PayPal REST API SDK onto my server. I need some help or a small sample script to show me how to authorise a payment made to my server (For such a big company PayPal's documentation is really hard to navigate, search or use.).
My other question is where do I put the link to authorise payments (IP/authorise.php). Do I attach it to my developer portal on PayPal some how?
Many Thanks
I am just wondering that can i send payment to another paypal accounts using PayPal-PHP-SDK or i have to go with Adaptive payment.
I have just gone through their document but didn't find this functionality.
How about Payouts API ? You should be able to use Payouts using PayPal-PHP-SDK which is actively developed.
Also, there are few samples that could get your started really quickly. You could setup the SDK and run samples in your machine fairly quickly without any issue.
You have 2 options: MassPay or Adaptive Payments API.
Adaptive Payments has more control over the payment and is the future direction of the Paypal APIs, so that's where I'd start if I were you. It supports SOAP, NVP, JSON and XML. MassPay has both a SOAP and NVP interface.
I try integrate my web applacation with Intuit QuickBooks Merchant Service.
I found this https://idnforums.intuit.com/messageview.aspx?catid=50&threadid=11829
But I don't understand what is it $connection_ticket, where I can get it?
Thanks.
A "connection ticket" is a token you get from Intuit, which allows you charge credit cards through their API. It's sort of like a username/password, or an OAuth token if you're familiar with that.
If you read the documentation included in the example scripts, you'll find the documentation says...:
IMPORTANT * In order to use this example, you'll need to go through the Intuit application registration process first! This is documented
here:
http://wiki.consolibyte.com/wiki/doku.php/quickbooks_qbms_integration
If you then follow that URL, you'll find instructions to get your connection ticket.
The easiest way to get a connection ticket is to use DESKTOP mode. HOSTED mode will work too, but it's much more difficult to get a connection ticket in HOSTED mode.
Here's a direct link:
QuickBooks Merchant Services - get your connection ticket in DESKTOP mode
I went through the same hazzle a few years ago. It is not an obvious issue. A connection ticket is actually an approval from the Intuit Payment underwriting to allow your app integtration with the Payment gateway. In my particular situation, I was a merchant account holder which allowed me to accept credit card using sent QuickBooks Online invoices and the use of a virtual terminal at the Intuit Merchant Solution website.
But to my surprise, this does not mean that you get automatic authority to develop apps to do the same thing. In my particular scenario, I want to link my website shopping cart to Intuit Payments. But at the end of hundreds of hours invested in this development work, I was decnied a connection ticket.
Again, this happened about 4 years ago. I am not sure if now days there are flexible about these things or have finally come to trust their own SKD or API tools issue to developers.
hello i have to integrate flagship merchant services on my project.But i don't have any idea about this.if any person any idea about this or have any api regarding this please let me know .I have also integrate reoccurring payment service in this.So if any body has worked on this payment express please provide me the api or the flow so i can integrate this as soon as possible
My project is in php so need api in php
I believe you're referring to this Flagship Merchant Services. According to their FAQ, you need an Internet merchant account with them before they'll provide you with the First Data Global Gateway API to interface with their payment gateway.
I worked on similiar integration code with a local credit card processing provider and they only provide the interface API only when the client has signed up an account with the provider. Presumably, it's for security purposes (at least security through obscurity)