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
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 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.
I just finished building a donation form on a client's website, which processes payments through PayPal's classic api. It works fine in Sandbox mode, but I'm getting a 10501 - This transaction cannot be processed due to an invalid merchant configuration. error.
I know that this error is caused by PayPal payments pro not being enabled on the account the API is trying to access. That is were I'm somewhat confused. The account I'm connecting this donation form to is subscribed to Paypal Payments Pro.
When I first encountered the 10501 error, I thought that PayPal may require myself to log in and enable the Payments Pro service. I found a "get started" button under the payments pro section of the site, but when I click it, I'm taken to a page which only provides a link to the API documentation.
I've never worked with PayPal's API before or launched a live paypal application. I'm hoping someone can point me in the right direction.
NOTES
Just to make it clear, the PHP donation form DOES work in PayPal's sandbox mode
I have acquired the correct API keys from the live account and I know for a fact that I did not mix up the live credentials with the sandbox.
this donation form is on a website, not an mobile app (do I still need to register it as a paypal app?)
Thanks
A lot of times what happens is that PayPal enables the Virtual Terminal for you, but not the DoDirectPayment API. I would just give them a call and let them know you have Pro, but your DDP calls are resulting in this error, and they can probably get it enabled for you.
It's also possible that your version of Pro requires you to use the PayFlow API instead of DoDirectPayment. That's something they can tell you when you call them.
I'm working with PHP language.
I would like to build a form and execute direct payment with credit card on my site.
So I download the php sdk library from paypal official repo : https://github.com/paypal/rest-api-sdk-php
For the time, I create a developer account and a sandbox environment. In my sandbox, I use a "business" account to test my app and everything work fine with REST API.
I don't know if a paypal advanced account will be enough to achieve this feature in using REST when I'll go in production mode.
Do you know if I absolutely have to create a pro account ? I'm little confused.
Thanks,
For the US accounts if you use REST API for accepting the credit cards there is no need for any Pro and Advanced account . You just need to have a Business Verified account . You can check the more information here:
https://developer.paypal.com/webapps/developer/docs/integration/direct/rest_api_payment_country_currency_support/#direct-credit-card-payments
How to process in server when payPalPaymentViewController:didCompletePayment completion in iOS paypal SDK. Please give me a sample php code to process completedPayment.confirmation details. I am not familiar with php. So please give me a guideline to process paypal request in php server. I googled a lost but i can't find any simple solution to process paypal iOS request in php
You can find sample code (cURL) on how to verify a mobile payment here. Once you validate that the payment is completed, you can find other RESTful sample calls here to do the server side integration. You can select the appropriate programming language from the top of the page.