Send money using PayPal API & PHP - php

How can I send money using PHP and the PayPal API these days?
I've seen multiple responses from few years ago on Stack and the solutions out there are now deprecated documentation...
Example : Send money using Paypal php rest SDK or
Can I send money with Paypal API to other paypal account? If yes how?

Adaptive Payments is deprecated and cannot be used for any new integrations.
The Payouts API would work. In the live environment the business account sending the payout must be approved for the feature, contact PayPal's general support (not technical support) for that.

Related

Can google pay be integrated as an external payment method?

I am currently using CCavenue as my payment gateway, and we collect payments via email, where the Pay button is pre-configured with the URL, which redirects to the payment gateway. I am keen on using Google pay. Below are my few queries -
a) Can a payment gateway be completely replaced by Google pay?
b) Can I embed google pay into the mail and receive the payment or it needs to be in-app only?
I am using Laravel as Backend.
Google Pay does not process payments, and as such, works in combination with existing payment processors / gateways. Here is a list of supported processors as of today (CCAvenue does not seem to be in that list yet).
You can only use Google Pay wherever you can run JavaScript on the web (or on Android using Java or Kotlin), thus most email clients and services will not support such an integration.
Hope it helps.

Credit card processing with Quickbooks Payments API

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.

is PayPal-PHP-SDK supporting to do payment to another paypal account?

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.

Paypal Adaptive Payments processing Personal payments

My application processes payments using the Adaptive Payments Pay API, it is just the API called, it is not a sender or receiver of the funds. The payment's are set as personal payments as they are gifts. Everything works fine in sandbox, the problem is when switching to live, I get API credentials from my business account and set them in my app for the live site, but now I get an error "The caller's credential doesn't have permission for the payment type PERSONAL"
I guess this is because my business account is the API caller, but I don't see how that should stop me from processing personal payments when the receiver is a personal account (as is sender). Anyway around this?
Or do I have to use a personal account to process payments?
Did you get a live App ID for your application? When you applied for that app you should have explained that you'll need to be process personal payments so they could enable that feature for you.
You can indeed send personal payments from business accounts, but you just need to get it enabled for your app.

Paypal Recurring Payment through ACH in Php

I have researched through the Paypal website regarding Recurring ACH payment in PHP but could not find any satisfying solution. Paypal has mentioned SDKS for C# & Java for Recurring ACH, but not for PHP at all. Is it possible to write a Recurring ACH PHP scripts for my website? Suggestions are welcome.
I have already integrated Recurring payment through Paypal pro (using Credit cards) but I want to enable the service through the ACH mode (Using Bank account) with recurring subscription. Is it possible with PHP?
Thank you.
This is possible using the Payflow system, but I do not know of any examples specifically in PHP that I have came across for this. You would need to use one of the examples as a model and build your own code in PHP for this.

Categories