Download the PHP package saleemepoch/paypal without Composer
On this page you can find all versions of the php package saleemepoch/paypal. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package paypal
Laravel PayPal
Fork
This is a fork of Srmklive/laravel-paypal. The plan is to make it more enhanced and agile.
- Introduction
- Installation
- Configuration
- Usage
- [Express Checkout] (#usage-express-checkout)
- [SetExpressCheckout] (#usage-ec-setexpresscheckout)
- [GetExpressCheckoutDetails] (#usage-ec-getexpresscheckoutdetails)
- [DoExpressCheckoutPayment] (#usage-ec-doexpresscheckoutpayment)
- [RefundTransaction] (#usage-ec-refundtransaction)
- [CreateBillingAgreement] (#usage-ec-createbillingagreement)
- [CreateRecurringPaymentsProfile] (#usage-ec-createrecurringprofile)
- [GetRecurringPaymentsProfileDetails] (#usage-ec-getrecurringprofiledetails)
- [UpdateRecurringPaymentsProfile] (#usage-ec-updaterecurringprofile)
- [ManageRecurringPaymentsProfileStatus] (#usage-ec-managerecurringprofile)
- [Adaptive Payments] (#usage-adaptive-payments)
- Handling PayPal IPN
- Support
Introduction
Laravel plugin For Processing Payments Through Paypal. Using this plugin you can process or refund payments and handle IPN (Instant Payment Notification) from PayPal in your Laravel application.
Currently only PayPal Express Checkout, Adaptive Payments API & In-Context Checkout Is Supported.
Installation
-
Use following command to install:
-
Add the service provider to your $providers array in config/app.php file like:
-
Add the alias to your $aliases array in config/app.php file like:
- Run the following command to publish configuration:
Configuration
- After installation, you will need to add your paypal settings. Following is the code you will find in config/paypal.php, which you should update accordingly.
In-Context Checkout
Apart from changing the gateway (as mentioned above), remember to also include required JS without which In-Context wouldn't work.
Clic here for more info: https://developer.paypal.com/docs/classic/express-checkout/in-context/integration/
Usage
- Set Providers
Express Checkout
- SetExpressCheckout
- GetExpressCheckoutDetails
- DoExpressCheckoutPayment
- RefundTransaction
- CreateBillingAgreement
- CreateRecurringPaymentsProfile
- GetRecurringPaymentsProfileDetails
- UpdateRecurringPaymentsProfile
- ManageRecurringPaymentsProfileStatus
Handling PayPal IPN
You can also handle Instant Payment Notifications from PayPal. Suppose you have set IPN URL to http://example.com/ipn/notify/ in PayPal. To handle IPN you should do the following:
-
First add the ipn/notify tp your routes file:
-
Open App\Http\Middleware\VerifyCsrfToken.php and add your IPN route to $excluded routes variable.
-
Then in the controller where you are handling IPN, do the following:
- The above step saves the PayPal IPN response as ipn in session. Following is the code you can change to your own requirements for handling IPN:
Support
This plugin only supports Laravel 5 or greater.
- In case of any issues, kindly create one on the Issues section.
- If you would like to contribute:
- Fork this repository.
- Implement your features.
- Generate pull request.