2017 © Pedro Peláez
 

symfony-bundle dineromail-bundle

Dineromail PaymentSuite Component

image

paymentsuite/dineromail-bundle

Dineromail PaymentSuite Component

  • Thursday, April 23, 2015
  • by mmoreram
  • Repository
  • 4 Watchers
  • 2 Stars
  • 201 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 2 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

DineroMailBundle - PayFony

Payment Suite Payment Suite Scrutinizer Quality Score, (*1)

Table of contents

  1. Installing Payment Environment
  2. Installing DineroMail
  3. Contribute
  4. Configuration
  5. Extra Data
  6. Router

Configuration

Configure the DineroMail configuration in your config.yml, (*2)

dineromail:

    # some specific payment config
    merchant: XXXXXXXXXX
    ipn_key: XXXXXXXXXX
    country: 1 # 1 => Argentina, 3 => Chile
    seller_name: MyProject
    header_image: http://my.image/path.jpg
    url_redirect_enabled: true

    # payment methods
    payment_methods_available:
        - cl_visa
        - cl_magna
        - cl_presto

    # By default, controller route is /payment/dineromail/execute
    controller_route: /my/custom/route

    # Controller process route, by default /payment/dineromail/process/{id_order}
    controller_process_route: /my/process/route/{id_order}

    # Configuration for payment success redirection
    #
    # Route defines which route will redirect if payment successes
    # If order_append is true, Bundle will append card identifier into route
    #    taking order_append_field value as parameter name and
    #    PaymentOrderWrapper->getOrderId() value
    payment_success:
        route: card_thanks
        order_append: true
        order_append_field: order_id

    # Configuration for payment fail redirection
    #
    # Route defines which route will redirect if payment fails
    # If card_append is true, Bundle will append card identifier into route
    #    taking card_append_field value as parameter name and
    #    PaymentCardWrapper->getCardId() value
    payment_fail:
        route: card_view
        card_append: false
        card_append_field: card_id

Extra Data

PaymentBridge Service must return, at least, these fields., (*3)

  • customer_firstname
  • customer_lastname
  • customer_email
  • customer_phone
  • language

Router

DineroMail allows developer to specify the route of controller where dineromail payment is processed. Also POST callback route is configured through configuration specification.
The bundle routes must be parsed by the framework, so these lines must be included into routing.yml file, (*4)

dineromail_payment_routes:
    resource: .
    type: dineromail

DineroMail payment button must point to route dineromail_execute without any parameter, (*5)

Bitdeli Badge, (*6)

The Versions