FAQ Database Discussion Community


paypal api: take immediate payment without a shipping address

c#,paypal,paypal-rest-sdk
been pulling my hair out for hours on this one... i can't find a way to take an immediate payment via the paypal api without specifying a shipping address. i'm selling tickets that are delivered via email, no shipping is required. there is info out there specifying you have to...

Class “String” not found error in PayPal core sdk

php,paypal,paypal-rest-sdk
I am getting the following error all of sudden Fatal error: Class 'string' not found in \vendor\paypal\sdk-core-php\lib\PayPal\Common\PPModel.php on line 51 Did anything change in recent Wordpress update?...

Sending customers to a PayPal payment page with a webhook? C#

c#,asp.net-mvc,paypal,payment-processing,paypal-rest-sdk
I'm a bit confused with the PayPal (REST) integration. What I want is the following: My customers on my website see a order-summary, they then click on 'go to payment page'. I only need to set the Currency, Amount and Description. They arrive on a PayPal page where they choose...

Response 401 when accessing PayPal sandbox Rest API

php,paypal,paypal-sandbox,paypal-rest-sdk
I was able to request an access token at https://api.sandbox.paypal.com/v1/oauth2/token and send a POST to create a new payment at https://api.sandbox.paypal.com/v1/payments/payment using the given access token. Those two APIs ran without any problem. But when performing a GET to the payment_id that I created also using above access token, it...

Payflow reports “User authentication failed”

paypal,paypal-rest-sdk,payflowpro,payflowlink
I'm trying to use the RESTful API to issue a refund and Payflow responds with "User authentication failed." I've double-checked my API user credentials and it still isn't working.

PayPal Rest API SDK: How to add the SOLUTIONTYPE option (or equivalent)

php,api,rest,paypal,paypal-rest-sdk
I would like my PayPal express checkout integration, which uses the PHP Rest API SDK, to show the option 'pay using a debet or credit card' but that option is currently not showing. 'PayPal account optional' is on in the account settings, so that's not the problem. I have figured...

Fatal error: Uncaught exception 'InvalidArgumentException' with message 'Id cannot be null'

php,pdo,paypal-rest-sdk
Quite confused as to why i received this error. The purpose of the page is to make a paypal payment using product information stored in my database. Here is the full error: ( ! ) Fatal error: Uncaught exception 'InvalidArgumentException' with message 'Id cannot be null' in /paypal/rest-api-sdk-php/lib/PayPal/Validation/ArgumentValidator.php on line...

PayPal API Malformed Request

php,laravel,laravel-4,paypal,paypal-rest-sdk
I've edited my code to calculate correctly, however I am receiving a Malformed Request error when I attempt to create a Payment. If someone could please provide some insight on where I might've gone wrong I'd greatly appreciate it. As I cannot figure out why the request is being considered...

Paypal PHP SDK going from sandbox to live

php,paypal,paypal-rest-sdk
Hey guys I followed this tutorial http://www.sanwebe.com/2014/09/paypal-rest-api-payment-system I have the paypal sandbox mode working perfect. It's time to launch the site & I want to switch it to live. I've been messing with it for hours and cannot figure out how to direct this to the live mode. Any help...

Paypal SDK error when native App is present

android,paypal-rest-sdk
we have integrated the Android Paypal SDK into our App. Sandbox payments work without a problem so far. A client reports now that if the the native Paypal App for Android is installed an error occurs. In english the error would be something like "Requirement not authorized" (this probably sounds...

Initiating an Express Checkout transaction with python-paypalrestsdk

python,paypal,paypal-rest-sdk
Issue I'm trying to initiate an Express Checkout transaction via server-side python (I'm using Flask). I'm using the standard paypal python SDK. I'm following the Express Checkout workflow in the documents. The PayPal documentation for Express Checkout isn't very helpful because it doesn't include any examples for python. According to...

Paypal sdk asp.net return (400) Bad Request

asp.net,asp.net-mvc,paypal,paypal-sandbox,paypal-rest-sdk
I'm trying to use Paypal for payment with credit card on my website that in asp.net mvc but every time I face a problem that it return with exception (400) Bad Request. so I tried to use the samples here specially the sample of PaymentWithCreditCard and it work very well...

errors in PHP Paypal pay request

php,pdo,paypal,paypal-sandbox,paypal-rest-sdk
I have written a library program where a user can search for books. I am now onto the part where a user can select an item by it's ID and their own username. This then sets a a payment on PayPal for the user to approve. Now I've made a...

PayPal REST API Payment::get doesn't return Phone

php,laravel,laravel-4,paypal,paypal-rest-sdk
Basically, I'm creating an Order Management system and need to retrieve the "Payer" phone number. However in the JSON Response there is none... Does paypal simply not return this? The sand boxed buyer account I setup to test with has two phone numbers on record. Yet they phone # is...

Paypal SDK Problems with OAuthTokenCredential

php,pdo,paypal,paypal-sandbox,paypal-rest-sdk
I'm having some problems with the PayPal-SDK aplication for developers, i was just trying to follow a tutorial about, to learn how to use it, but i have an error than stop me of continuing and i can't make it to work because of a function. This is the code:...

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

php,paypal,paypal-adaptive-payments,paypal-rest-sdk
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. ...

Can you save a paypal users information to charge them later REST API?

python,paypal,paypal-rest-sdk
I want to do a type of one click buy within my site using the paypal restsdk. Where the user will be able to somehow add their paypal account and we will just charge their account every time it's appropriate. I have looked into the vault but that seems like...

Exception Using PayPal-PHP-SDK [Http response code 400]

php,pdo,paypal,paypal-sandbox,paypal-rest-sdk
I'm following a tutorial about how to use PayPal-PHP-SDK and i got stuck in somewhere with this error in the console: [Sun Mar 08 16:11:21.729977 2015] [:error] [pid 4484:tid 1760] [client ::1:4308] PHP Fatal error: Uncaught exception 'PayPal\\Exception\\PayPalConnectionException' with message 'Got Http response code 400 when accessing https://api.sandbox.paypal.com/v1/payments/payment.' in C:\\UniServerZ\\www\\PayPal\\vendor\\paypal\\rest-api-sdk-php\\lib\\PayPal\\Core\\PayPalHttpConnection.php:176\nStack...