PayPal Payments: Accept Instant Payments With PayPal

Codecourse · 161K views · 2015 · 32:50

Open on YouTube

Web developmenttutorialdated

Why Stack Overflow recommends it

Stack Overflow users cite it as the tutorial they followed when asking about PayPal PHP SDK code and sandbox transactions.

Recommended by 0 people across 0 different months, 2016 to 2018.

What it is

A 33-minute Codecourse tutorial from 2015 showing how to accept payments in PHP using the PayPal REST API and SDK. It walks through building the payer, item list, amount, transaction and redirect URL objects, then executing the payment and viewing transactions.

What people said

Cites Alexzander Flores · 2016-06 · Stack Overflow · on “PHP Passing Array Through Argument”

I'm trying to work with the PayPal API in PHP but I'm having a problem with passing arrays through function arguments. I've been watching this tutorial [this video] . If you look at around 21:00 you can see them writing most of their code. I'm having problems with lines 34 and 59: <?php use PayPal\Api\Payer; use PayPal\Api\Item; use PayPal\Api\ItemList; use PayPal\Api\Details; use PayPal\Api\Amount; use PayPal\Api\Transaction; use PayPal\Api\RedirectUrls; use PayPal\Api\Payment; use PayPal\Exception\PayPalConnectionException; require 'start.php'; if(!isset($_POST['product'], $_POST['price'])) { echo "Product or price not set"; die(); } $product = $_POST['product']; $price = $_POST['price']; $ship

Cites suntrop · 2017-03 · Stack Overflow · on “PayPal Sandbox Transactions”

Perhaps I got an answer to my question. The Dev Dashboard at [LINK] doesn't show (anymore?) the details of the payments. Instead you can see the details of each payment at [LINK] I was wondering, because in this tutorial you can see the transactions table showed some helpful details [this video]

Cites Rongiro · 2018-01 · Stack Overflow · on “Paypal PHP SDK implementation”

My paypal sdk version is ^1.13 I'm having errors in my paypal implementation. I followed this tutorial [this video] <?php require 'vendor/autoload.php'; use PayPal\Api\Payer; use PayPal\Api\Item; use PayPal\Api\ItemList; use PayPal\Api\Amount; use PayPal\Api\Transaction; use PayPal\Api\RedirectUrls; use PayPal\Api\Payment; use PayPal\Api\Details; use PayPal\Rest\ApiContext; Use PayPal\Auth\OAuthTokenCredential; if(!isset($_POST['product'], $_POST['price'])){ die(); } $clientId = 'client-id'; $clientSecret = 'client-secret'; $apiContext = new ApiContext( new OAuthTokenCredential( $clientId, $clientSecret ) ); $product = $_POST['product']; $price = $_POST['price']; $tax = 2.00; $total = $price + $t