Some notes for a demo done on localhost for Laravel 5 Paypal API.

Packages and Payment Technical Planning

Laravel Paypal package?

/xroot/laravel-paypalpayment > RUBBISH

/Payum/PayumLaravelPackage > doesn’t support L5

/net-shell/laravel-paypal > has a cannot find Paypal error (forked from xroot)

Using Paypal REST API SDK Directly

Packagist: https://packagist.org/packages/paypal/rest-api-sdk-php

Git: https://github.com/paypal/PayPal-PHP-SDK

Paypal Developer Playground: https://devtools-paypal.com/hateoas/index.html

Paypal API Docs basics: https://developer.paypal.com/docs/classic/lifecycle/apps101/

Possible Reasons for failing:

total amount is wrong (not correct)

Questions:

update store name

why do items on transactions page say “pending” when the funds have already come out!?

Error log complaining about certificate, does it need SSL to execute the payment?

[04-05-2015 07:41:08] PayPal\Core\PayPalHttpConnection: INFO : POST https://api.sandbox.paypal.com/v1/payments/payment/PAY-22256073H0942930BKVDSFBY/execute

[04-05-2015 07:41:09] PayPal\Core\PayPalHttpConnection: INFO : Invalid or no certificate authority found – Retrying using bundled CA certs file

[04-05-2015 07:41:11] PayPal\Core\PayPalHttpConnection: INFO : Response Status : 200