Setup

Requirements

This plugin depends on JMSPaymentCoreBundle so you’ll need to setup it up first. Please follow its setup instructions and come back to this document once you’re done.

Installation

Install with composer:

composer require jms/payment-paypal-bundle

And register the bundle in your AppKernel.php:

// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new JMS\Payment\CoreBundle\JMSPaymentCoreBundle(),
        new JMS\Payment\PaypalBundle\JMSPaymentPaypalBundle(),
    );
}

Configuration

You need to supply at least the following configuration. See PayPal’s documentation (Create an API signature section) for information on how to obtain the credentials.

# app/config/config.yml

jms_payment_paypal:
    username: your_api_username # not your account username
    password: your_api_password # not your account password
    signature: your_api_signature

Tip

See Available options for information on all configuration options.