Credit Cards with PayPal REST API - php

My client uses the PayPal NVP API for processing both PayPal and credit cards payments. That appears to be deprecated or PayPal is encouraging upgrading to REST. I convinced my client to do the upgrade and while implementing it I noticed the following:
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.
That puts a serious wrench in my work.
A little more searching around and I find this option for accepting credit card payments with the REST API:
Guest payments with a credit card that is stored in the PayPal vault
This would imply to me that the Vault must be used on conjunction with guest payments. Can anyone confirm if that is the case?
It looks like to enable guest checkout payments "PayPal Account Optional" must be turned on which I have confirmed is on in my sandbox account.
The presumption I am now going on is credit card payments with the REST API will work as long as this option is on in the merchant's account, however, I don't find this clearly stated anywhere and I don't want to continue on swapping out APIs for my client if credit card payments via REST won't work now or at some point in the future. I also find it odd I don't find any example API calls in the Payments API using a credit card. I had to figure that one out on my own with a little help from Google.
I appreciate anyone's experience using the REST Payments API to process credit card payments given it's stated that it's "restricted".

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 manage response from paypal when people pay as a guest checkout. No paypal account

I'm using a custom php Paypal nvp API for express checkout.
When people pay with their paypal account I have no problem in my php script, I insert the order, order details and I send the email to the customer. When people pay with their credit card without paypal account I don't receive the transactionid.
The strange fact is that when I use the sandbox, I generate a fake visa I do the payment, in my database I have the transaction id and I receive the email.
Someone had or is having my same problem?
There are different ways to manage payment with and without account?
For both I'm checking the payment status = Complete.
Happy to help your query,
Firstly, PayPal NVP is deprecated implementation. There wouldn't any support for new merchants who willing to add PayPal as a payment option.
Please go through the below recent products which run on REST APIs. I suggested two options of accepting payments so, hence choose the best one suits you.
Standard Integration Link.
Advanced Credit & Debit Card Link.
Thanks.

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.

Paypal Payment REST API and CreditCard Payment

Recently I visited Paypal Rest API page https://developer.paypal.com/docs/integration/direct/payments/. I noticed an IMPORTANT message there please find below screenshot:
If this API now restrict to process Card Payment then Is Billing Plan and Agreement API (for Recurring/Subscription Payment) also restrict Card payment?
Please help me
The ability to process direct credit card transactions via PayPal REST API for new integrations has been restricted. That means that the "payment_method":"credit_card" option is no longer allowed to be use with any new REST API integrations, including for the Billing Plan and Billing Agreement API's.
We apologize for any inconvenience.

Diference between API calls dononreferencedcredit and direct payment

Im new in PayPal and I just want to ask, what is functional diference between API calls dononreferencedcredit and direct payment?
I understand it, that both send money to credit card, is it correct?
EDIT:
Is it possible to send money from my paypal account to credit/debit card or bank account of someone else using Paypal payments Standard? Or is it possible using PRO version? Exists any API or anything else for it?
DoDirectPayment takes money from a card and DoNonReferenceCredit issues a credit to a card.
In most cases you'd be more interested in DoDirectPayment and RefundTransaction, as the RefundTransaction API call will refund whatever type of transaction, charged via whichever funding source (be it card, bank, PayPal balance, et cetera).
DoNonReferencedCredit would only apply for a limited set of use cases; e.g. if you wish to disburse funds directly to someone's credit card. However, even this can already be handled by the MassPay API call where MassPay disburses it to the PayPal balance of the receiver, and the receiver can do with these funds as they please.
To me it seems that dononreferencedcreditissues credit to a card, while it's not being referenced in the original transaction. See this page for more information.
DoNonReferencedCredit is definitely the way to go if you do not want or do not have a reference to the original transaction. PayPal accounts do not allow NonReferenceCredits by default, you will have to contact business support to have this option enabled on your account.
You will receive the following error if NonReferenceCredits are not enabled on your account.
"Invalid merchant information: 10002-You do not have permissions to make this API call"

Categories