Download the PHP package pimcore/payment-provider-paypal-smart-payment-button without Composer
On this page you can find all versions of the php package pimcore/payment-provider-paypal-smart-payment-button. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download pimcore/payment-provider-paypal-smart-payment-button
More information about pimcore/payment-provider-paypal-smart-payment-button
Files in pimcore/payment-provider-paypal-smart-payment-button
Package payment-provider-paypal-smart-payment-button
Short Description Pimcore Payment Provider - Paypal Smart Payment Button
License GPL-3.0+
Informations about the package payment-provider-paypal-smart-payment-button
Pimcore E-Commerce Framework Payment Provider - PayPal Smart Payment Buttons
Installation
Install latest version with Composer:
Enable bundle via console or extensions manager in Pimcore backend:
For configuration details see further below. For additional information of PayPal API credentials see API Docs
Configuration
The Payment Manager is responsible for implementation of different Payment Provider to integrate them into the framework.
For more information about Payment Manager, see Payment Manager Docs.
Configure payment provider in the pimcore_ecommerce_config.payment_manager
config section:
Implementation
Integrate the PayPal payment button to your view template
Integrate PayPal payment button and overwrite a few methods like in the sample. At least
createOrder
and onApprove
need to be overwritten.
4) Create a startPaymentAction in your controller
Initialize checkout manager, call startOrderPaymentWithPaymentProvider
of the payment
implementation. It is creating an order at PayPal and its response is the default PayPal
response, which need to be returned as a json response of the action.
5) Handle Response of PayPal
In handle response just call handlePaymentResponseAndCommitOrderPayment
of checkout manager.
It does the rest - which is checking at PayPal if payment was authorized by the payer and
committing the order.
Depending on your settings (see below), the payment is also automatically captured. If not
you need to capture the payment manually by calling $payment->executeDebit()
.
Further Information
For further information and/or more custom integrations, also have a look at following resources: