lendable/gocardless-enterprise-bundle

Integration of GoCardless enterprise library into Symfony

Installs: 16 291

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 13

Forks: 1

Open Issues: 0

Type:symfony-bundle

v9.3.0 2021-02-02 08:34 UTC

README

Scrutinizer Code Quality Build Status Coverage Status Latest Stable Version Total Downloads

GoCardless Enterprise Bundle

Integration of the GoCardless Enterprise API into Symfony.

  • Create a new parameter called gocardless_enterprise in your configuration:
parameters:
    gocardless_enterprise:
        baseUrl: 'https://api.gocardless.com/'
        gocardlessVersion: '2015-07-06'
        webhook_secret: XXXXXXXXXXXXXXXXXXXXXX
        creditorId: XXXXXXXXXXXXXX
        token: XXXXXXXXXXXXXXXXXXXXXXXXXXX
  • Add GoCardlessEnterpriseBundle to your AppKernel.php
new Lendable\GoCardlessEnterpriseBundle\GoCardlessEnterpriseBundle(),

You will then have a service available to you called gocardless_enterprise.client with methods for interacting with GoCardless Enterprise API endpoints. This service includes a method for validating the signature of any webhook received from GoCardless (assuming you configured the webhook_secret properly).

The following Models will be mapped to your database automatically:

  • Customer
  • CustomerBankAccount
  • Mandate
  • Payment

Documentation and help can be found here:

https://developer.gocardless.com/pro/2015-07-06 (for versioned docs)

https://help.gocardless.com (for GoCardless support contact details)