Paypal Direct Payment API - php

Is there any up to date documentation out there on how to use the Paypal direct payment API?

I found a working demo code for Paypal direct payment API : http://www.mmtutorialvault.com/paypal-pro-integration-in-php/

Google found this:
https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/library_code
wont that do?

If you are using PHP this component is worth a look. It costs $30, but I found it was well worth the time and effort saved. http://www.binpress.com/app/php-paypal-api-class/20

PayPal provides various payment related operations using the /payment resource and related sub-resources. Use /payment for direct credit card payments and PayPal account payments.
URI: https://api.paypal.com/v1/payments/payment
Create a payment: POST /v1/payments/payment
For more information, refer:
https://developer.paypal.com/webapps/developer/docs/api/#create-a-payment

On the Paypal PHP SDK repo Paypal says :
Direct Credit Card Support
Important: The PayPal REST API no longer supports new direct credit card integrations. Please instead consider Braintree Direct; which is, PayPal's preferred integration solution for accepting direct credit card payments in your mobile app or website. Braintree, a PayPal service, is the easiest way to accept credit cards, PayPal, and many other payment methods.
So Paypal recommands to use Braintree Direct. More details on Braintree direct page

Related

Paypal PHP REST API for payflow

We would like to use Paypal for credit card authorization exactly as we do for Paypal transactions, only skip right to approval for users who do not want paypal.
The REST API for paypal has the setPaymentMethod always set to "paypal" in every example I can find, and I don't find a list of possible values. May this constant be set to something like "payflow"?
The hope is that the REST API would work to allow a credit card customer get payflow dialogs rather than paypal login/guest login. The idea is to try and use our existing REST code to process credit card payflow transactions and retain the "create order" then "capture" processes we have for paypal transactions. I can't tell if the REST API is capable of this.
Payflow does not work with the REST API in any way. Payflow is very old, and uses a much older NVP API.
If possible, use a more modern solution such as Braintree Direct or Advanced Credit and Debit Cards rather than the old Payflow gateway.

How to process payments with credit cards through Paypal from Argentina

I am new to Paypal integration and cannot find how am I supposed to make it. My requisites are the following:
Company registered in Argentina
Users should be able to buy without having to create a Paypal account with a credit card
The integration should not be easily tampered with
With those (I thought) simple requirements I spent many hours and couldn't find a solution that applied.
This is what I found out:
Payments REST API, should not be used for credit card payments
Important: The use of the PayPal REST /payments APIs to accept credit
card payments is restricted. Instead, you can accept credit card
payments with Braintree Direct.
https://developer.paypal.com/docs/api/payments/
Braintree Direct (the method to integrate credit card payments with full customization is not supported in Argentina) https://www.braintreepayments.com/country-selection
NVP and SOAP API Reference (old Paypal API to integrate payments) is no longer supported.
Important: This integration method is Deprecated as of January 1, 2017. For
new integrations, see the PayPal Express Checkout Integration Guide.
https://developer.paypal.com/docs/classic/api/
PayPal Express Checkout Integration is horrible, seems insecure and prone to tampering if used only client side, and though I found a way to make it work more securely with a server-side payment generation I couldn't find a way for it to pay without having a Paypal account.
https://developer.paypal.com/docs/integration/direct/express-checkout/integration-jsv4/
and
https://developer.paypal.com/demo/checkout/#/pattern/client
So I am left with no option to integrate credit card processing through Paypal for a business in Argentina. Before giving up I would like to know if somebody knows of a way to make this integration work.
Payoneer is also an option. Paypal isn't the only thing out there.

DoDirectPayment Method in Paypal advanced

I am working on paypal api. As client said he has purchased the paypal business account where his customer's can pay money on his own website and then I came through the DoDirectPayment method and worked on it and it was working on the sandbox but it was not working on live account.
It shows error as
"Invalid Configuration : This transaction cannot be processed due to an invalid merchant configuration."
and after bit search I came to know that account should be payment pro. Client gave me a link that he has purchased the paypal advanced and the link is "https://www.paypal.com/webapps/mpp/paypal-payments-advanced"
And when I saw the account type it shows the only business account. Where can we can check the exact account type?? Is there any option where I can check the merchant type. I am bit confused. I think client needs to pay extra for payment pro as written on website. Can I use DoDirectPayment method in paypal advanced. On paypal it shows three type of account type personal personal, premier and business account. After subscription for business account does he need to subscribe for others like advance pro and standard? and what all other methods we can use for paypal advance.
I am new so I am bit confused and I didn't found any suitable document..
Thanks in advance :)
The PayPal Payments Advanced product does not support DoDirectPayment API. Advanced makes use of pages (layouts) hosted by PayPal and credit card data is posted to the server using a secure token. See PayPal Payments Advanced for a detailed explanation of how it works and links to all of the documentation.

PayPal Sandbox | Express checkout allow credit card payments

First of all a want to mention that I am very new in PayPal at all.
I have create a plugin for WordPress, that is useful for booking a taxi for a trip. The plugin, it has it's own cart, that allowing the client to add several services in the cart and then to check out via PayPal.
As I mentioned earlier I am new, to PayPal, so I have download the PHP SDK provided by the PayPal, and I have complete the first step of the payment process. I have got the Token, and then redirect my client to PayPal web site to perform the payment.
The problem is that, in PayPal web site I have only the options "Have a PayPal account?" and "Create a PayPal account". What I like to ask, is how can I use the credit card payment instead of the "Create a PayPal account" ? Is there any way ?
Any idea please ?
You may want to try using Stripe. http://www.stripe.com/ super-easy, and has excellent documentation. I have used it alongside Paypal express checkout.
Paypal now required paypal account to get payment when you use express checkout api, to get payment from paypal use credit card reference api or any other api suit your need from paypal

Integrating Paypal chained payment and direct payment?

I want to Use the Paypal API for chained payment (adaptive payment), but i wan't that the user will not get out from my site, so I need to use the DoDirectPayment also...
Is it possible to integrate them both?
I couldn't found the answer for this question...
Thanks.
They both are part of two different API suites from PayPal. The chained payment is from Adaptive Payments API and DoDirectPayment is from PayPal Payments Pro (Direct edition). So make sure you sign up for them as required.
As Prash mentioned, for chained payments w/ PayPal accounts you must redirect to PayPal. But instead of using full browser redirect - you can use the Embedded Payments experience that uses iframe/mini-browser window that provides a more contextual experience to your users.
The user must leave your site in order to login to PayPal, however they are redirected back to your site afterwards where you can process the payment.

Categories