Skip to content

Latest commit

 

History

History
90 lines (57 loc) · 2.19 KB

README.md

File metadata and controls

90 lines (57 loc) · 2.19 KB

Symfony Standard Edition with Adyen example

Save yourself a lot of frustration

It will take a very long time to get your Adyen account setup. It took us almost a month before all the paperwork and verification by the bank were completed.

Installation

Before you continue you should have the following:

  • Active Adyen Test account
  • Recurring mode enabled (ask Adyen to do this)
  • Skin created with creditcard paymentmethods enabled

Step 1

Install the vendors using this command

php bin/vendors install

Step 2

Edit app/config/parameters.yml and set the database information

Step 3

Run this command to create the database + fixtures

php app/console doctrine:database:create
php app/console doctrine:schema:create
php app/console doctrine:fixtures:load

Step 4

Edit the sparkling_adyen parameters at the end of app/config/config.yml

sparkling_adyen:
     platform: test
     merchant_account: Your merchant account
     skin: Your skincode
     shared-secret: Your shared secret for this skin
     webservice_username: [email protected]
     webservice_password: Your webservice user password

You can find the username and password for the webservice at the following page: https://ca-test.adyen.com/ca/ca/config/users.shtml

Make sure your Webservice User has "Merchant Recurring role" enabled!

Step 5

Go to https://ca-test.adyen.com/ca/ca/config/notification.shtml and setup the following url:

http://your.public.host/app_dev.php/soap/adyen

Press Save Settings and click Test settings

You should receive something like this:

SOAP notification test:
  NOTIFICATIONTEST (2)
    Output  :  [accepted]
    ResponseTime_ms  :  239
    ResponseCode  :  200

Step 6

Go to http://localhost/yourdirectory/web/app_dev.php/billing and click Click here to setup your creditcard

Choose MasterCard en use the following information:

Your Name
5555 4444 3333 1111
12/2012
737

Proceed with the payment flow. The RecurringBillingContract is now set.

Step 7

Charge the accounts by running the following command

php app/console adyen:charge

You should see something like this:

Charging 1 account
AcmeCorp Done